Lines Matching refs:semid
49 int semup(int semid) in semup() argument
55 if (semop(semid, &semops, 1) == -1) { in semup()
63 int semdown(int semid) in semdown() argument
69 if (semop(semid, &semops, 1) == -1) { in semdown()
86 void mainloop(int semid) in mainloop() argument
90 if (semdown(semid)) { in mainloop()
96 if (semup(semid)) { in mainloop()
106 int semid, opt; in main() local
128 if ((semid = semget((key_t) 9142, 1, 0666 | IPC_CREAT)) < 0) { in main()
133 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main()
144 mainloop(semid); in main()
150 if (semctl(semid, 0, IPC_RMID, semunion) == -1) { in main()
161 mainloop(semid); in main()