Added semaphore system calls