Lines Matching refs:semid
13 int semid; in main() local
19 if ((semid = semget(IPC_PRIVATE, 1, 0600)) < 0) in main()
29 if (semop(semid, &sop, 1) < 0) in main()
32 semctl(semid, 0, IPC_RMID); in main()
36 if (semctl(semid, 0, GETVAL) != 1) in main()
39 semctl(semid, 0, IPC_RMID); in main()
43 if (semctl(semid, 0, GETPID) != getpid()) in main()
46 semctl(semid, 0, IPC_RMID); in main()
61 if (semtimedop(semid, &sop, 1, &ts) < 0 && errno != EAGAIN) in main()
64 semctl(semid, 0, IPC_RMID); in main()
73 if (semop(semid, &sop, 1) < 0) in main()
76 semctl(semid, 0, IPC_RMID); in main()
88 if (semtimedop(semid, &sop, 1, &ts) < 0) in main()
91 semctl(semid, 0, IPC_RMID); in main()
96 if (semctl(semid, 0, IPC_RMID) < 0) in main()