[9168] in Athena Bugs
Re: decmips 7.3P: syslog(3)
daemon@ATHENA.MIT.EDU (epeisach@Athena.MIT.EDU)
Fri Apr 3 13:28:41 1992
From: epeisach@Athena.MIT.EDU
Date: Fri, 3 Apr 92 13:28:30 -0500
To: brlewis@Athena.MIT.EDU
Cc: bugs@Athena.MIT.EDU
In-Reply-To: [9163]
>Looks like Ultrix openlog() only takes one argument. But the syntax
>part of the man page give two while only declaring one.
> From the man page:
> Syntax
> #include <syslog.h>
> openlog(ident, logstat)
> char *ident;
Openlog takes two - you just don't see the prototype.
Syslog under Ultrix uses the 4.2BSD conventions, not the 4.3 ones so
LOG_DAEMON is not defined or used.
You can write code like
#ifdef LOG_DAEMON
openlog("foobar", LOG_PID|LOG_DAEMON);
#else
openlog("foobar", LOG_PID);
#endif
Personally, I don't believe it will ever be fixed in ultrix.
Ezra