/illumos-gate/usr/src/cmd/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...] |
/illumos-gate/usr/src/lib/libbc/libc/sys/common/ |
H A D | semsys.c | 44 semctl(int semid, int semnum, int cmd, union semun *arg) argument 56 semid, semnum, cmd, arg->val)); 63 semid, semnum, cmd, 0)); 74 semop(int semid, struct sembuf *sops, int nsops) argument 76 return (_syscall(SYS_semsys, SEMOP, semid, sops, nsops)); 83 int semid, cmd; local 94 semid = va_arg(ap, int); 101 return (_syscall(SYS_semsys, SEMCTL, semid, semnum, cmd, val)); 109 semid = va_arg(ap, int); 113 return (semop(semid, sop [all...] |
/illumos-gate/usr/src/cmd/sendmail/include/sm/ |
H A D | sem.h | 54 # define sm_sem_stop(semid) 0 55 # define sm_sem_acq(semid, semnum, timeout) 0 56 # define sm_sem_rel(semid, semnum, timeout) 0 57 # define sm_sem_get(semid, semnum) 0
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | semsys.c | 63 * semctl(semid, semnum, cmd, NULL); which would otherwise always result 69 semctl(int semid, int semnum, int cmd, ...) argument 101 return (syscall(SYS_semsys, SEMCTL, semid, semnum, cmd, arg)); 105 semctl64(int semid, int semnum, int cmd, ...) argument 119 return (syscall(SYS_semsys, SEMCTL, semid, semnum, cmd, buf)); 129 semop(int semid, struct sembuf *sops, size_t nsops) argument 131 return (syscall(SYS_semsys, SEMOP, semid, sops, nsops)); 141 semtimedop(int semid, struct sembuf *sops, size_t nsops, argument 144 return (syscall(SYS_semsys, SEMTIMEDOP, semid, sops, nsops,
|
/illumos-gate/usr/src/lib/libima/common/ |
H A D | sunima-lib.c | 40 static void os_obtainmutex(int semid); 41 static void os_releasemutex(int semid); 128 static void os_obtainmutex(int semid) { argument 135 retVal = semop(semid, &sem_b, 1); 139 static void os_releasemutex(int semid) { argument 146 retVal = semop(semid, &sem_b, 1);
|
H A D | ima-lib.c | 120 static int os_createmutex(int *semid); 121 static void os_obtainmutex(int semid); 122 static void os_releasemutex(int semid); 123 static void os_destroymutex(int semid); 332 static int os_createmutex(int *semid) { argument 336 if (semid == NULL) { 345 *semid = retVal; /* save key of created semaphore */ 347 retVal = semctl(*semid, 0, SETVAL, sem_union); 355 static void os_obtainmutex(int semid) { argument 362 retVal = semop(semid, 366 os_releasemutex(int semid) argument 378 os_destroymutex(int semid) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/ipc/ |
H A D | ipc.c | 238 sem_print(ksemid_t *semid, uintptr_t addr) argument 241 semid->sem_base, semid->sem_nsems); 242 printtime_nice("otime: ", semid->sem_otime); 243 printtime_nice("ctime: ", semid->sem_ctime); 244 mdb_printf("binary: %s\n", semid->sem_binary ? "yes" : "no");
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | sem.c | 345 semctl(int semid, uint_t semnum, int cmd, uintptr_t arg) argument 378 if ((lock = ipc_lookup(sem_svc, semid, 394 if (error = ipc_rmid(sem_svc, semid, cr)) 399 if ((lock = ipc_lookup(sem_svc, semid, (kipc_perm_t **)&sp)) == NULL) { 863 semop(int semid, struct sembuf *sops, size_t nsops, timespec_t *timeout) argument 888 * some goto top nonsense to avoid the copyin behind the semid 923 if ((lock = ipc_lookup(sem_svc, semid, 957 if ((lock = ipc_lookup(sem_svc, semid,
|
/illumos-gate/usr/src/uts/common/c2/ |
H A D | audit_event.c | 1332 long semid; member in struct:b 1889 uint32_t semid; local 1892 long semid; member in struct:b 1898 semid = (uint32_t)uap1->semid; 1913 au_uwrite(au_to_arg32(1, "sem ID", semid)); 1916 au_uwrite(au_to_arg32(1, "sem key", semid));
|
/illumos-gate/usr/src/lib/libc/port/ |
H A D | llib-lc | 1406 int semctl(int semid, int semnum, int cmd, ...); 1408 int semop(int semid, struct sembuf *sops, size_t nsops);
|