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

  man pages->IRIX man pages -> usclosepollsema (3p)              



NAME    [Toc]    [Back]

     usclosepollsema - detach a	file descriptor	from a pollable	semaphore

C SYNOPSIS    [Toc]    [Back]

     #include <ulocks.h>

     int usclosepollsema (usema_t *sema);

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

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

									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
usopenpollsema IRIX attach a file descriptor to a pollable semaphore
fdetach IRIX detach a name from a STREAMS-based file descriptor
fdetach IRIX detach a name from a STREAMS-based file descriptor
fdetach Tru64 Detach a STREAMS-based file descriptor from a file in the file system name space
usfreepollsema IRIX free a pollable semaphore
fdetach HP-UX detach a STREAMS-based file descriptor from a filename
usnewpollsema IRIX allocate and initialize a pollable semaphore
pxfisatty IRIX Determines if file descriptor corresponds to a valid file descriptor
fattach Tru64 Attach a STREAMS-based file descriptor to a file in the file system name space
AFopenfile IRIX allocate an AFfilehandle structure for an audio file identified by name / by a Unix file descriptor
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service