sem_close 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_close(3)							  sem_close(3)

NAME
       sem_close - Deallocates the specified named semaphore (P1003.1b)

SYNOPSIS
       #include <semaphore.h>

       int sem_close ( sem_t *sem) ;

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

PARAMETERS
       References  the	semaphore to be closed.	 Use the sem argument returned
       by the previous call to sem_open.

DESCRIPTION
       The sem_close function makes a semaphore available for reuse by deallo‐
       cating  any  system  resources allocated for use by the current process
       for the named semaphore indicated by sem.

       If the semaphore has not	 been  removed	with  a	 call  to  sem_unlink,
       sem_close does not change the current state of the semaphore.

       If  the	semaphore has been removed with a call to sem_unlink after the
       most recent call to sem_open with O_CREAT, the semaphore is  no	longer
       available after all processes that opened the semaphore close it.

RETURN VALUES
       On  a  successful  call,	 a value of 0 (zero) is returned. Otherwise, a
       value of -1 is returned and errno is set	 to  indicate  that  an	 error
       occurred.

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

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

       Guide to Realtime Programming

								  sem_close(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