Unix Man ( )


WAITSEM(3)


WAITSEM(3)
XENIX System V (21 1987)


waitsem, nbwaitsem - oae ocy pecypcy, apoy ceaopo

int waitsem(sem_num) int sem_num;

int nbwaitsem(sem_num) int sem_num;


Waitsem oeceae ocy pecypcy, apoy ceaopo sem_num. Ec pecypc coyec py poecco, waitsem epeo a poecc cocoe oa o ex op, oa pecypc e ocooc; ao cya nbwaitsem opaae aee ENAVAIL. Waitsem nbwaitsem coyc ece c sigsem cxpoa ocya oey pecypcy. K ooy ceaopy oy opac ecoo poecco c oo waitsem epeoc pe oa, oa poecc, ae pecypco, e ac sigsem. p o ypaee epeaec oepeoy poeccy, coey oepe oy ceaopy. Oepe ceaopy opayec o py "ep pe - ep ocye".

Ccea coecoc


Waitsem oe cooa pao c ceaopa, coa oepaoo cpee XENIX epc 3.0, o e cpee XENIX System V.

.


, , .


B cyae o waitsem opaae -1. Ec sem_num peapeo e op ye oa opensem creatsem, epeeo errno pcaaec aee EBADF. Ec sem_num e ec yaaee a a a "ceaop", epeeo errno pcaaec aee ENOTNAM. Ec poecc, ae pecypco, e ocoo eo epe aepee, ce poecc, oae oepe oy pecypcy, oya errno co aee ENAVAIL. p o pecypc ocaec eopeeeo coco. Ec poecc a a waitsem e poeyooo oa sigsem, epeeo errno pcaaec aee EINVAL.

AEA


aa oooc cea oepaoo cpe XENIX , ooo, e oe peea pyx cceax UNIX. p oooe eoxoo yaa a -lx.