Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sem_getnsems(3) — OSF/1 X2.0-8 MIPS

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

sem_ifwait(3)

sem_mksem(3)

sem_open(3)

sem_post(3)

sem_wait(3)

sem_getnsems(3)  —  Subroutines

Digital

NAME

sem_getnsems − Get the number of binary semaphores in the binary semaphore set (P1003.4/D11). 

SYNOPSIS

#include <binsem.h>

int sem_getnsems (
binsemset_t binsemdes) ;

PARAMETERS

binsemdes The binary semaphore set descriptor. 

DESCRIPTION

The sem_getnsems function returns the number of binary semaphores in the specified binary semaphore set. Binary semaphore numbers for a binary semaphore set range from 0 to nsems−1 inclusive. 

RETURN VALUES

On a successful call, a value of 0 is returned. Otherwise, a value of −1 is returned and errno is set to indicate that an error occurred. 

ERRORS

The sem_getnsems function fails under the following conditions:

[EINVAL] The binsemdes argument is not a valid binary semaphore set descriptor. 

[ENOSYS] The function sem_getnsems is not supported by this implementation. 

RELATED INFORMATION

Functions: sem_ifwait(3), sem_mksem(3), sem_open(3), sem_post(3), sem_wait(3)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026