dg_sem_post(2) DG/UX R4.11MU05 dg_sem_post(2)
NAME
dgsempost - post on a binary semaphore
SYNOPSIS
int dgsempost (int semid)
where:
semid The id of any binary semaphore for the system
DESCRIPTION
The dgsempost system call will post the binary semaphore. If any
thread is blocked pending on the semaphore, the thread will wake up.
If no thread is pending the semaphore, it will be pre-posted such
that when it is pended, the calling thread will return immediately.
ACCESS CONTROL
On a system with DG/UX information security, appropriate privilege is
required by having one or more specific capabilities enabled in the
effective capability set of the user. See capdefaults for the
default capabilities for this command.
RETURN VALUE
0 Completed successfully.
-1 An error occurred. errno is set to indicate the error.
DIAGNOSTICS
Errno may be set to one of the following error codes:
EINVAL semid is not valid.
EACCES The system supports DG/UX information security and the caller
does not have appropriate privilege.
SEE ALSO
dgsemgetid(2), dgsemreleaseid(2), dgsempend(2),
capdefaults(5).
Licensed material--property of copyright holder(s)