opts 414 src/libsir/include/sir.h sirfileid sir_addfile(const char* path, sir_levels levels, sir_options opts); opts 519 src/libsir/include/sir.h bool sir_fileopts(sirfileid id, sir_options opts); opts 648 src/libsir/include/sir.h bool sir_stdoutopts(sir_options opts); opts 692 src/libsir/include/sir.h bool sir_stderropts(sir_options opts); opts 734 src/libsir/include/sir.h bool sir_syslogopts(sir_options opts); opts 40 src/libsir/include/sir/filecache.h sirfileid _sir_addfile(const char* path, sir_levels levels, sir_options opts); opts 44 src/libsir/include/sir/filecache.h sirfile* _sirfile_create(const char* path, sir_levels levels, sir_options opts); opts 59 src/libsir/include/sir/filecache.h sir_options opts); opts 229 src/libsir/include/sir/helpers.h void _sir_defaultopts(sir_options* opts, sir_options def) { opts 230 src/libsir/include/sir/helpers.h if (opts && SIRO_DEFAULT == *opts) opts 231 src/libsir/include/sir/helpers.h *opts = def; opts 235 src/libsir/include/sir/helpers.h bool __sir_validopts(sir_options opts, const char* func, const char* file, opts 239 src/libsir/include/sir/helpers.h # define _sir_validopts(opts) \ opts 240 src/libsir/include/sir/helpers.h __sir_validopts(opts, __func__, __file__, __LINE__) opts 132 src/libsir/include/sir/internal.h const char* _sir_format(bool styling, sir_options opts, sirbuf* buf); opts 186 src/libsir/include/sir/types.h sir_options opts; opts 212 src/libsir/include/sir/types.h sir_options opts; opts 316 src/libsir/include/sir/types.h sir_options opts; opts 335 src/libsir/include/sir/types.h sir_options opts; /**< Formatting options bitmask. */ opts 481 src/libsir/include/sir/types.h sir_options* opts; /**< Formatting options. */ opts 132 src/libsir/src/sir.c sirfileid sir_addfile(const char* path, sir_levels levels, sir_options opts) { opts 133 src/libsir/src/sir.c return _sir_addfile(path, levels, opts); opts 164 src/libsir/src/sir.c bool sir_fileopts(sirfileid id, sir_options opts) { opts 165 src/libsir/src/sir.c _sir_defaultopts(&opts, sir_file_def_opts); opts 166 src/libsir/src/sir.c sir_update_config_data data = {SIRU_OPTIONS, NULL, &opts, NULL, NULL}; opts 199 src/libsir/src/sir.c bool sir_stdoutopts(sir_options opts) { opts 200 src/libsir/src/sir.c _sir_defaultopts(&opts, sir_stdout_def_opts); opts 201 src/libsir/src/sir.c sir_update_config_data data = {SIRU_OPTIONS, NULL, &opts, NULL, NULL}; opts 211 src/libsir/src/sir.c bool sir_stderropts(sir_options opts) { opts 212 src/libsir/src/sir.c _sir_defaultopts(&opts, sir_stderr_def_opts); opts 213 src/libsir/src/sir.c sir_update_config_data data = {SIRU_OPTIONS, NULL, &opts, NULL, NULL}; opts 228 src/libsir/src/sir.c bool sir_syslogopts(sir_options opts) { opts 230 src/libsir/src/sir.c _sir_defaultopts(&opts, sir_syslog_def_opts); opts 231 src/libsir/src/sir.c sir_update_config_data data = {SIRU_OPTIONS, NULL, &opts, NULL, NULL}; opts 234 src/libsir/src/sir.c SIR_UNUSED(opts); opts 38 src/libsir/src/sirfilecache.c sirfileid _sir_addfile(const char* path, sir_levels levels, sir_options opts) { opts 47 src/libsir/src/sirfilecache.c _sir_defaultopts(&opts, sir_file_def_opts); opts 49 src/libsir/src/sirfilecache.c sirfileid retval = _sir_fcache_add(sfc, path, levels, opts); opts 81 src/libsir/src/sirfilecache.c sirfile* _sirfile_create(const char* path, sir_levels levels, sir_options opts) { opts 82 src/libsir/src/sirfilecache.c if (!_sir_validstr(path) || !_sir_validlevels(levels) || !_sir_validopts(opts)) opts 99 src/libsir/src/sirfilecache.c sf->opts = opts; opts 389 src/libsir/src/sirfilecache.c if (sf->opts != *data->opts) { opts 391 src/libsir/src/sirfilecache.c " to %08"PRIx32, sf->id, sf->opts, *data->opts); opts 392 src/libsir/src/sirfilecache.c sf->opts = *data->opts; opts 395 src/libsir/src/sirfilecache.c " options: %08"PRIx32, sf->id, sf->opts); opts 408 src/libsir/src/sirfilecache.c sir_options opts) { opts 410 src/libsir/src/sirfilecache.c !_sir_validopts(opts)) opts 423 src/libsir/src/sirfilecache.c sirfile* sf = _sirfile_create(path, levels, opts); opts 430 src/libsir/src/sirfilecache.c if (!_sir_bittest(sf->opts, SIRO_NOHDR) && !_sirfile_writeheader(sf, SIR_FHBEGIN)) opts 622 src/libsir/src/sirfilecache.c if (!wrote || sfc->files[n]->opts != lastopts) { opts 623 src/libsir/src/sirfilecache.c wrote = _sir_format(false, sfc->files[n]->opts, buf); opts 625 src/libsir/src/sirfilecache.c lastopts = sfc->files[n]->opts; opts 99 src/libsir/src/sirhelpers.c valid = _sir_validptrnofail(data->opts) && opts 100 src/libsir/src/sirhelpers.c _sir_validopts(*data->opts); opts 146 src/libsir/src/sirhelpers.c bool __sir_validopts(sir_options opts, const char* func, const char* file, opts 148 src/libsir/src/sirhelpers.c if ((SIRO_ALL == opts || SIRO_MSGONLY == opts) || opts 149 src/libsir/src/sirhelpers.c ((_sir_bittest(opts, SIRO_NOTIME) || opts 150 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOHOST) || opts 151 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOLEVEL) || opts 152 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NONAME) || opts 153 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOMSEC) || opts 154 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOPID) || opts 155 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOTID) || opts 156 src/libsir/src/sirhelpers.c _sir_bittest(opts, SIRO_NOHDR)) && opts 157 src/libsir/src/sirhelpers.c ((opts & ~(SIRO_MSGONLY | SIRO_NOHDR)) == 0U))) opts 160 src/libsir/src/sirhelpers.c _sir_selflog("invalid options: %08"PRIx32, opts); opts 95 src/libsir/src/sirinternal.c si->d_stdout.opts = SIRO_DEFAULT; opts 98 src/libsir/src/sirinternal.c si->d_stderr.opts = SIRO_DEFAULT; opts 102 src/libsir/src/sirinternal.c si->d_syslog.opts = SIRO_DEFAULT; opts 105 src/libsir/src/sirinternal.c si->d_syslog.opts = SIRO_MSGONLY; opts 138 src/libsir/src/sirinternal.c _sir_defaultopts(&si->d_stdout.opts, sir_stdout_def_opts); opts 141 src/libsir/src/sirinternal.c _sir_defaultopts(&si->d_stderr.opts, sir_stderr_def_opts); opts 145 src/libsir/src/sirinternal.c _sir_defaultopts(&si->d_syslog.opts, sir_syslog_def_opts); opts 305 src/libsir/src/sirinternal.c _sir_eqland(optscheck, _sir_validopts(si->d_stdout.opts)); opts 306 src/libsir/src/sirinternal.c _sir_eqland(optscheck, _sir_validopts(si->d_stderr.opts)); opts 309 src/libsir/src/sirinternal.c _sir_eqland(optscheck, _sir_validopts(si->d_syslog.opts)); opts 355 src/libsir/src/sirinternal.c return _sir_updateopts(SIR_DESTNAME_STDOUT, &si->d_stdout.opts, data->opts); opts 363 src/libsir/src/sirinternal.c return _sir_updateopts(SIR_DESTNAME_STDERR, &si->d_stderr.opts, data->opts); opts 377 src/libsir/src/sirinternal.c bool updated = _sir_updateopts(SIR_DESTNAME_SYSLOG, &si->d_syslog.opts, data->opts); opts 722 src/libsir/src/sirinternal.c const char* writef = _sir_format(styling, si->d_stdout.opts, buf); opts 733 src/libsir/src/sirinternal.c const char* writef = _sir_format(styling, si->d_stderr.opts, buf); opts 779 src/libsir/src/sirinternal.c const char* _sir_format(bool styling, sir_options opts, sirbuf* buf) { opts 788 src/libsir/src/sirinternal.c if (!_sir_bittest(opts, SIRO_NOTIME)) { opts 793 src/libsir/src/sirinternal.c if (!_sir_bittest(opts, SIRO_NOMSEC)) opts 798 src/libsir/src/sirinternal.c if (!_sir_bittest(opts, SIRO_NOHOST) && _sir_validstrnofail(buf->hostname)) { opts 805 src/libsir/src/sirinternal.c if (!_sir_bittest(opts, SIRO_NOLEVEL)) { opts 813 src/libsir/src/sirinternal.c if (!_sir_bittest(opts, SIRO_NONAME) && _sir_validstrnofail(buf->name)) { opts 821 src/libsir/src/sirinternal.c bool wantpid = !_sir_bittest(opts, SIRO_NOPID) && _sir_validstrnofail(buf->pid); opts 822 src/libsir/src/sirinternal.c bool wanttid = !_sir_bittest(opts, SIRO_NOTID) && _sir_validstrnofail(buf->tid); opts 929 src/libsir/src/sirinternal.c ctx->opts); opts 935 src/libsir/src/sirinternal.c int logopt = LOG_NDELAY | (_sir_bittest(ctx->opts, SIRO_NOPID) ? 0 : LOG_PID); opts 150 src/libsir/src/sirplugins.c if (!_sir_validopts(plugin->info.opts)) { opts 152 src/libsir/src/sirplugins.c " %08"PRIx32, plugin->path, plugin->handle, plugin->info.opts); opts 194 src/libsir/src/sirplugins.c plugin->info.bld_ver, plugin->info.levels, plugin->info.opts, opts 479 src/libsir/src/sirplugins.c if (!wrote || spc->plugins[n]->info.opts != lastopts) { opts 480 src/libsir/src/sirplugins.c wrote = _sir_format(false, spc->plugins[n]->info.opts, buf); opts 482 src/libsir/src/sirplugins.c lastopts = spc->plugins[n]->info.opts;