/external/ltp/testcases/kernel/ipc/semaphore/ |
D | sem01.c | 50 int semup(int semid) in semup() argument 56 if (semop(semid, &semops, 1) == -1) { in semup() 64 int semdown(int semid) in semdown() argument 70 if (semop(semid, &semops, 1) == -1) { in semdown() 87 void mainloop(int semid) in mainloop() argument 91 if (semdown(semid)) { in mainloop() 97 if (semup(semid)) { in mainloop() 107 int semid, opt; in main() local 129 if ((semid = semget((key_t) 9142, 1, 0666 | IPC_CREAT)) < 0) { in main() 134 if (semctl(semid, 0, SETVAL, semunion) == -1) { in main() [all …]
|
/external/ltp/testcases/kernel/syscalls/ipc/semctl/ |
D | semctl07.c | 58 int semid = -1, nsems; variable 71 if ((status = semctl(semid, 0, IPC_STAT, arg)) == -1) { in main() 73 semctl(semid, 1, IPC_RMID, arg); in main() 106 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main() 111 if ((status = semctl(semid, 0, SETVAL, arg)) == -1) { in main() 115 if ((status = semctl(semid, 0, GETVAL, arg)) == -1) { in main() 123 if ((status = semctl(semid, 0, GETPID, arg)) == -1) { in main() 132 if ((status = semctl(semid, 0, GETNCNT, arg)) == -1) { in main() 140 if ((status = semctl(semid, 0, GETZCNT, arg)) == -1) { in main() 167 if ((semid = semget(key, nsems, SEM_RA | IPC_CREAT)) == -1) { in setup() [all …]
|
D | semctl01.c | 102 int *semid; member 180 TEST(semctl(*(TC[i].semid), TC[i].semnum, TC[i].cmd, in main()
|
/external/toybox/toys/pending/ |
D | ipcs.c | 254 int max_nr, i,semid; in sem_array() local 307 if ((semid = semctl(i, 0, SEM_STAT, u)) < 0) continue; in sem_array() 310 if (pw) printf("%-8d %-10.10s", semid, pw->pw_name); in sem_array() 311 else printf("%-8d %-10d", semid, buf.sem_perm.uid); in sem_array() 318 printf("%-10d %-10o", semid, buf.sem_perm.mode & 0777); in sem_array() 329 if (pw) printf("%-10d %-10.9s", semid, pw->pw_name); in sem_array() 330 else printf("%-10d %-9d", semid, buf.sem_perm.uid); in sem_array()
|
/external/ltp/testcases/kernel/syscalls/ipc/semop/ |
D | semop02.c | 53 int *semid; member 140 TEST(semop(*(TC[i].semid), TC[i].t_sbuf, TC[i].t_ops)); in semop_verify()
|
/external/llvm-project/compiler-rt/include/sanitizer/ |
D | netbsd_syscall_hooks.h | 1144 #define __sanitizer_syscall_pre_compat_14___semctl(semid, semnum, cmd, arg) \ argument 1146 (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1148 #define __sanitizer_syscall_post_compat_14___semctl(res, semid, semnum, cmd, \ argument 1151 res, (long long)(semid), (long long)(semnum), (long long)(cmd), \ 1159 #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \ argument 1160 __sanitizer_syscall_pre_impl_semop((long long)(semid), (long long)(sops), \ 1162 #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \ argument 1163 __sanitizer_syscall_post_impl_semop(res, (long long)(semid), \ 1602 #define __sanitizer_syscall_pre_compat_50_____semctl13(semid, semnum, cmd, \ argument 1605 (long long)(semid), (long long)(semnum), (long long)(cmd), \ [all …]
|
D | linux_syscall_hooks.h | 1311 #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \ argument 1312 __sanitizer_syscall_pre_impl_semop((long)(semid), (long)(sops), (long)(nsops)) 1313 #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \ argument 1314 __sanitizer_syscall_post_impl_semop(res, (long)(semid), (long)(sops), \ 1316 #define __sanitizer_syscall_pre_semctl(semid, semnum, cmd, arg) \ argument 1317 __sanitizer_syscall_pre_impl_semctl((long)(semid), (long)(semnum), \ 1319 #define __sanitizer_syscall_post_semctl(res, semid, semnum, cmd, arg) \ argument 1320 __sanitizer_syscall_post_impl_semctl(res, (long)(semid), (long)(semnum), \ 1322 #define __sanitizer_syscall_pre_semtimedop(semid, sops, nsops, timeout) \ argument 1323 __sanitizer_syscall_pre_impl_semtimedop((long)(semid), (long)(sops), \ [all …]
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1312 #define __sanitizer_syscall_pre_semop(semid, sops, nsops) \ argument 1313 __sanitizer_syscall_pre_impl_semop((long)(semid), (long)(sops), (long)(nsops)) 1314 #define __sanitizer_syscall_post_semop(res, semid, sops, nsops) \ argument 1315 __sanitizer_syscall_post_impl_semop(res, (long)(semid), (long)(sops), \ 1317 #define __sanitizer_syscall_pre_semctl(semid, semnum, cmd, arg) \ argument 1318 __sanitizer_syscall_pre_impl_semctl((long)(semid), (long)(semnum), \ 1320 #define __sanitizer_syscall_post_semctl(res, semid, semnum, cmd, arg) \ argument 1321 __sanitizer_syscall_post_impl_semctl(res, (long)(semid), (long)(semnum), \ 1323 #define __sanitizer_syscall_pre_semtimedop(semid, sops, nsops, timeout) \ argument 1324 __sanitizer_syscall_pre_impl_semtimedop((long)(semid), (long)(sops), \ [all …]
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2102 PRE_SYSCALL(semop)(long semid, void *sops, long nsops) {} 2104 POST_SYSCALL(semop)(long res, long semid, void *sops, long nsops) {} 2106 PRE_SYSCALL(semctl)(long semid, long semnum, long cmd, void *arg) {} 2108 POST_SYSCALL(semctl)(long res, long semid, long semnum, long cmd, void *arg) {} 2110 PRE_SYSCALL(semtimedop)(long semid, void *sops, long nsops, 2115 POST_SYSCALL(semtimedop)(long res, long semid, void *sops, long nsops,
|
/external/llvm-project/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2101 PRE_SYSCALL(semop)(long semid, void *sops, long nsops) {} 2103 POST_SYSCALL(semop)(long res, long semid, void *sops, long nsops) {} 2105 PRE_SYSCALL(semctl)(long semid, long semnum, long cmd, void *arg) {} 2107 POST_SYSCALL(semctl)(long res, long semid, long semnum, long cmd, void *arg) {} 2109 PRE_SYSCALL(semtimedop)(long semid, void *sops, long nsops, 2114 POST_SYSCALL(semtimedop)(long res, long semid, void *sops, long nsops,
|
/external/rust/crates/libc/src/unix/linux_like/linux/ |
D | mod.rs | 3048 pub fn semop(semid: ::c_int, sops: *mut ::sembuf, nsops: ::size_t) -> ::c_int; in semop() 3049 pub fn semctl(semid: ::c_int, semnum: ::c_int, cmd: ::c_int, ...) -> ::c_int; in semctl()
|
/external/rust/crates/libc/src/unix/bsd/apple/ |
D | mod.rs | 3516 pub fn semctl(semid: ::c_int, semnum: ::c_int, cmd: ::c_int, ...) -> ::c_int; in semctl() 3517 pub fn semop(semid: ::c_int, sops: *mut sembuf, nsops: ::size_t) -> ::c_int; in semop()
|
/external/rust/crates/libc/src/fuchsia/ |
D | mod.rs | 3941 pub fn semop(semid: ::c_int, sops: *mut ::sembuf, nsops: ::size_t) -> ::c_int; in semop() 3942 pub fn semctl(semid: ::c_int, semnum: ::c_int, cmd: ::c_int, ...) -> ::c_int; in semctl()
|
/external/strace/ |
D | ChangeLog | 25468 for semid argument. 25470 (SYS_FUNC(semctl)): Likewise, for semid and semnum arguments. 47229 int semtimedop(semid, *sops, nsops, *timeout); 47233 semid, (int) nsops, 0, CHECK_N (sops, nsops), timeout 47238 semid, (int) nsops, timeout, sops
|