Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!oliveb!pyramid!csg From: csg@pyramid.pyramid.com (Carl S. Gutekunst) Newsgroups: comp.sys.pyramid Subject: Re: openlog() syslog() Message-ID: <82450@pyramid.pyramid.com> Date: 29 Aug 89 07:56:02 GMT References: <234@tness7.UUCP> Organization: Pyramid Technology Corp., Mountain View, CA Lines: 22 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.