Home
last modified time | relevance | path

Searched refs:semid (Results 1 – 14 of 14) sorted by relevance

/external/ltp/testcases/kernel/ipc/semaphore/
Dsem01.c50 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/
Dsemctl07.c58 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 …]
Dsemctl01.c102 int *semid; member
180 TEST(semctl(*(TC[i].semid), TC[i].semnum, TC[i].cmd, in main()
/external/toybox/toys/pending/
Dipcs.c254 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/
Dsemop02.c53 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/
Dnetbsd_syscall_hooks.h1144 #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 …]
Dlinux_syscall_hooks.h1311 #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/
Dlinux_syscall_hooks.h1312 #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/
Dsanitizer_common_syscalls.inc2102 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/
Dsanitizer_common_syscalls.inc2101 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/
Dmod.rs3048 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/
Dmod.rs3516 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/
Dmod.rs3941 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/
DChangeLog25468 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