SEMAPHORE_STATUS

Purpose

semaphore_status returns the status of a semaphore. 

Synopsis

#include <types.h> 
#include <stub.h> 

int semaphore_status(Capability *semaphore, Semaphore_Status *status); 

Parameters

Description

semaphore_status returns the status of the semaphore designated by semaphore. 

Return Values

On success, semaphore_status returns 0 and status contains information about the current semaphore status. 

On fail, semaphore_status returns a negative value indicating one of the following errors: 

See Also

semaphore_create, semaphore_destroy, semaphore_p, semaphore_v