usfreepollsema man page on IRIX

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



USFREEPOLLSEMA(3P)					    USFREEPOLLSEMA(3P)

NAME
     usfreepollsema - free a pollable semaphore

C SYNOPSIS
     #include <ulocks.h>

     int usfreepollsema (usema_t *sema, usptr_t *handle);

DESCRIPTION
     usfreepollsema frees the previously allocated pollable semaphore (via
     usnewpollsema(3P)) specified by sema. Before freeing a pollable semaphore
     all the file descriptors acquired for the semaphore must be closed.  For
     processes in a single share group, all of which are sharing file
     descriptors, if one process calls usclospollsema(3P), all the file
     descriptors for all processes will be closed.  If there are processes in
     the share group that are not sharing file descriptors, then each process
     that acquired a file descriptor via a call to usopenpollsema(3P) should
     call usclosepollsema(3P).	Semaphores allocated via usnewsema(3P) should
     be freed using usfreesema(3P).

SEE ALSO
     usclosepollsema(3P), usfreesema(3P), usinitsema(3P), usinit(3P),
     usnewsema(3P), usnewpollsema(3P), usopenpollsema(3P).

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