usclosepollsema man page on IRIX

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



USCLOSEPOLLSEMA(3P)					   USCLOSEPOLLSEMA(3P)

NAME
     usclosepollsema - detach a file descriptor from a pollable semaphore

C SYNOPSIS
     #include <ulocks.h>

     int usclosepollsema (usema_t *sema);

DESCRIPTION
     usclosepollsema detaches the file descriptor associated with sema.	 In
     addition to closing the caller's file descriptor, it invalidates and
     closes any file descriptors used by other processes using the same
     semaphore and in the same share group as the caller (assuming of course
     that the share group is sharing file descriptors).

     usclosepollsema will fail if one or more of the following are true:

     [EBADF]	      The file descriptor for the semaphore has somehow been
		      already invalidated.  This implies a corruption of the
		      semaphore data structure.

     [EINVAL]	      The caller isn't a registered member of the arena that
		      sema was allocated from.

SEE ALSO
     chmod(2), open(2), sproc(2), amalloc(3P), usopenpollsema(3P),
     usconfig(3P), uscpsema(3P), usctlsema(3P), usdumpsema(3P),
     usfreesema(3P), usfreepollsema(3P), usinit(3P), usnewsema(3P),
     usnewpollsema(3P), uspsema(3P), usvsema(3P), usema(7M).

DIAGNOSTICS
     Upon successful completion, 0 is returned. Otherwise, a value of -1 is
     returned and errno is set to indicate the error.

									Page 1

[top]

List of man pages available for IRIX

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