Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/head/syslog.h
          +++ new/usr/src/head/syslog.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   * and limitations under the License.
  13   13   *
  14   14   * When distributing Covered Code, include this CDDL HEADER in each
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
       22 +/*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + */
  22   25  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   26  /*        All Rights Reserved   */
  24   27  
  25   28  
  26   29  #ifndef _SYSLOG_H
  27   30  #define _SYSLOG_H
  28   31  
  29      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.1   */
  30      -
  31   32  #include <sys/feature_tests.h>
  32   33  #include <sys/syslog.h>
  33   34  #include <sys/va_list.h>
  34   35  
  35   36  #ifdef  __cplusplus
  36   37  extern "C" {
  37   38  #endif
  38   39  
  39      -#ifdef  __STDC__
  40      -
  41   40  void openlog(const char *, int, int);
  42   41  void syslog(int, const char *, ...);
  43   42  void closelog(void);
  44   43  int setlogmask(int);
  45   44  #if !defined(_XPG4_2) || defined(__EXTENSIONS__)
  46   45  void vsyslog(int, const char *, __va_list);
  47   46  #endif  /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
  48   47  
  49      -#else   /* __STDC__ */
  50      -
  51      -void openlog();
  52      -void syslog();
  53      -void closelog();
  54      -int setlogmask();
  55      -#if !defined(_XPG4_2) || defined(__EXTENSIONS__)
  56      -void vsyslog();
  57      -#endif  /* !defined(_XPG4_2) || defined(__EXTENSIONS__) */
  58      -
  59      -#endif  /* __STDC__ */
  60      -
  61   48  #ifdef  __cplusplus
  62   49  }
  63   50  #endif
  64   51  
  65   52  #endif  /* _SYSLOG_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX