sem_destroy man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

sem_destroy(2)							sem_destroy(2)

NAME
       sem_destroy - destroy an unnamed POSIX semaphore

SYNOPSIS
DESCRIPTION
       is  used	 to  destroy  an unnamed semaphore.  A successful call to will
       invalidate the unnamed semaphore referred to by	sem  and  removes  all
       descriptors  referencing it.  The semaphore should have been created by
       a previous call to and there should not be any processes blocked on it.

       To use this function, link in the realtime library by specifying on the
       compiler or linker command line.

EXAMPLES
       The  following call to will destroy an unnamed semaphore referred to by
       sem and remove all descriptors referencing it.

RETURN VALUE
       If the semaphore was destroyed and the descriptors referencing it  were
       removed, returns 0 to the caller.

       If  the	semaphore could not be destroyed, the call returns -1 and sets
       to indicate the error.

ERRORS
       fails and does not perform the requested operation if any of  the  fol‐
       lowing conditions are encountered:

	      [EBUSY]	     There  are threads currently blocked on the sema‐
			     phore or there are outstanding locks held on  the
			     semaphore.

	      [EINVAL]	     The  argument  sem	 is  not a valid unnamed sema‐
			     phore.

SEE ALSO
       sem_init(2), sem_open(2), <semaphore.h>.

STANDARDS CONFORMANCE
								sem_destroy(2)
[top]

List of man pages available for HP-UX

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