renamed semaphore.c to sem.c