Print this page
OS-5223 removed shm segment is no longer available
Reviewed by: Bryan Cantrill <bryan@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/shm.h
          +++ new/usr/src/uts/common/sys/shm.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  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   23   * Copyright 2014 Garrett D'Amore <garrett@damore.org>
       24 + * Copyright 2016 Joyent, Inc.
  24   25   *
  25   26   * Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
  26   27   * Use is subject to license terms.
  27   28   */
  28   29  
  29   30  /*      Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T     */
  30   31  /*        All Rights Reserved   */
  31   32  
  32   33  /*
  33   34   * Portions of this source code were derived from Berkeley 4.3 BSD
↓ open down ↓ 79 lines elided ↑ open up ↑
 113  114          int32_t         shm_pad4[4];    /* reserve area  */
 114  115  #endif  /* _LP64 */
 115  116  };
 116  117  
 117  118  /*
 118  119   * Shared memory control operations
 119  120   */
 120  121  #define SHM_LOCK        3       /* Lock segment in core */
 121  122  #define SHM_UNLOCK      4       /* Unlock segment */
 122  123  
      124 +#if defined(_KERNEL)
      125 +#define SHM_RMID        5       /* Private RMID for lx support */
      126 +#endif
      127 +
 123  128  #if !defined(_KERNEL)
 124  129  int shmget(key_t, size_t, int);
 125  130  int shmids(int *, uint_t, uint_t *);
 126  131  int shmctl(int, int, struct shmid_ds *);
 127  132  void *shmat(int, const void *, int);
 128  133  #if defined(_XPG4)
 129  134  int shmdt(const void *);
 130  135  #else
 131  136  int shmdt(char *);
 132  137  #endif /* defined(_XPG4) */
 133  138  #endif /* !defined(_KERNEL) */
 134  139  
 135  140  #ifdef  __cplusplus
 136  141  }
 137  142  #endif
 138  143  
 139  144  #endif  /* _SYS_SHM_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX