heim_ipc_semaphore_wait
heim_ipc_semaphore_wait(heim_isemaphore, time_t);
heim_ipc_semaphore_wait(s, HEIM_IPC_WAIT_FOREVER); /* wait for reply to complete the work */