si                 77 src/libsir/include/sir.h bool sir_makeinit(sirinit* si);
si                 99 src/libsir/include/sir.h bool sir_init(sirinit* si);
si                 48 src/libsir/include/sir/internal.h bool _sir_makeinit(sirinit* si);
si                 51 src/libsir/include/sir/internal.h bool _sir_init(sirinit* si);
si                 66 src/libsir/include/sir/internal.h bool _sir_init_sanity(const sirinit* si);
si                 72 src/libsir/include/sir/internal.h bool _sir_stdoutlevels(sirinit* si, const sir_update_config_data* data);
si                 75 src/libsir/include/sir/internal.h bool _sir_stdoutopts(sirinit* si, const sir_update_config_data* data);
si                 78 src/libsir/include/sir/internal.h bool _sir_stderrlevels(sirinit* si, const sir_update_config_data* data);
si                 81 src/libsir/include/sir/internal.h bool _sir_stderropts(sirinit* si, const sir_update_config_data* data);
si                 84 src/libsir/include/sir/internal.h bool _sir_sysloglevels(sirinit* si, const sir_update_config_data* data);
si                 87 src/libsir/include/sir/internal.h bool _sir_syslogopts(sirinit* si, const sir_update_config_data* data);
si                 90 src/libsir/include/sir/internal.h bool _sir_syslogid(sirinit* si, const sir_update_config_data* data);
si                 93 src/libsir/include/sir/internal.h bool _sir_syslogcat(sirinit* si, const sir_update_config_data* data);
si                129 src/libsir/include/sir/internal.h bool _sir_dispatch(const sirinit* si, sir_level level, sirbuf* buf);
si                156 src/libsir/include/sir/internal.h bool _sir_syslog_updated(sirinit* si, const sir_update_config_data* data);
si                292 src/libsir/include/sir/types.h     sirinit si;
si                 44 src/libsir/src/sir.c bool sir_makeinit(sirinit* si) {
si                 45 src/libsir/src/sir.c     return _sir_makeinit(si);
si                 48 src/libsir/src/sir.c bool sir_init(sirinit* si) {
si                 49 src/libsir/src/sir.c     return _sir_init(si);
si                 89 src/libsir/src/sirinternal.c bool _sir_makeinit(sirinit* si) {
si                 90 src/libsir/src/sirinternal.c     bool retval = _sir_validptr(si);
si                 93 src/libsir/src/sirinternal.c         (void)memset(si, 0, sizeof(sirinit));
si                 95 src/libsir/src/sirinternal.c         si->d_stdout.opts   = SIRO_DEFAULT;
si                 96 src/libsir/src/sirinternal.c         si->d_stdout.levels = SIRL_DEFAULT;
si                 98 src/libsir/src/sirinternal.c         si->d_stderr.opts   = SIRO_DEFAULT;
si                 99 src/libsir/src/sirinternal.c         si->d_stderr.levels = SIRL_DEFAULT;
si                102 src/libsir/src/sirinternal.c         si->d_syslog.opts   = SIRO_DEFAULT;
si                103 src/libsir/src/sirinternal.c         si->d_syslog.levels = SIRL_DEFAULT;
si                105 src/libsir/src/sirinternal.c         si->d_syslog.opts   = SIRO_MSGONLY;
si                106 src/libsir/src/sirinternal.c         si->d_syslog.levels = SIRL_NONE;
si                113 src/libsir/src/sirinternal.c bool _sir_init(sirinit* si) {
si                127 src/libsir/src/sirinternal.c     if (!_sir_validptr(si))
si                137 src/libsir/src/sirinternal.c     _sir_defaultlevels(&si->d_stdout.levels, sir_stdout_def_lvls);
si                138 src/libsir/src/sirinternal.c     _sir_defaultopts(&si->d_stdout.opts, sir_stdout_def_opts);
si                140 src/libsir/src/sirinternal.c     _sir_defaultlevels(&si->d_stderr.levels, sir_stderr_def_lvls);
si                141 src/libsir/src/sirinternal.c     _sir_defaultopts(&si->d_stderr.opts, sir_stderr_def_opts);
si                144 src/libsir/src/sirinternal.c     _sir_defaultlevels(&si->d_syslog.levels, sir_syslog_def_lvls);
si                145 src/libsir/src/sirinternal.c     _sir_defaultopts(&si->d_syslog.opts, sir_syslog_def_opts);
si                148 src/libsir/src/sirinternal.c     if (!_sir_init_sanity(si))
si                182 src/libsir/src/sirinternal.c     (void)memcpy(&_cfg->si, si, sizeof(sirinit));
si                185 src/libsir/src/sirinternal.c     _cfg->si.name[SIR_MAXNAME - 1] = '\0';
si                195 src/libsir/src/sirinternal.c     _sir_syslog_reset(&_cfg->si.d_syslog);
si                197 src/libsir/src/sirinternal.c     if (_cfg->si.d_syslog.levels != SIRL_NONE &&
si                198 src/libsir/src/sirinternal.c         !_sir_syslog_init(_cfg->si.name, &_cfg->si.d_syslog)) {
si                235 src/libsir/src/sirinternal.c     if (!_sir_syslog_close(&_cfg->si.d_syslog)) {
si                240 src/libsir/src/sirinternal.c     _sir_syslog_reset(&_cfg->si.d_syslog);
si                284 src/libsir/src/sirinternal.c bool _sir_init_sanity(const sirinit* si) {
si                285 src/libsir/src/sirinternal.c     if (!_sir_validptr(si))
si                289 src/libsir/src/sirinternal.c     _sir_eqland(levelcheck, _sir_validlevels(si->d_stdout.levels));
si                290 src/libsir/src/sirinternal.c     _sir_eqland(levelcheck, _sir_validlevels(si->d_stderr.levels));
si                293 src/libsir/src/sirinternal.c     _sir_eqland(regcheck, SIRL_NONE == si->d_stdout.levels);
si                294 src/libsir/src/sirinternal.c     _sir_eqland(regcheck, SIRL_NONE == si->d_stderr.levels);
si                297 src/libsir/src/sirinternal.c     _sir_eqland(levelcheck, _sir_validlevels(si->d_syslog.levels));
si                298 src/libsir/src/sirinternal.c     _sir_eqland(regcheck, SIRL_NONE == si->d_syslog.levels);
si                305 src/libsir/src/sirinternal.c     _sir_eqland(optscheck, _sir_validopts(si->d_stdout.opts));
si                306 src/libsir/src/sirinternal.c     _sir_eqland(optscheck, _sir_validopts(si->d_stderr.opts));
si                309 src/libsir/src/sirinternal.c     _sir_eqland(optscheck, _sir_validopts(si->d_syslog.opts));
si                350 src/libsir/src/sirinternal.c bool _sir_stdoutlevels(sirinit* si, const sir_update_config_data* data) {
si                351 src/libsir/src/sirinternal.c     return _sir_updatelevels(SIR_DESTNAME_STDOUT, &si->d_stdout.levels, data->levels);
si                354 src/libsir/src/sirinternal.c bool _sir_stdoutopts(sirinit* si, const sir_update_config_data* data) {
si                355 src/libsir/src/sirinternal.c     return _sir_updateopts(SIR_DESTNAME_STDOUT, &si->d_stdout.opts, data->opts);
si                358 src/libsir/src/sirinternal.c bool _sir_stderrlevels(sirinit* si, const sir_update_config_data* data) {
si                359 src/libsir/src/sirinternal.c     return _sir_updatelevels(SIR_DESTNAME_STDERR, &si->d_stderr.levels, data->levels);
si                362 src/libsir/src/sirinternal.c bool _sir_stderropts(sirinit* si, const sir_update_config_data* data) {
si                363 src/libsir/src/sirinternal.c     return _sir_updateopts(SIR_DESTNAME_STDERR, &si->d_stderr.opts, data->opts);
si                366 src/libsir/src/sirinternal.c bool _sir_sysloglevels(sirinit* si, const sir_update_config_data* data) {
si                367 src/libsir/src/sirinternal.c     bool updated = _sir_updatelevels(SIR_DESTNAME_SYSLOG, &si->d_syslog.levels, data->levels);
si                369 src/libsir/src/sirinternal.c         _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_LEVELS);
si                370 src/libsir/src/sirinternal.c         updated = _sir_syslog_updated(si, data);
si                371 src/libsir/src/sirinternal.c         _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_LEVELS);
si                376 src/libsir/src/sirinternal.c bool _sir_syslogopts(sirinit* si, const sir_update_config_data* data) {
si                377 src/libsir/src/sirinternal.c     bool updated = _sir_updateopts(SIR_DESTNAME_SYSLOG, &si->d_syslog.opts, data->opts);
si                379 src/libsir/src/sirinternal.c         _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_OPTIONS);
si                380 src/libsir/src/sirinternal.c         updated = _sir_syslog_updated(si, data);
si                381 src/libsir/src/sirinternal.c         _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_OPTIONS);
si                386 src/libsir/src/sirinternal.c bool _sir_syslogid(sirinit* si, const sir_update_config_data* data) {
si                387 src/libsir/src/sirinternal.c     bool retval = _sir_validptr(si) && _sir_validptr(data);
si                390 src/libsir/src/sirinternal.c         bool cur_ok = _sir_validstrnofail(si->d_syslog.identity);
si                391 src/libsir/src/sirinternal.c         if (!cur_ok || 0 != strncmp(si->d_syslog.identity, data->sl_identity, SIR_MAX_SYSLOG_ID)) {
si                393 src/libsir/src/sirinternal.c                 si->d_syslog.identity, data->sl_identity);
si                394 src/libsir/src/sirinternal.c             (void)_sir_strncpy(si->d_syslog.identity, SIR_MAX_SYSLOG_ID, data->sl_identity,
si                396 src/libsir/src/sirinternal.c             _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_IDENTITY);
si                397 src/libsir/src/sirinternal.c             retval = _sir_syslog_updated(si, data);
si                398 src/libsir/src/sirinternal.c             _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_IDENTITY);
si                401 src/libsir/src/sirinternal.c                 si->d_syslog.identity);
si                408 src/libsir/src/sirinternal.c bool _sir_syslogcat(sirinit* si, const sir_update_config_data* data) {
si                409 src/libsir/src/sirinternal.c     bool retval = _sir_validptr(si) && _sir_validptr(data);
si                412 src/libsir/src/sirinternal.c         bool cur_ok = _sir_validstrnofail(si->d_syslog.category);
si                413 src/libsir/src/sirinternal.c         if (!cur_ok || 0 != strncmp(si->d_syslog.category, data->sl_category, SIR_MAX_SYSLOG_CAT)) {
si                415 src/libsir/src/sirinternal.c                 si->d_syslog.category, data->sl_category);
si                416 src/libsir/src/sirinternal.c             (void)_sir_strncpy(si->d_syslog.category, SIR_MAX_SYSLOG_CAT, data->sl_category,
si                418 src/libsir/src/sirinternal.c             _sir_setbitshigh(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_CATEGORY);
si                419 src/libsir/src/sirinternal.c             retval = _sir_syslog_updated(si, data);
si                420 src/libsir/src/sirinternal.c             _sir_setbitslow(&si->d_syslog._state.mask, SIRSL_UPDATED | SIRSL_CATEGORY);
si                423 src/libsir/src/sirinternal.c                 si->d_syslog.identity);
si                438 src/libsir/src/sirinternal.c     bool updated = update(&_cfg->si, data);
si                626 src/libsir/src/sirinternal.c     buf.name      = cfg.si.name;
si                706 src/libsir/src/sirinternal.c     bool dispatched = _sir_dispatch(&cfg.si, level, &buf);
si                710 src/libsir/src/sirinternal.c bool _sir_dispatch(const sirinit* si, sir_level level, sirbuf* buf) {
si                721 src/libsir/src/sirinternal.c     if (_sir_bittest(si->d_stdout.levels, level)) {
si                722 src/libsir/src/sirinternal.c         const char* writef = _sir_format(styling, si->d_stdout.opts, buf);
si                732 src/libsir/src/sirinternal.c     if (_sir_bittest(si->d_stderr.levels, level)) {
si                733 src/libsir/src/sirinternal.c         const char* writef = _sir_format(styling, si->d_stderr.opts, buf);
si                744 src/libsir/src/sirinternal.c     if (_sir_bittest(si->d_syslog.levels, level)) {
si                745 src/libsir/src/sirinternal.c         if (_sir_syslog_write(level, buf, &si->d_syslog))
si               1061 src/libsir/src/sirinternal.c bool _sir_syslog_updated(sirinit* si, const sir_update_config_data* data) {
si               1063 src/libsir/src/sirinternal.c     if (!_sir_validptr(si) || !_sir_validptr(data))
si               1066 src/libsir/src/sirinternal.c     if (_sir_bittest(si->d_syslog._state.mask, SIRSL_UPDATED)) {
si               1067 src/libsir/src/sirinternal.c         bool levels   = _sir_bittest(si->d_syslog._state.mask, SIRSL_LEVELS);
si               1068 src/libsir/src/sirinternal.c         bool options  = _sir_bittest(si->d_syslog._state.mask, SIRSL_OPTIONS);
si               1069 src/libsir/src/sirinternal.c         bool category = _sir_bittest(si->d_syslog._state.mask, SIRSL_CATEGORY);
si               1070 src/libsir/src/sirinternal.c         bool identity = _sir_bittest(si->d_syslog._state.mask, SIRSL_IDENTITY);
si               1071 src/libsir/src/sirinternal.c         bool is_init  = _sir_bittest(si->d_syslog._state.mask, SIRSL_IS_INIT);
si               1072 src/libsir/src/sirinternal.c         bool is_open  = _sir_bittest(si->d_syslog._state.mask, SIRSL_IS_OPEN);
si               1095 src/libsir/src/sirinternal.c                 init = _sir_syslog_close(&si->d_syslog);
si               1098 src/libsir/src/sirinternal.c             _sir_eqland(init, _sir_syslog_init(si->name, &si->d_syslog));
si               1109 src/libsir/src/sirinternal.c     SIR_UNUSED(si);
si               1774 src/simh/scp.c sirinit si;
si               1775 src/simh/scp.c if (!sir_makeinit(&si))
si               1779 src/simh/scp.c si.d_stdout.levels = SIRL_DEBUG | SIRL_INFO | SIRL_WARN | SIRL_NOTICE;
si               1782 src/simh/scp.c si.d_stdout.opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOTID;
si               1785 src/simh/scp.c si.d_stderr.levels = SIRL_ERROR | SIRL_CRIT | SIRL_ALERT | SIRL_EMERG;
si               1788 src/simh/scp.c si.d_stderr.opts = SIRO_NOTIME | SIRO_NOHOST | SIRO_NOTID;
si               1791 src/simh/scp.c si.d_syslog.levels = SIRL_NONE;
si               1794 src/simh/scp.c si.d_syslog.opts = SIRO_DEFAULT;
si               1797 src/simh/scp.c (void)_sir_strncpy(si.name, SIR_MAXNAME, appname, strnlen(appname, SIR_MAXNAME));
si               1800 src/simh/scp.c if (!sir_init(&si))