delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/09/21/08:05:13

From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: syslog.h missing
Date: Sat, 21 Sep 2002 10:28:04 +0100
Lines: 38
Message-ID: <3D8C3BA4.8C760F9E@phekda.freeserve.co.uk>
References: <000801c23d06$e9ba6440$8bca5ecb AT truetool> <6137-Sat21Sep2002110848+0300-eliz AT is DOT elta DOT co DOT il>
NNTP-Posting-Host: modem-76.helium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: news7.svr.pol.co.uk 1032609187 27586 62.136.1.76 (21 Sep 2002 11:53:07 GMT)
NNTP-Posting-Date: 21 Sep 2002 11:53:07 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.19 i586)
X-Accept-Language: de,fr
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019