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

  man pages->IRIX man pages -> uscpsema (3p)              
Title
Content
Arch
Section
 

Contents


USCPSEMA(3P)							  USCPSEMA(3P)


NAME    [Toc]    [Back]

     uscpsema -	conditionally acquires a semaphore

C SYNOPSIS    [Toc]    [Back]

     #include <ulocks.h>

     int uscpsema (usema_t *sema);

DESCRIPTION    [Toc]    [Back]

     uscpsema attempts to acquire the semaphore	specified by sema. If the
     semaphore is not available	(its count is less than	zero), uscpsema
     returns immediately with an indication that the semaphore is not
     available.

SEE ALSO    [Toc]    [Back]

      
      
     usinitsema(3P), usnewsema(3P), uspsema(3P), ustestsema(3P), usvsema(3P).

DIAGNOSTICS    [Toc]    [Back]

     uscpsema returns a	0 if the semaphore is not acquired and 1 if the
     semaphore is acquired.  uscpsema can only return an error (-1) if the
     internal semaphore	data structure is corrupted.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
sem_trywait Tru64 Performs (or conditionally performs) a semaphore lock (P1003.1b)
sem_wait Tru64 Performs (or conditionally performs) a semaphore lock (P1003.1b)
if IRIX Execute scripts conditionally
XmStringFree HP-UX A compound string function that conditionally deallocates memory
tis_write_lock Tru64 Acquires the specified read-write lock for write access
tis_read_lock Tru64 Acquires a read-write lock for read access
pthread_rwlock_rdlock Tru64 Acquires a read-write lock for read access
pthread_rwlock_wrlock Tru64 Acquires a read-write lock for write access
sem_getvalue FreeBSD get the value of a semaphore
semget OpenBSD get semaphore set
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service