Print this page
remove support for non-ANSI compilation

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/shm.h
          +++ new/usr/src/uts/common/sys/shm.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 2003 Sun Microsystems, Inc.  All rights reserved.
  24   26   * Use is subject to license terms.
  25   27   */
  26   28  
  27   29  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  28   30  /*        All Rights Reserved   */
  29   31  
  30   32  /*
  31   33   * Portions of this source code were derived from Berkeley 4.3 BSD
  32   34   * under license from the Regents of the University of California.
  33   35   */
  34   36  
  35   37  #ifndef _SYS_SHM_H
  36   38  #define _SYS_SHM_H
  37   39  
  38      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  39      -
  40   40  #include <sys/ipc.h>
  41   41  
  42   42  #ifdef  __cplusplus
  43   43  extern "C" {
  44   44  #endif
  45   45  
  46   46  /*
  47   47   *      IPC Shared Memory Facility.
  48   48   */
  49   49  
↓ open down ↓ 64 lines elided ↑ open up ↑
 114  114  #endif  /* _LP64 */
 115  115  };
 116  116  
 117  117  /*
 118  118   * Shared memory control operations
 119  119   */
 120  120  #define SHM_LOCK        3       /* Lock segment in core */
 121  121  #define SHM_UNLOCK      4       /* Unlock segment */
 122  122  
 123  123  #if !defined(_KERNEL)
 124      -#if defined(__STDC__)
 125  124  int shmget(key_t, size_t, int);
 126  125  int shmids(int *, uint_t, uint_t *);
 127  126  int shmctl(int, int, struct shmid_ds *);
 128  127  void *shmat(int, const void *, int);
 129  128  #if defined(_XPG4)
 130  129  int shmdt(const void *);
 131  130  #else
 132  131  int shmdt(char *);
 133  132  #endif /* defined(_XPG4) */
 134      -#else /* __STDC__ */
 135      -int shmctl();
 136      -int shmget();
 137      -int shmids();
 138      -void *shmat();
 139      -int shmdt();
 140      -#endif /* __STDC__ */
 141  133  #endif /* !defined(_KERNEL) */
 142  134  
 143  135  #ifdef  __cplusplus
 144  136  }
 145  137  #endif
 146  138  
 147  139  #endif  /* _SYS_SHM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX