sem_print(3C)sem_print(3C)NAMEsem_print - print the state of a POSIX semaphore
C SYNOPSIS
#include <semaphore.h>
int sem_print (sem_t *sem, FILE *fd, const char *label);
DESCRIPTIONsem_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
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.
Page 1