This is the mail archive of the glibc-linux@ricardo.ecn.wfu.edu mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

setlogmask() help requested


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>

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]