Searched defs:semid (Results 1 - 2 of 2) sorted by relevance
/sendmail/libsm/ |
H A D | sem.c | 42 int semid, i, err; local 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; [all...] |
H A D | t-sem.c | 60 int semid; local 63 semid = sm_sem_start(T_SM_SEM_KEY, SM_NSEM, 0, owner); 64 if (semid < 0) 76 if (sm_sem_acq(semid, 0, 2) < 0) 86 if (sm_sem_rel(semid, 0, 2) < 0) 95 if ((t = sm_sem_get(semid, 0)) < 0) 106 return sm_sem_stop(semid); 163 int semid, r; local 175 semid = sm_sem_start(T_SM_SEM_KEY, 1, 0, owner); 176 if (semid < [all...] |
Completed in 119 milliseconds