mechjgh@tness7.UUCP (Greg Hackney ) (08/29/89)
ref: Pyramid OSx4.4 The manual section for openlog() and syslog() refer to these: LOG_CONS LOG_NDELAY LOG_NOWAIT LOG_KERN LOG_USER LOG_MAIL LOG_DAEMON LOG_AUTH LOG_LPR Where are they defined? I would have thought syslog.h, but they are not in any include files. (And I don't have another BSD system to look at.) -- Greg Hackney hack@tness7.swbt.com
csg@pyramid.pyramid.com (Carl S. Gutekunst) (08/29/89)
In article <234@tness7.UUCP> mechjgh@tness7.UUCP (Greg Hackney ) writes: >Pyramid OSx4.4. The manual section for openlog() and syslog() refer to these: > >LOG_CONS LOG_NDELAY LOG_NOWAIT >LOG_KERN LOG_USER LOG_MAIL >LOG_DAEMON LOG_AUTH LOG_LPR The man page is wrong. Those facility codes are part of the 4.3BSD syslog(3), which wasn't available in OSx 4.4. Some absent-minded soul figured that since we had 4.3BSD networking, we must have 4.3BSD syslog, near as I can figure. The usual test for selecting "old" syslog versus "new" syslog is: #ifdef LOG_MAIL openlog("sendmail", LOG_PID, LOG_MAIL); #else !LOG_MAIL openlog("sendmail", LOG_PID); #endif LOG_MAIL with LOG_MAIL set to whatever is appropriate. <csg>