:man| Alphabetical   Categories   About us 
 
SEM_GETVALUE (3) | C library functions | Unix Manual Pages | :man

NAME

sem_getvalue - get the value of a semaphore

CONTENTS

Library
Synopsis
Description
Return Values
Errors
See Also
Standards

LIBRARY


.Lb libc

SYNOPSIS


.In semaphore.h int sem_getvalue "sem_t * restrict sem" "int * restrict sval"

DESCRIPTION

The sem_getvalue function sets the variable pointed to by sval to the current value of the semaphore pointed to by sem, as of the time that the call to sem_getvalue is actually run.

RETURN VALUES


.Rv -std sem_getvalue

ERRORS

The sem_getvalue function will fail if:
[EINVAL]
The sem argument points to an invalid semaphore.

SEE ALSO

sem_post(3), sem_trywait(3), sem_wait(3), sem(4)

STANDARDS


Share this page

     Follow us

Facebook Twitter Google+ LinkedIn


 
Created by Blin Media, 2008-2013