_cfg 151 src/libsir/src/sirinternal.c _SIR_LOCK_SECTION(sirconfig, _cfg, SIRMI_CONFIG, false); _cfg 181 src/libsir/src/sirinternal.c (void)memset(&_cfg->state, 0, sizeof(_cfg->state)); _cfg 182 src/libsir/src/sirinternal.c (void)memcpy(&_cfg->si, si, sizeof(sirinit)); _cfg 185 src/libsir/src/sirinternal.c _cfg->si.name[SIR_MAXNAME - 1] = '\0'; _cfg 188 src/libsir/src/sirinternal.c _cfg->state.pid = _sir_getpid(); _cfg 190 src/libsir/src/sirinternal.c (void)snprintf(_cfg->state.pidbuf, SIR_MAXPID, SIR_PIDFORMAT, _cfg 191 src/libsir/src/sirinternal.c PID_CAST _cfg->state.pid); _cfg 195 src/libsir/src/sirinternal.c _sir_syslog_reset(&_cfg->si.d_syslog); _cfg 197 src/libsir/src/sirinternal.c if (_cfg->si.d_syslog.levels != SIRL_NONE && _cfg 198 src/libsir/src/sirinternal.c !_sir_syslog_init(_cfg->si.name, &_cfg->si.d_syslog)) { _cfg 232 src/libsir/src/sirinternal.c _SIR_LOCK_SECTION(sirconfig, _cfg, SIRMI_CONFIG, false); _cfg 235 src/libsir/src/sirinternal.c if (!_sir_syslog_close(&_cfg->si.d_syslog)) { _cfg 240 src/libsir/src/sirinternal.c _sir_syslog_reset(&_cfg->si.d_syslog); _cfg 258 src/libsir/src/sirinternal.c (void)memset(_cfg, 0, sizeof(sirconfig)); _cfg 436 src/libsir/src/sirinternal.c _SIR_LOCK_SECTION(sirconfig, _cfg, SIRMI_CONFIG, false); _cfg 438 src/libsir/src/sirinternal.c bool updated = update(&_cfg->si, data); _cfg 560 src/libsir/src/sirinternal.c _SIR_LOCK_SECTION(sirconfig, _cfg, SIRMI_CONFIG, false); _cfg 567 src/libsir/src/sirinternal.c (now_sec - _cfg->state.last_hname_chk) > SIR_HNAME_CHK_INTERVAL) { _cfg 569 src/libsir/src/sirinternal.c if (!_sir_gethostname(_cfg->state.hostname)) { _cfg 572 src/libsir/src/sirinternal.c _cfg->state.last_hname_chk = now_sec; _cfg 573 src/libsir/src/sirinternal.c _sir_selflog("hostname: '%s'", _cfg->state.hostname); _cfg 586 src/libsir/src/sirinternal.c if (now_sec > _sir_last_timestamp || !*_cfg->state.timestamp) { _cfg 588 src/libsir/src/sirinternal.c bool fmt = _sir_formattime(now_sec, _cfg->state.timestamp, SIR_TIMEFORMAT); _cfg 607 src/libsir/src/sirinternal.c if (!resolved_tid && tid == _cfg->state.pid) { _cfg 620 src/libsir/src/sirinternal.c (void)memcpy(&cfg, _cfg, sizeof(sirconfig)); _cfg 685 src/libsir/src/sirinternal.c _cfg = _sir_locksection(SIRMI_CONFIG); _cfg 686 src/libsir/src/sirinternal.c if (!_cfg) _cfg 689 src/libsir/src/sirinternal.c _cfg->state.last.squelch = cfg.state.last.squelch; _cfg 692 src/libsir/src/sirinternal.c _cfg->state.last.level = level; _cfg 693 src/libsir/src/sirinternal.c _cfg->state.last.hash = hash; _cfg 694 src/libsir/src/sirinternal.c _cfg->state.last.prefix[0] = buf.message[0]; _cfg 695 src/libsir/src/sirinternal.c _cfg->state.last.prefix[1] = buf.message[1]; _cfg 698 src/libsir/src/sirinternal.c _cfg->state.last.counter = cfg.state.last.counter; _cfg 699 src/libsir/src/sirinternal.c _cfg->state.last.threshold = cfg.state.last.threshold;