openlog() syslog()
    Carl S. Gutekunst 
    csg at pyramid.pyramid.com
       
    Tue Aug 29 17:56:02 AEST 1989
    
    
  
In article <234 at tness7.UUCP> mechjgh at 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>
    
    
More information about the Comp.sys.pyramid
mailing list