Lines Matching refs:semid
50 int semup(int semid) in semup() argument
56 if (semop(semid, &semops, 1) == -1) { in semup()
64 int semdown(int semid) in semdown() argument
70 if (semop(semid, &semops, 1) == -1) { in semdown()
87 void mainloop(int semid) in mainloop() argument
91 if (semdown(semid)) { in mainloop()
97 if (semup(semid)) { in mainloop()
107 int semid, opt; in main() local
129 if ((semid = semget((key_t) 9142, 1, 0666 | IPC_CREAT)) < 0) { in main()
134 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main()
145 mainloop(semid); in main()
151 if (semctl(semid, 0, IPC_RMID, semunion) == -1) { in main()
162 mainloop(semid); in main()