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

  man pages->IRIX man pages -> sem_print (3c)              
Title
Content
Arch
Section
 

Contents


sem_print(3C)							 sem_print(3C)


NAME    [Toc]    [Back]

     sem_print - print the state of a POSIX semaphore

C SYNOPSIS    [Toc]    [Back]

     #include <semaphore.h>

     int sem_print (sem_t *sem<b>,	FILE *fd<b>, const	char *label<b>);

DESCRIPTION    [Toc]    [Back]

     sem_print obtains all the semaphore state of sem and writes it as a
     formatted string to fd.  The string is prefixed with a user specified
     label.

     Semaphore types other than	shared POSIX unnamed semaphores	are not
     supported by this function.

     sem_print is an IRIX extension to the POSIX interfaces and	is not part of
     the IEEE 1003.1b Standard.

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

     [EINVAL]	    The	specified semaphore is not a supported semaphore type.

     [EBADF]	    The	specified file is invalid.

DIAGNOSTICS    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
pipcrm HP-UX remove a POSIX message queue or a POSIX named semaphore
sem_getvalue HP-UX get the value of a POSIX semaphore
sem_post HP-UX unlock a POSIX semaphore
sem_trywait HP-UX lock a POSIX semaphore
sem_wait HP-UX lock a POSIX semaphore
sem_open IRIX open a posix named semaphore
sem_getvalue IRIX get the value of a posix named or unnamed semaphore
sem_destroy IRIX deinitialize a posix unnamed semaphore
sem_close IRIX close a posix named semaphore
sem_unlink IRIX deletes a posix named semaphore
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service