3 .\" Copyright (c) 1999-2002 Apple Computer, Inc. All rights reserved.
 
   5 .\" @APPLE_LICENSE_HEADER_START@
 
   7 .\" The contents of this file constitute Original Code as defined in and
 
   8 .\" are subject to the Apple Public Source License Version 1.1 (the
 
   9 .\" "License").  You may not use this file except in compliance with the
 
  10 .\" License.  Please obtain a copy of the License at
 
  11 .\" http://www.apple.com/publicsource and read it before using this file.
 
  13 .\" This Original Code and all software distributed under the License are
 
  14 .\" distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
 
  15 .\" EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
 
  16 .\" INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
 
  17 .\" FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT.  Please see the
 
  18 .\" License for the specific language governing rights and limitations
 
  19 .\" under the License.
 
  21 .\" @APPLE_LICENSE_HEADER_END@
 
  28 .Nd remove shared memory object
 
  30 .Fd #include <sys/mman.h>
 
  32 .Fn shm_unlink "const char *name"
 
  36 function disassociates the shared memory object specified by
 
  39 The resources associated with the shared memory object remain intact
 
  40 until the last file descriptor reference is removed, e.g., by
 
  44 at which point the resources are reclaimed
 
  45 (if no references exist at the time of the call to
 
  47 the resources are reclaimed immediately).
 
  48 The name can only be reused
 
  49 when it is bound to a new shared memory object with a call to
 
  55 Upon successful completion, a value of 0 is returned.
 
  56 Otherwise, a value of -1 is returned and
 
  58 is set to indicate the error,
 
  59 and the named shared memory object will remain unchanged.
 
  66 Permission is denied to be remove the object.
 
  67 .It Bq Er ENAMETOOLONG
 
  69 exceeded the name size limit.
 
  72 characters (defined in
 
  73 .In sys/posix_shm.h ) ,
 
  74 but this may change in the future.
 
  76 The named object does not exist.
 
  87 is specified in the POSIX Realtime Extension (1003.1b-1993/1003.1i-1995).