Lines Matching refs:semid
58 int semid = -1, nsems; variable
70 if ((status = semctl(semid, 0, IPC_STAT, arg)) == -1) { in main()
72 semctl(semid, 1, IPC_RMID, arg); in main()
105 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
110 if ((status = semctl(semid, 0, SETVAL, arg)) == -1) { in main()
114 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main()
122 if ((status = semctl(semid, 0, GETPID, arg)) == -1) { in main()
131 if ((status = semctl(semid, 0, GETNCNT, arg)) == -1) { in main()
139 if ((status = semctl(semid, 0, GETZCNT, arg)) == -1) { in main()
166 if ((semid = semget(key, nsems, SEM_RA | IPC_CREAT)) == -1) { in setup()
173 rm_sema(semid); in cleanup()