*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> shm_unlink (2)              
Title
Content
Arch
Section
 

Contents


 shm_unlink(2)                                                 shm_unlink(2)




 NAME    [Toc]    [Back]
      shm_unlink - unlink a shared memory object

 SYNOPSIS    [Toc]    [Back]
      #include <sys/mman.h>

      int shm_unlink(const char *name);

 DESCRIPTION    [Toc]    [Back]
      The shm_unlink() system call removes the name of the shared memory
      object named by the string pointed to by name.  If one or more
      references to the shared memory object exists when the object is
      unlinked, the name will be removed before shm_unlink() returns, but
      the removal of the memory object contents will be postponed until all
      open and map references to the shared memory object have been removed.

 RETURN VALUE    [Toc]    [Back]
      shm_unlink() returns the following values:

           0    Successful completion.

           -1   Failure, errno is set to indicate the error.

 ERRORS    [Toc]    [Back]
      If shm_unlink() fails, errno is set to one of the following values:

           [EACCES]       Permission to unlink the named shared memory
                          object is denied.

           [ENAMETOOLONG] The length of the name string exceeds PATH_MAX, or
                          the length of a (pathname) component of the name
                          string exceeds NAME_MAX while _POSIX_NO_TRUNC is
                          in effect.

           [ENOENT]       The named shared memory object does not exist.

           [ENOSYS]       shm_unlink() is not supported by the
                          implementation.

 SEE ALSO    [Toc]    [Back]
      shm_open(2), close(2), mmap(2), munmap(2).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      shm_unlink() in librt: POSIX 1003.1b


 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
shm_open FreeBSD open or create a shared memory object shm_unlink -- remove a shared memory object
shm_open Tru64 Opens a shared memory object, creating the object if necessary (P1003.1b)
shm_unlink FreeBSD remove a shared memory object
shm_unlink IRIX deletes a shared memory object
shm_open HP-UX create/open a shared memory object
shm_open IRIX establishes a connection between a shared memory object and a file descriptor
shm_unlink Tru64 Removes a shared memory object created by a call to the shm_open function (P1003.1b)
dlopen IRIX open a shared object
dso IRIX Dynamic Shared Object (DSO)
dlclose IRIX close a shared object
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service