From: dave@das13.snide.com (Dave Snyder)
Newsgroups: comp.sys.3b1
Subject: Syslog for the 3B1
Date: 9 Apr 92 17:28:31 GMT
Organization: Snide Inc. - Folcroft, PA

This posting is for "beyonet!beyo", "holmes!frank", and anyone else that
snagged the Syslog libraries and binaries from the anonuucp/ATT7300 directory
on das13.  When creating the shar file, I forgot to include the C header
files for syslog.h and sys/syslog.h :-(  Sorry about that, the archive has been fixed!  Anyway, because they're small in size, I'm enclosing them in this
posting.  Enjoy!

Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip
#!/bin/sh
# This is a shell archive (produced by shar 3.49)
# To extract the files from this archive, save it to a file, remove
# everything above the "!/bin/sh" line above, and type "sh file_name".
#
# made 04/09/1992 17:10 UTC by dave@das13.snide.com
# Source directory /u/dave/work
#
# existing files will NOT be overwritten unless -c is specified
#
# This shar contains:
# length  mode       name
# ------ ---------- ------------------------------------------
#    394 -r--r--r-- /usr/include/syslog.h
#   3758 -r--r--r-- /usr/include/sys/syslog.h
#
# ============= /usr/include/syslog.h ==============
if test ! -d '/usr'; then
    echo 'x - creating directory /usr'
    mkdir '/usr'
fi
if test ! -d '/usr/include'; then
    echo 'x - creating directory /usr/include'
    mkdir '/usr/include'
fi
if test -f '/usr/include/syslog.h' -a X"$1" != X"-c"; then
	echo 'x - skipping /usr/include/syslog.h (File already exists)'
else
echo 'x - extracting /usr/include/syslog.h (Text)'
sed 's/^X//' << 'SHAR_EOF' > '/usr/include/syslog.h' &&
/*
X * Copyright 1990, 1992, John F. Haugh II
X * All rights reserved.
X *
X * Permission is granted to copy and create derivative works for any
X * non-commercial purpose, provided this copyright notice is preserved
X * in all copies of source code, or included in human readable form
X * and conspicuously displayed on all copies of object code or
X * distribution media.
X */
#include <sys/syslog.h>
SHAR_EOF
chmod 0444 /usr/include/syslog.h ||
echo 'restore of /usr/include/syslog.h failed'
Wc_c="`wc -c < '/usr/include/syslog.h'`"
test 394 -eq "$Wc_c" ||
	echo '/usr/include/syslog.h: original size 394, current size' "$Wc_c"
fi
# ============= /usr/include/sys/syslog.h ==============
if test ! -d '/usr/include/sys'; then
    echo 'x - creating directory /usr/include/sys'
    mkdir '/usr/include/sys'
fi
if test -f '/usr/include/sys/syslog.h' -a X"$1" != X"-c"; then
	echo 'x - skipping /usr/include/sys/syslog.h (File already exists)'
else
echo 'x - extracting /usr/include/sys/syslog.h (Text)'
sed 's/^X//' << 'SHAR_EOF' > '/usr/include/sys/syslog.h' &&
/*
X * Copyright 1990, 1992, John F. Haugh II
X * All rights reserved.
X *
X * Permission is granted to copy and create derivative works for any
X * non-commercial purpose, provided this copyright notice is preserved
X * in all copies of source code, or included in human readable form
X * and conspicuously displayed on all copies of object code or
X * distribution media.
X */
X
X
/*
X *  SYSLOG.H -- declarations for system logging program
X *
X *	These are used as the first parameter to logmsg().
X *	Their meanings are approximately as follows:
X *
X *	LOG_ALERT -- this priority should essentially never
X *		be used.  It applies only to messages that
X *		are so important that every user should be
X *		aware of them, e.g., a serious hardware failure.
X *	LOG_ERR -- these represent error conditions, such as soft
X *		disk failures, etc.
X *	LOG_CRIT -- such messages contain critical information,
X *		but which can not be classed as errors, for example,
X *		'su' attempts.
X *	LOG_WARNING -- issued when an abnormal condition has been
X *		detected, but recovery can take place.
X *	LOG_NOTICE -- something that falls in the class of
X *		"important information"; this class is informational
X *		but important enough that you don't want to throw
X *		it away casually.
X *	LOG_INFO -- information level messages.  These messages
X *		could be thrown away without problems, but should
X *		be included if you want to keep a close watch on
X *		your system.
X *	LOG_DEBUG -- it may be useful to log certain debugging
X *		information.  Normally this will be thrown away.
X */
X
/*
X *  Facility codes
X */
X
#define LOG_KERN	(0<<3)	/* kernel messages */
#define LOG_USER	(1<<3)	/* random user-level messages */
#define LOG_MAIL	(2<<3)	/* mail system */
#define LOG_DAEMON	(3<<3)	/* system daemons */
#define LOG_AUTH	(4<<3)	/* security/authorization messages */
#define LOG_SYSLOG	(5<<3)	/* messages generated internally by syslogd */
#define LOG_LPR		(6<<3)	/* line printer subsystem */
#define LOG_NEWS	(7<<3)	/* news subsystem */
#define LOG_UUCP	(8<<3)	/* uucp subsystem */
X	/* other codes through 15 reserved for system use */
#define LOG_LOCAL0	(16<<3)	/* reserved for local use */
#define LOG_LOCAL1	(17<<3)	/* reserved for local use */
#define LOG_LOCAL2	(18<<3)	/* reserved for local use */
#define LOG_LOCAL3	(19<<3)	/* reserved for local use */
#define LOG_LOCAL4	(20<<3)	/* reserved for local use */
#define LOG_LOCAL5	(21<<3)	/* reserved for local use */
#define LOG_LOCAL6	(22<<3)	/* reserved for local use */
#define LOG_LOCAL7	(23<<3)	/* reserved for local use */
X
#define LOG_NFACILITIES	24	/* maximum number of facilities */
#define LOG_FACMASK	0x03f8	/* mask to extract facility part */
X
/*
X *  Priorities (these are ordered)
X */
X
#define LOG_ALERT	1	/* action must be taken immediately */
#define LOG_ERR		2	/* error conditions */
#define LOG_CRIT	3	/* critical conditions */
#define LOG_WARNING	4	/* warning conditions */
#define LOG_NOTICE	5	/* normal but signification condition */
#define LOG_INFO	6	/* informational */
#define LOG_DEBUG	7	/* debug-level messages */
X
#define LOG_PRIMASK	0x0007	/* mask to extract priority part (internal) */
X
/*
X * arguments to setlogmask.
X */
#define	LOG_MASK(pri)	(1 << (pri))		/* mask for one priority */
#define	LOG_UPTO(pri)	((1 << ((pri)+1)) - 1)	/* all priorities through pri */
X
/*
X *  Option flags for openlog.
X *
X *	LOG_ODELAY no longer does anything; LOG_NDELAY is the
X *	inverse of what it used to be.
X */
#define	LOG_PID		0x01	/* log the pid with each message */
#define	LOG_CONS	0x02	/* log on the console if errors in sending */
#define	LOG_ODELAY	0x04	/* delay open until syslog() is called */
#define LOG_NDELAY	0x10	/* don't delay open */
#define LOG_NOWAIT	0x20	/* if forking to log on console, don't wait() */
SHAR_EOF
chmod 0444 /usr/include/sys/syslog.h ||
echo 'restore of /usr/include/sys/syslog.h failed'
Wc_c="`wc -c < '/usr/include/sys/syslog.h'`"
test 3758 -eq "$Wc_c" ||
	echo '/usr/include/sys/syslog.h: original size 3758, current size' "$Wc_c"
fi
exit 0
Here --------- Snip Here --------- Snip Here --------- Snip Here --------- Snip

DAS
-- 
David A. Snyder @ Snide Inc. - Folcroft, PA                    Current Release
                                                               is db4glgen-3.4
UUCP:  ..!uunet!das13!dave   INTERNET:  dave.snyder@snide.com