The NetBSD Project

CVS log for src/usr.sbin/syslogd/syslogd.c

[BACK] Up to [cvs.NetBSD.org] / src / usr.sbin / syslogd

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: netbsd-10


Revision 1.140 / (download) - annotate - [select for diffs], Tue Nov 8 01:43:09 2022 UTC (17 months, 1 week ago) by uwe
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10
Changes since 1.139: +86 -6 lines
Diff to previous 1.139 (colored)

syslogd: make -d accept an optional argument

Make it possible to specify the debug message categories with an
optional numeric argument.  You'll have to read the fine source to
find out what they are.  The number can be specified as the usual
decimal, hex (0x), or octal (0) literal with an optional ~negation.

Since syslogd uses getopt(3), not getopt_long(3), do a bit of
gymnastics so that both -d42 and -d 42 are accepted (I'm not inventing
long names for all the existing options just to support an optional
argument to -d).

-d without an argument still uses the old D_DEFAULT selection just in
case someone really relies on that.  You can disable all debug
messages with -d0 but still get syslogd not daemonized.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>