The wait operation of a semaphore is performed by function sema_wait(), which takes a pointer to a semaphore as its only argument.
#include <synch.h> sema_t Semaphore; int sema_wait(sema_t *Semaphore);