Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/sem.h
          +++ new/usr/src/uts/common/sys/sem.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 1997-2003 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  
  31   33  #ifndef _SYS_SEM_H
  32   34  #define _SYS_SEM_H
  33   35  
  34      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  35      -
  36   36  #include <sys/ipc.h>
  37   37  
  38   38  #ifdef  __cplusplus
  39   39  extern "C" {
  40   40  #endif
  41   41  
  42   42  /*
  43   43   * IPC Semaphore Facility.
  44   44   */
  45   45  
↓ open down ↓ 50 lines elided ↑ open up ↑
  96   96  /*
  97   97   * User semaphore template for semop system calls.
  98   98   */
  99   99  struct sembuf {
 100  100          ushort_t        sem_num;        /* semaphore # */
 101  101          short           sem_op;         /* semaphore operation */
 102  102          short           sem_flg;        /* operation flags */
 103  103  };
 104  104  
 105  105  #if !defined(_KERNEL)
 106      -#if defined(__STDC__)
 107  106  int semctl(int, int, int, ...);
 108  107  int semget(key_t, int, int);
 109  108  int semids(int *, uint_t, uint_t *);
 110  109  int semop(int, struct sembuf *, size_t);
 111  110  #if defined(__EXTENSIONS__) || !defined(_XOPEN_SOURCE)
 112  111  int semtimedop(int, struct sembuf *, size_t, const struct timespec *);
 113  112  #endif
 114      -#else /* __STDC__ */
 115      -int semctl();
 116      -int semget();
 117      -int semids();
 118      -int semop();
 119      -int semtimedop();
 120      -#endif /* __STDC__ */
 121  113  #endif /* ! _KERNEL */
 122  114  
 123  115  #ifdef  __cplusplus
 124  116  }
 125  117  #endif
 126  118  
 127  119  #endif  /* _SYS_SEM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX