Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/wait.h
          +++ new/usr/src/uts/common/sys/wait.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  23   23  /*        All Rights Reserved   */
  24   24  
  25      -
  26   25  /*
       26 + * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       27 + *
  27   28   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  28   29   * Use is subject to license terms.
  29   30   */
  30   31  
  31   32  #ifndef _SYS_WAIT_H
  32   33  #define _SYS_WAIT_H
  33   34  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"        /* SVr4.0 1.10 */
  35      -
  36   35  #include <sys/feature_tests.h>
  37   36  
  38   37  #include <sys/types.h>
  39   38  
  40   39  #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
  41   40  #include <sys/resource.h>       /* Added for XSH4.2 */
  42   41  #include <sys/siginfo.h>
  43   42  #include <sys/procset.h>
  44   43  #endif /* !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2) ... */
  45   44  
↓ open down ↓ 42 lines elided ↑ open up ↑
  88   87  #define WIFSIGNALED(stat)       ((int)((stat)&0xFF) > 0 && \
  89   88                                      (int)((stat)&0xFF00) == 0)
  90   89  #define WIFSTOPPED(stat)        ((int)((stat)&0xFF) == 0177 && \
  91   90                                      (int)((stat)&0xFF00) != 0)
  92   91  #define WEXITSTATUS(stat)       ((int)(((stat)>>8)&0xFF))
  93   92  #define WTERMSIG(stat)          ((int)((stat)&0x7F))
  94   93  #define WSTOPSIG(stat)          ((int)(((stat)>>8)&0xFF))
  95   94  
  96   95  
  97   96  #if !defined(_KERNEL)
  98      -#if defined(__STDC__)
  99   97  
 100   98  extern pid_t wait(int *);
 101   99  extern pid_t waitpid(pid_t, int *, int);
 102  100  
 103  101  #if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
 104  102  extern int waitid(idtype_t, id_t, siginfo_t *, int);
 105  103  /* Marked as LEGACY in SUSv2 and removed in SUSv3 */
 106  104  #if !defined(_XPG6) || defined(__EXTENSIONS__)
 107  105  extern pid_t wait3(int *, int, struct rusage *);
 108  106  #endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
 109  107  #endif /* !defined(__XOPEN_OR_POSIX) || (defined(_XPG4_2) ... */
 110  108  
 111  109  #if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 112  110  extern pid_t wait4(pid_t, int *, int, struct rusage *);
 113  111  #endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 114  112  
 115      -#else /* __STDC__ */
 116      -
 117      -extern pid_t wait();
 118      -extern pid_t waitpid();
 119      -#if !defined(__XOPEN_OR_POSIX) || defined(_XPG4_2) || defined(__EXTENSIONS__)
 120      -extern int waitid();
 121      -/* Marked as LEGACY in SUSv2 and removed in SUSv3 */
 122      -#if !defined(_XPG6) || defined(__EXTENSIONS__)
 123      -extern pid_t wait3();
 124      -#endif /* !defined(_XPG6) || defined(__EXTENSIONS__) */
 125      -#endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 126      -
 127      -#if !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__)
 128      -extern pid_t wait4();
 129      -#endif /* !defined(__XOPEN_OR_POSIX) || defined(__EXTENSIONS__) */
 130      -
 131      -#endif  /* __STDC__ */
 132  113  #endif  /* _KERNEL */
 133  114  
 134  115  #ifdef  __cplusplus
 135  116  }
 136  117  #endif
 137  118  
 138  119  #endif  /* _SYS_WAIT_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX