This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
setlogmask() help requested
- To: glibc-linux@ricardo.ecn.wfu.edu
- Subject: setlogmask() help requested
- From: Marcus Harnisch <marcus@harnisch.isdn.cs.tu-berlin.de>
- Date: Thu, 17 Jun 1999 20:42:18 +0200 (CEST)
- References: <31D0F5241365D1118E2000805F2628BF597F6A@saho.org>
- Reply-To: glibc-linux@ricardo.ecn.wfu.edu
Wright, Shayne (SAHO) writes:
> My problem is with the following code segment, or more likely, my
> expectation of the setlogmask function. According to the information I have,
> I expect that:
> logmask = setlogmask(LOG_UPTO(LOG_NOTICE)) will set the logmask such that
> all log levels below LOG_NOTICE will be disregarded upon subsequent calls to
> syslog.
> [...]
> Could someone tell me if the problem lies in my code, my expectation of the
> code, the development tools, or my Linux system configuration. I can find no
> setlogmask man pages on my system, and only limited documentation on the
> net.
Your code is correct. This bug existed in glibc versions prior to
2.1. Unfortunately you didn't mention the (minor) version of the
glibc that you linked your program against.
Regards,
Marcus
--
Some operating systems are called `user friendly',
UNIX however is `expert friendly'.
Marcus Harnisch <mailto:marcus@harnisch.isdn.cs.tu-berlin.de>