Performs a semaphore lock. This function is supported on OpenVMS Integrity servers and Alpha only. Format #include <semaphore.h> int sem_wait (sem_t *sem);