| /src/tests/kernel/ |
| t_semtimedop.c | 58 int semid; local 64 semid = semget(key, 1, IPC_CREAT | 0600); 65 ATF_REQUIRE_MSG(semid != -1, "semget failed: %s", strerror(errno)); 69 if (semctl(semid, 0, SETVAL, sun) == -1) { 84 if (semtimedop(semid, &sops, 1, &timeout) == -1) { 89 int val = semctl(semid, 0, GETVAL); 94 ATF_REQUIRE_MSG(semctl(semid, 0, IPC_RMID) != -1, 109 int semid; local 117 semid = semget(key, 1, IPC_CREAT | 0600); 118 ATF_REQUIRE_MSG(semid != -1, "semget failed: %s", strerror(errno)) 170 int semid; local 248 int semid = semget(key, 1, IPC_CREAT | 0600); local [all...] |
| t_sysv.c | 565 int semid; local 567 if ((semid = semget(semkey, 1, 0)) == -1) 577 if (semop(semid, &s, 1) == -1) 590 if (semop(semid, &s, 1) == -1)
|
| /src/tests/lib/semaphore/ |
| sem.c | 216 sem_t semid; local 226 ATF_REQUIRE_EQ(sem_init(&semid, 1, 0), 0); 227 ATF_REQUIRE_ERRNO(ETIMEDOUT, sem_timedwait(&semid, &tp) == -1);
|
| /src/lib/librt/ |
| sem.c | 178 sem_alloc(unsigned int value, intptr_t semid, unsigned int magic, sem_t *semp) 189 sem->ksem_semid = semid; 199 intptr_t semid = pshared ? KSEM_PSHARED : 0; local 202 if (_ksem_init(value, &semid) == -1) 219 if (!SEMID_IS_KSEMID(semid)) { 220 _ksem_destroy(semid); 224 *sem = (sem_t)semid; 228 if ((error = sem_alloc(value, semid, SEM_MAGIC, sem)) != 0) { 229 _ksem_destroy(semid); 271 intptr_t semid; local [all...] |
| /src/sys/compat/linux/common/ |
| linux_sem.h | 86 syscallarg(int) semid; member in struct:linux_sys_semctl_args
|
| /src/sys/kern/ |
| sysv_sem.c | 409 semundo_adjust(struct proc *p, struct sem_undo **supptr, int semid, int semnum, 443 if (sunptr->un_id != semid || sunptr->un_num != semnum) 462 sunptr->un_id = semid; 468 semundo_clear(int semid, int semnum) 478 if (sunptr->un_id == semid) { 499 syscallarg(int) semid; 526 error = semctl1(l, SCARG(uap, semid), SCARG(uap, semnum), cmd, 536 semctl1(struct lwp *l, int semid, int semnum, int cmd, void *v, 545 semid, semnum, cmd, v)); 549 ix = IPCID_TO_IX(semid); 711 int semid, error = 0; local 818 int semid, seq; local 1137 int semid = SCARG(uap, semid); local 1153 int semid = SCARG(uap, semid); local 1210 int semid = suptr->un_ent[ix].un_id; local [all...] |
| /src/sys/compat/linux/arch/aarch64/ |
| linux_syscallargs.h | 855 syscallarg(int) semid; member in struct:linux_sys_semctl_args 863 syscallarg(int) semid; member in struct:linux_sys_semtimedop_args
|
| /src/sys/compat/linux/arch/alpha/ |
| linux_syscallargs.h | 1044 syscallarg(int) semid; member in struct:linux_sys_semtimedop_args
|
| /src/sys/compat/linux/arch/amd64/ |
| linux_syscallargs.h | 336 syscallarg(int) semid; member in struct:linux_sys_semctl_args 870 syscallarg(int) semid; member in struct:linux_sys_semtimedop_args
|
| /src/sys/compat/linux/arch/arm/ |
| linux_syscallargs.h | 1086 syscallarg(int) semid; member in struct:linux_sys_semtimedop_args
|
| /src/sys/compat/netbsd32/ |
| netbsd32_syscallargs.h | 1140 syscallarg(int) semid; member in struct:compat_14_netbsd32___semctl_args 1155 syscallarg(int) semid; member in struct:netbsd32_semop_args 1634 syscallarg(int) semid; member in struct:compat_50_netbsd32___semctl14_args 2370 syscallarg(int) semid; member in struct:netbsd32_____semctl50_args 2838 syscallarg(int) semid; member in struct:netbsd32_semtimedop_args
|
| /src/sys/sys/ |
| syscallargs.h | 1384 syscallarg(int) semid; member in struct:compat_14_sys___semctl_args 1403 syscallarg(int) semid; member in struct:sys_semop_args 1976 syscallarg(int) semid; member in struct:compat_50_sys_____semctl13_args 2894 syscallarg(int) semid; member in struct:sys_____semctl50_args 3414 syscallarg(int) semid; member in struct:sys_semtimedop_args
|