diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/libgen.h | 6 | ||||
-rw-r--r-- | misc/search.h | 8 | ||||
-rw-r--r-- | misc/sys/syslog.h | 104 |
3 files changed, 68 insertions, 50 deletions
diff --git a/misc/libgen.h b/misc/libgen.h index be8258e72a..2c5d642e15 100644 --- a/misc/libgen.h +++ b/misc/libgen.h @@ -1,4 +1,4 @@ -/* Copyright (C) 1996 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -21,10 +21,14 @@ #define _LIBGEN_H 1 #include <sys/cdefs.h> +__BEGIN_DECLS + /* Return directory part of PATH or "." if none is available. */ extern char *dirname __P ((char *__path)); /* Return filename part of PATH. */ extern char *basename __P ((__const char *__path)); +__END_DECLS + #endif /* libgen.h */ diff --git a/misc/search.h b/misc/search.h index d0097429e9..8ce33515d9 100644 --- a/misc/search.h +++ b/misc/search.h @@ -1,5 +1,5 @@ -/* search.h -- declarations for System V style searching functions. - Copyright (C) 1995, 1996 Free Software Foundation, Inc. +/* Declarations for System V style searching functions. + Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -124,8 +124,8 @@ extern void *__tdelete __P ((__const void * __key, void ** __rootp, #ifndef __ACTION_FN_T #define __ACTION_FN_T typedef void (*__action_fn_t) __P ((__const void *__nodep, - __const VISIT __value, - __const int __level)); + VISIT __value, + int __level)); #endif extern void twalk __P ((__const void * __root, __action_fn_t action)); diff --git a/misc/sys/syslog.h b/misc/sys/syslog.h index 241a74d52c..6da3a3b4c3 100644 --- a/misc/sys/syslog.h +++ b/misc/sys/syslog.h @@ -67,21 +67,22 @@ typedef struct _code { int c_val; } CODE; -CODE prioritynames[] = { - "alert", LOG_ALERT, - "crit", LOG_CRIT, - "debug", LOG_DEBUG, - "emerg", LOG_EMERG, - "err", LOG_ERR, - "error", LOG_ERR, /* DEPRECATED */ - "info", LOG_INFO, - "none", INTERNAL_NOPRI, /* INTERNAL */ - "notice", LOG_NOTICE, - "panic", LOG_EMERG, /* DEPRECATED */ - "warn", LOG_WARNING, /* DEPRECATED */ - "warning", LOG_WARNING, - NULL, -1, -}; +CODE prioritynames[] = + { + { "alert", LOG_ALERT }, + { "crit", LOG_CRIT }, + { "debug", LOG_DEBUG }, + { "emerg", LOG_EMERG }, + { "err", LOG_ERR }, + { "error", LOG_ERR }, /* DEPRECATED */ + { "info", LOG_INFO }, + { "none", INTERNAL_NOPRI }, /* INTERNAL */ + { "notice", LOG_NOTICE }, + { "panic", LOG_EMERG }, /* DEPRECATED */ + { "warn", LOG_WARNING }, /* DEPRECATED */ + { "warning", LOG_WARNING }, + { NULL, -1 } + }; #endif /* facility codes */ @@ -114,31 +115,32 @@ CODE prioritynames[] = { #define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3) #ifdef SYSLOG_NAMES -CODE facilitynames[] = { - "auth", LOG_AUTH, - "authpriv", LOG_AUTHPRIV, - "cron", LOG_CRON, - "daemon", LOG_DAEMON, - "ftp", LOG_FTP, - "kern", LOG_KERN, - "lpr", LOG_LPR, - "mail", LOG_MAIL, - "mark", INTERNAL_MARK, /* INTERNAL */ - "news", LOG_NEWS, - "security", LOG_AUTH, /* DEPRECATED */ - "syslog", LOG_SYSLOG, - "user", LOG_USER, - "uucp", LOG_UUCP, - "local0", LOG_LOCAL0, - "local1", LOG_LOCAL1, - "local2", LOG_LOCAL2, - "local3", LOG_LOCAL3, - "local4", LOG_LOCAL4, - "local5", LOG_LOCAL5, - "local6", LOG_LOCAL6, - "local7", LOG_LOCAL7, - NULL, -1, -}; +CODE facilitynames[] = + { + { "auth", LOG_AUTH }, + { "authpriv", LOG_AUTHPRIV }, + { "cron", LOG_CRON }, + { "daemon", LOG_DAEMON }, + { "ftp", LOG_FTP }, + { "kern", LOG_KERN }, + { "lpr", LOG_LPR }, + { "mail", LOG_MAIL }, + { "mark", INTERNAL_MARK }, /* INTERNAL */ + { "news", LOG_NEWS }, + { "security", LOG_AUTH }, /* DEPRECATED */ + { "syslog", LOG_SYSLOG }, + { "user", LOG_USER }, + { "uucp", LOG_UUCP }, + { "local0", LOG_LOCAL0 }, + { "local1", LOG_LOCAL1 }, + { "local2", LOG_LOCAL2 }, + { "local3", LOG_LOCAL3 }, + { "local4", LOG_LOCAL4 }, + { "local5", LOG_LOCAL5 }, + { "local6", LOG_LOCAL6 }, + { "local7", LOG_LOCAL7 }, + { NULL, -1 } + }; #endif #ifdef KERNEL @@ -186,11 +188,23 @@ CODE facilitynames[] = { #include <sys/cdefs.h> __BEGIN_DECLS -void closelog __P((void)); -void openlog __P((const char *, int, int)); -int setlogmask __P((int)); -void syslog __P((int, const char *, ...)); -void vsyslog __P((int, const char *, _BSD_VA_LIST_)); + +/* Close desriptor used to write to system logger. */ +extern void closelog __P ((void)); + +/* Open connection to system logger. */ +extern void openlog __P ((__const char *__ident, int __option, + int __facility)); + +/* Set the log mask level. */ +extern int setlogmask __P ((int __mask)); + +/* Generate a log message using FMT string and option arguments. */ +extern void syslog __P ((int __pri, __const char *__fmt, ...)); + +/* Generate a log message using FMT and using arguments pointed to by AP. */ +extern void vsyslog __P ((int __pri, __const char *__fmt, _BSD_VA_LIST_ __ap)); + __END_DECLS #endif /* !KERNEL */ |