Lines Matching refs:semid
42 int semid, i, err;
50 semid = semget(key, nsem, semflg);
51 if (semid < 0)
66 if (semctl(semid, 0, SETALL, semarg) < 0)
69 return semid;
75 if (semid >= 0)
76 sm_sem_stop(semid);
84 ** semid -- id for semaphores.
92 sm_sem_stop(semid)
93 int semid;
95 return semctl(semid, 0, IPC_RMID, NULL);
102 ** semid -- id for semaphores.
112 sm_sem_acq(semid, semnum, timeout)
113 int semid;
125 return semop(semid, semops, 1);
128 r = semop(semid, semops, 1);
141 ** semid -- id for semaphores.
151 sm_sem_rel(semid, semnum, timeout)
152 int semid;
161 SM_REQUIRE(sm_get_sem(semid, semnum) > 0);
169 return semop(semid, semops, 1);
172 r = semop(semid, semops, 1);
185 ** semid -- id for semaphores.
194 sm_sem_get(semid, semnum)
195 int semid;
200 if ((semval = semctl(semid, semnum, GETVAL, NULL)) < 0)
209 ** semid -- id for semaphores.
220 sm_semsetowner(semid, uid, gid, mode)
221 int semid;
236 if ((r = semctl(semid, 1, IPC_STAT, arg)) < 0)
241 if ((r = semctl(semid, 1, IPC_SET, arg)) < 0)