Changeset f8e6dba in rtems


Ignore:
Timestamp:
08/01/05 06:29:08 (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bebda1d7
Parents:
f62cb266
Message:

Partial update from FreeBSD.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libnetworking/sys/syslog.h

    rf62cb266 rf8e6dba  
    1111 *    notice, this list of conditions and the following disclaimer in the
    1212 *    documentation and/or other materials provided with the distribution.
    13  * 3. All advertising materials mentioning features or use of this software
    14  *    must display the following acknowledgement:
    15  *      This product includes software developed by the University of
    16  *      California, Berkeley and its contributors.
    1713 * 4. Neither the name of the University nor the names of its contributors
    1814 *    may be used to endorse or promote products derived from this software
     
    3228 *
    3329 *      @(#)syslog.h    8.1 (Berkeley) 6/2/93
     30 * $FreeBSD: src/sys/sys/syslog.h,v 1.26 2005/01/07 02:29:24 imp Exp $
     31 */
     32
     33/*
    3434 * $Id$
    3535 */
     
    6969#define INTERNAL_MARK   LOG_MAKEPRI((LOG_NFACILITIES<<3), 0)
    7070typedef struct _code {
    71         char    *c_name;
    72         int     c_val;
     71        const char      *c_name;
     72        int             c_val;
    7373} CODE;
    7474
     
    9595#define LOG_MAIL        (2<<3)  /* mail system */
    9696#define LOG_DAEMON      (3<<3)  /* system daemons */
    97 #define LOG_AUTH        (4<<3)  /* security/authorization messages */
     97#define LOG_AUTH        (4<<3)  /* authorization messages */
    9898#define LOG_SYSLOG      (5<<3)  /* messages generated internally by syslogd */
    9999#define LOG_LPR         (6<<3)  /* line printer subsystem */
     
    101101#define LOG_UUCP        (8<<3)  /* UUCP subsystem */
    102102#define LOG_CRON        (9<<3)  /* clock daemon */
    103 #define LOG_AUTHPRIV    (10<<3) /* security/authorization messages (private) */
     103#define LOG_AUTHPRIV    (10<<3) /* authorization messages (private) */
    104104                                /* Facility #10 clashes in DEC UNIX, where */
    105105                                /* it's defined as LOG_MEGASAFE for AdvFS  */
     
    175175#define LOG_PERROR      0x20    /* log to stderr as well */
    176176
    177 /*
    178177#ifdef _KERNEL
    179178
    180 #else not _KERNEL */
     179#else /* not _KERNEL */
    181180
    182181#include <sys/cdefs.h>
     
    184183
    185184__BEGIN_DECLS
    186 void    closelog __P((void));
    187 void    openlog __P((const char *, int, int));
    188 int     setlogmask __P((int));
    189 void    syslog __P((int, const char *, ...));
    190 void    vsyslog __P((int, const char *, va_list));
     185void    closelog(void);
     186void    openlog(const char *, int, int);
     187int     setlogmask(int);
     188void    syslog(int, const char *, ...);
     189void    vsyslog(int, const char *, va_list);
    191190__END_DECLS
    192191
    193 /* #endif !_KERNEL */
     192#endif /* !_KERNEL */
    194193
    195194#endif
Note: See TracChangeset for help on using the changeset viewer.