Performs operations on semaphores in a semaphore set. Format #include <sem.h> int semop (int semid, struct sembuf *sops, size_t nsops);