Adding comments to semaphore.c