sem_destroy man page on OSF1

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
OSF1 logo
[printable version]

sem_destroy(3)							sem_destroy(3)

NAME
       sem_destroy - Destroys an unnamed semaphore (P1003.1b)

SYNOPSIS
       #include <semaphore.h>

       int sem_destroy ( sem_t *sem);

LIBRARY
       Realtime Library (librt.so, librt.a)

PARAMETERS
       References  the unnamed semaphore to be destroyed. Use the sem argument
       that was supplied to, and filled in by, the previous call to sem_init.

DESCRIPTION
       The sem_destroy function destroys an  unnamed  semaphore	 indicated  by
       sem.   Only  a  semaphore created using sem_init may be destroyed using
       sem_destroy.

       The potential for deadlock exists if a process calls sem_destroy for  a
       semaphore  while	 there is a pending sem_wait, because a process may be
       waiting for a poster that has not yet opened the semaphore.

RETURN VALUES
       On successful completion, the function returns the value 0 (zero); oth‐
       erwise,	the  function  returns the value -1 and sets errno to indicate
       the error, without destroying the semaphore indicated by the sem	 argu‐
       ment.

ERRORS
       The  sem_destroy	 function fails under the following condition: The sem
       argument is not a valid semaphore.

SEE ALSO
       Functions: sem_init(3), sem_open(3)

       Guide to Realtime Programming

								sem_destroy(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server OSF1

List of man pages available for OSF1

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net