Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/reboot.h
          +++ new/usr/src/uts/common/sys/reboot.h
↓ open down ↓ 12 lines elided ↑ open up ↑
  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   22  /*
       23 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + *
  23   25   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  #ifndef _SYS_REBOOT_H
  28   30  #define _SYS_REBOOT_H
  29   31  
  30      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  31      -
  32   32  #ifndef _ASM
  33   33  #include <sys/types.h>
  34   34  #endif
  35   35  
  36   36  #ifdef  __cplusplus
  37   37  extern "C" {
  38   38  #endif
  39   39  
  40   40  /*
  41   41   * Boot flags and flags to "reboot" system call.
↓ open down ↓ 16 lines elided ↑ open up ↑
  58   58  #define RB_RECONFIG             0x00001000 /* pass to init on a boot -r */
  59   59  #define RB_VERBOSE              0x00002000 /* set for chatty boot */
  60   60  #define RB_FORTHDEBUG           0x00004000 /* load forthdebug module */
  61   61  #define RB_FORTHDEBUGDBP        0x00008000 /* load forthdebug, enable def bpt */
  62   62  #define RB_KMDB                 0x00020000 /* load kmdb during boot */
  63   63  #define RB_NOBOOTCLUSTER        0x00040000 /* don't boot as a cluster */
  64   64  #define RB_DEBUGENTER           0x00080000 /* enter the debugger at boot */
  65   65  
  66   66  #ifndef _ASM
  67   67  
  68      -#if defined(__STDC__)
  69   68  extern int reboot(int, char *);
  70      -#else
  71      -extern int reboot();
  72      -#endif
  73   69  
  74   70  #if defined(_KERNEL)
  75   71  
  76   72  extern int boothowto;
  77   73  
  78   74  #if defined(_BOOT)
  79   75  extern void bootflags(char *, size_t);
  80   76  #else
  81   77  struct bootops;
  82   78  extern void bootflags(struct bootops *);
↓ open down ↓ 11 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX