/freebsd/sys/kern/ |
H A D | sysv_sem.c | 959 int nsems; member 968 int nsems = uap->nsems; in sys_semget() local 972 DPRINTF(("semget(0x%x, %d, 0%o)\n", key, nsems, semflg)); in sys_semget() 1000 if (nsems > 0 && sema[semid].u.sem_nsems < nsems) { in sys_semget() 1016 if (nsems <= 0 || nsems > seminfo.semmsl) { in sys_semget() 1017 DPRINTF(("nsems out of range (0<%d<=%d)\n", nsems, in sys_semget() 1022 if (nsems > seminfo.semmns - semtot) { in sys_semget() 1025 nsems, seminfo.semmns - semtot)); in sys_semget() 1041 error = racct_add(td->td_proc, RACCT_NSEM, nsems); in sys_semget() 1062 sema[semid].u.sem_nsems = nsems; in sys_semget() [all …]
|
H A D | uipc_sem.c | 112 static int nsems = 0; variable 114 SYSCTL_INT(_p1003_1b, OID_AUTO, nsems, CTLFLAG_RD, &nsems, 0, 306 if (nsems == p31b_getcfg(CTL_P1003_1B_SEM_NSEMS_MAX) || ksem_dead) { in ksem_alloc() 310 nsems++; in ksem_alloc() 348 nsems--; in ksem_drop() 1083 if (nsems != 0) { in sem_modload()
|
H A D | systrace_args.c | 1068 iarg[a++] = p->nsems; /* int */ in systrace_args()
|
/freebsd/sys/compat/linux/ |
H A D | linux_ipc.c | 526 .nsems = args->nsems, in linux_semget() 530 if (args->nsems < 0) in linux_semget()
|
/freebsd/sys/amd64/linux32/ |
H A D | linux32_machdep.c | 132 a.nsems = args->arg2; in linux_ipc()
|
H A D | linux32_systrace_args.c | 2888 iarg[a++] = p->nsems; /* l_int */ in systrace_args()
|
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/ |
H A D | linux_syscall_hooks.h | 1314 #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \ argument 1315 __sanitizer_syscall_pre_impl_semget((long)(key), (long)(nsems), \ 1317 #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \ argument 1318 __sanitizer_syscall_post_impl_semget(res, (long)(key), (long)(nsems), \ 2765 void __sanitizer_syscall_pre_impl_semget(long key, long nsems, long semflg); 2766 void __sanitizer_syscall_post_impl_semget(long res, long key, long nsems,
|
H A D | netbsd_syscall_hooks.h | 1153 #define __sanitizer_syscall_pre_semget(key, nsems, semflg) \ argument 1154 __sanitizer_syscall_pre_impl_semget((long long)(key), (long long)(nsems), \ 1156 #define __sanitizer_syscall_post_semget(res, key, nsems, semflg) \ argument 1158 res, (long long)(key), (long long)(nsems), (long long)(semflg)) 3725 void __sanitizer_syscall_pre_impl_semget(long long key, long long nsems, 3728 long long nsems, long long semflg);
|
/freebsd/lib/libsys/ |
H A D | _libsys.h | 591 int __sys_semget(key_t key, int nsems, int semflg);
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_common_syscalls.inc | 2312 PRE_SYSCALL(semget)(long key, long nsems, long semflg) {} 2314 POST_SYSCALL(semget)(long res, long key, long nsems, long semflg) {}
|
/freebsd/sys/arm64/linux/ |
H A D | linux_systrace_args.c | 1504 iarg[a++] = p->nsems; /* l_int */ in systrace_args()
|
/freebsd/sys/amd64/linux/ |
H A D | linux_systrace_args.c | 574 iarg[a++] = p->nsems; /* l_int */ in systrace_args()
|
/freebsd/sys/i386/linux/ |
H A D | linux_systrace_args.c | 2919 iarg[a++] = p->nsems; /* l_int */ in systrace_args()
|
/freebsd/sys/compat/freebsd32/ |
H A D | freebsd32_systrace_args.c | 1045 iarg[a++] = p->nsems; /* int */ in systrace_args()
|
/freebsd/sys/sys/ |
H A D | sysproto.h | 581 char nsems_l_[PADL_(int)]; int nsems; char nsems_r_[PADR_(int)]; member
|