MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_open_log_unlocked

Function xo_open_log_unlocked

tools/libxo/libxo/xo_syslog.c:370–383  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

368}
369
370static void
371xo_open_log_unlocked (const char *ident, int logstat, int logfac)
372{
373 if (ident != NULL)
374 xo_logtag = ident;
375 xo_logstat = logstat;
376 if (logfac != 0 && (logfac &~ LOG_FACMASK) == 0)
377 xo_logfacility = logfac;
378
379 if (xo_logstat & LOG_NDELAY) /* open immediately */
380 xo_connect_log();
381
382 xo_opened = 1; /* ident and facility has been set */
383}
384
385void
386xo_open_log (const char *ident, int logstat, int logfac)

Callers 2

xo_send_syslogFunction · 0.85
xo_open_logFunction · 0.85

Calls 1

xo_connect_logFunction · 0.85

Tested by

no test coverage detected