Lines Matching refs:semid
58 int semid = -1, nsems; variable
71 if ((status = semctl(semid, 0, IPC_STAT, arg)) == -1) { in main()
73 semctl(semid, 1, IPC_RMID, arg); in main()
106 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
111 if ((status = semctl(semid, 0, SETVAL, arg)) == -1) { in main()
115 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
123 if ((status = semctl(semid, 0, GETPID, arg)) == -1) { in main()
132 if ((status = semctl(semid, 0, GETNCNT, arg)) == -1) { in main()
140 if ((status = semctl(semid, 0, GETZCNT, arg)) == -1) { in main()
167 if ((semid = semget(key, nsems, SEM_RA | IPC_CREAT)) == -1) { in setup()
174 rm_sema(semid); in cleanup()