Print this page
4211 Some syslog facility names and symbols are missing
1762 Syslogd man page: missing reference.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/logsubr.c
          +++ new/usr/src/uts/common/os/logsubr.c
↓ open down ↓ 12 lines elided ↑ open up ↑
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
       23 + * Copyright (c) 2013 Gary Mills
  23   24   * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
  24   25   */
  25   26  
  26   27  #include <sys/types.h>
  27   28  #include <sys/param.h>
  28   29  #include <sys/varargs.h>
  29   30  #include <sys/systm.h>
  30   31  #include <sys/cmn_err.h>
  31   32  #include <sys/stream.h>
  32   33  #include <sys/strsubr.h>
↓ open down ↓ 33 lines elided ↑ open up ↑
  66   67  static char log_overflow_msg[] = "message overflow on /dev/log minor #%d%s\n";
  67   68  
  68   69  static char log_pri[LOG_PRIMASK + 1][LOG_PRISIZE] = {
  69   70          "emerg",        "alert",        "crit",         "error",
  70   71          "warning",      "notice",       "info",         "debug"
  71   72  };
  72   73  
  73   74  static char log_fac[LOG_NFACILITIES + 1][LOG_FACSIZE] = {
  74   75          "kern",         "user",         "mail",         "daemon",
  75   76          "auth",         "syslog",       "lpr",          "news",
  76      -        "uucp",         "resv9",        "resv10",       "resv11",
  77      -        "resv12",       "audit",        "resv14",       "cron",
       77 +        "uucp",         "altcron",      "authpriv",     "ftp",
       78 +        "ntp",          "audit",        "console",      "cron",
  78   79          "local0",       "local1",       "local2",       "local3",
  79   80          "local4",       "local5",       "local6",       "local7",
  80   81          "unknown"
  81   82  };
  82   83  static int log_cons_constructor(void *, void *, int);
  83   84  static void log_cons_destructor(void *, void *);
  84   85  
  85   86  /*
  86   87   * Get exclusive access to the logging system; this includes all minor
  87   88   * devices.  We use an rwlock rather than a mutex because hold times
↓ open down ↓ 677 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX