Home
last modified time | relevance | path

Searched refs:semid (Results 1 – 11 of 11) 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/syzkaller/sys/freebsd/
Dipc.txt31 semop(semid ipc_sem, ops ptr[in, array[sembuf]], nops len[ops])
32 semctl$IPC_STAT(semid ipc_sem, semnum const[0], cmd const[IPC_STAT], arg buffer[out])
33 semctl$IPC_SET(semid ipc_sem, semnum const[0], cmd const[IPC_SET], arg ptr[in, semid_ds])
34 semctl$IPC_RMID(semid ipc_sem, semnum const[0], cmd const[IPC_RMID])
35 semctl$IPC_INFO(semid ipc_sem, semnum flags[sem_sem_id], cmd const[IPC_INFO], buf buffer[out])
36 semctl$SEM_INFO(semid ipc_sem, semnum flags[sem_sem_id], cmd const[SEM_INFO], arg buffer[out])
37 semctl$SEM_STAT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[SEM_STAT], arg buffer[out])
38 semctl$GETALL(semid ipc_sem, semnum const[0], cmd const[GETALL], arg buffer[out])
39 semctl$GETNCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETNCNT], arg buffer[out])
40 semctl$GETPID(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETPID], arg buffer[out])
[all …]
/external/syzkaller/sys/linux/
Dipc.txt30 semop(semid ipc_sem, ops ptr[in, array[sembuf]], nops len[ops])
31 semtimedop(semid ipc_sem, ops ptr[in, array[sembuf]], nops len[ops], timeout ptr[in, timespec])
32 semctl$IPC_STAT(semid ipc_sem, semnum const[0], cmd const[IPC_STAT], arg buffer[out])
33 semctl$IPC_SET(semid ipc_sem, semnum const[0], cmd const[IPC_SET], arg ptr[in, semid_ds])
34 semctl$IPC_RMID(semid ipc_sem, semnum const[0], cmd const[IPC_RMID])
35 semctl$IPC_INFO(semid ipc_sem, semnum flags[sem_sem_id], cmd const[IPC_INFO], buf buffer[out])
36 semctl$SEM_INFO(semid ipc_sem, semnum flags[sem_sem_id], cmd const[SEM_INFO], arg buffer[out])
37 semctl$SEM_STAT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[SEM_STAT], arg buffer[out])
38 semctl$GETALL(semid ipc_sem, semnum const[0], cmd const[GETALL], arg buffer[out])
39 semctl$GETNCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETNCNT], arg buffer[out])
[all …]
/external/syzkaller/sys/netbsd/
Dipc.txt30 semop(semid ipc_sem, ops ptr[in, array[sembuf]], nops len[ops])
31 semctl$IPC_STAT(semid ipc_sem, semnum const[0], cmd const[IPC_STAT], arg buffer[out])
32 semctl$IPC_SET(semid ipc_sem, semnum const[0], cmd const[IPC_SET], arg ptr[in, semid_ds])
33 semctl$IPC_RMID(semid ipc_sem, semnum const[0], cmd const[IPC_RMID])
34 semctl$GETALL(semid ipc_sem, semnum const[0], cmd const[GETALL], arg buffer[out])
35 semctl$GETNCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETNCNT], arg buffer[out])
36 semctl$GETPID(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETPID], arg buffer[out])
37 semctl$GETVAL(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETVAL], arg buffer[out])
38 semctl$GETZCNT(semid ipc_sem, semnum flags[sem_sem_id], cmd const[GETZCNT], arg buffer[out])
39 semctl$SETALL(semid ipc_sem, semnum const[0], cmd const[SETALL], arg ptr[in, array[int16]])
[all …]
/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/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/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