Mail Archives: djgpp/2002/09/21/08:05:13
Hello.
Eli Zaretskii wrote:
>
> > From: "rahul singh" <rana_rahul AT rediffmail DOT com>
> > Date: Tue, 6 Aug 2002 10:35:40 +0530
> >
> > I am a new user of djgpp and soon after using it for
> > sometime, I discovered that support
> > for some vital headers was missing. So far, it has only been syslog.h
> > that is not here
>
> What is syslog.h, and where (in what program) did you need it?
syslog.h has declarations for the system logging functions - syslog(), etc.
This is used on Unix systems to write messages to the log file(s) via a
logging daemon. There are "facilities" (kernel, mail, etc.) and priorites,
which can be used to control where the messages go, so that you can separate
kernel messages from mail messages.
> AFAIK, it's not a standard header.
It's part of the Single Unix Specification.
I wrote a basic syslog implementation using Windows mailslots once. It's in my
libmslot library - see:
http://www.phekda.freeserve.co.uk/richdawe/mysoft.html#libmslot
It needs a logging daemon to do anything useful. The other thing to bear in
mind is that Windows mailslots are not a reliable communication mechanism -
messages may get dropped, when the queues fill up. Whether that's acceptable
enough depends on what you're logging.
Regards,
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -