Home
last modified time | relevance | path

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

/external/valgrind/none/tests/
Dsem.c13 int semid; in main() local
19 if ((semid = semget(IPC_PRIVATE, 1, 0600)) < 0) in main()
29 if (semop(semid, &sop, 1) < 0) in main()
32 semctl(semid, 0, IPC_RMID); in main()
36 if (semctl(semid, 0, GETVAL) != 1) in main()
39 semctl(semid, 0, IPC_RMID); in main()
43 if (semctl(semid, 0, GETPID) != getpid()) in main()
46 semctl(semid, 0, IPC_RMID); in main()
61 if (semtimedop(semid, &sop, 1, &ts) < 0 && errno != EAGAIN) in main()
64 semctl(semid, 0, IPC_RMID); in main()
[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/valgrind/coregrind/m_syswrap/
Dsyswrap-tilegx-linux.c929 int, semid, struct sembuf *, sops, unsigned, nsoops); in PRE()
938 int, semid, struct sembuf *, sops, unsigned, nsoops, in PRE()
950 int, semid, int, semnum, int, cmd, struct seminfo *, arg); in PRE()
957 int, semid, int, semnum, int, cmd, struct semid_ds *, arg); in PRE()
963 int, semid, int, semnum, int, cmd, unsigned short *, arg); in PRE()
968 int, semid, int, semnum, int, cmd); in PRE()
Dsyswrap-solaris.c2857 int, semid, int, semnum, int, cmd, in PRE()
2864 int, semid, int, semnum, int, cmd, in PRE()
2871 int, semid, int, semnum, int, cmd, in PRE()
2878 int, semid, int, semnum, int, cmd, in PRE()
2884 int, semid, int, cmd); in PRE()
2890 int, semid, int, cmd, ushort_t *, arg); in PRE()
2896 int, semid, int, cmd, ushort_t *, arg); in PRE()
2902 int, semid, int, semnum, int, cmd); in PRE()
2908 int, semid, int, semnum, int, cmd, in PRE()
2915 int, semid, int, semnum, int, cmd); in PRE()
[all …]
Dsyswrap-generic.c1770 UInt get_sem_count( Int semid ) in get_sem_count() argument
1784 res = VG_(do_syscall4)(__NR_semctl, semid, 0, VKI_IPC_STAT, *(UWord *)&arg); in get_sem_count()
1786 res = VG_(do_syscall5)(__NR_semsys, VKI_SEMCTL, semid, 0, VKI_IPC_STAT, in get_sem_count()
1789 res = VG_(do_syscall5)(__NR_ipc, 3 /* IPCOP_semctl */, semid, 0, in get_sem_count()
Dsyswrap-darwin.c1819 int, semid, struct sembuf *, sops, vki_size_t, nsoops); in PRE()
1830 int, semid, int, semnum, int, cmd, struct semid_ds *, arg); in PRE()
1836 int, semid, int, semnum, int, cmd, unsigned short *, arg); in PRE()
1841 int, semid, int, semnum, int, cmd, int, arg); in PRE()
1846 int, semid, int, semnum, int, cmd); in PRE()
Dsyswrap-linux.c3776 int, semid, struct sembuf *, sops, unsigned, nsoops); in PRE()
3787 int, semid, int, semnum, int, cmd, struct seminfo *, arg); in PRE()
3794 int, semid, int, semnum, int, cmd, struct semid_ds *, arg); in PRE()
3800 int, semid, int, semnum, int, cmd, unsigned short *, arg); in PRE()
3805 int, semid, int, semnum, int, cmd); in PRE()
3829 int, semid, struct sembuf *, sops, unsigned, nsoops, in PRE()
/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/valgrind/memcheck/tests/solaris/
Dscalar.stderr.exp666 Syscall param semsys_semctl_stat(semid) contains uninitialised byte(s)
688 Syscall param semsys_semctl_set(semid) contains uninitialised byte(s)
710 Syscall param semsys_semctl_stat64(semid) contains uninitialised byte(s)
732 Syscall param semsys_semctl_set64(semid) contains uninitialised byte(s)
754 Syscall param semsys_semctl_rmid(semid) contains uninitialised byte(s)
766 Syscall param semsys_semctl_getall(semid) contains uninitialised byte(s)
781 Syscall param semsys_semctl_setall(semid) contains uninitialised byte(s)
796 Syscall param semsys_semctl_getval(semid) contains uninitialised byte(s)
811 Syscall param semsys_semctl_setval(semid) contains uninitialised byte(s)
829 Syscall param semsys_semctl_getpid(semid) contains uninitialised byte(s)
[all …]
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2106 PRE_SYSCALL(semop)(long semid, void *sops, long nsops) {}
2108 POST_SYSCALL(semop)(long res, long semid, void *sops, long nsops) {}
2110 PRE_SYSCALL(semctl)(long semid, long semnum, long cmd, void *arg) {}
2112 POST_SYSCALL(semctl)(long res, long semid, long semnum, long cmd, void *arg) {}
2114 PRE_SYSCALL(semtimedop)(long semid, void *sops, long nsops,
2119 POST_SYSCALL(semtimedop)(long res, long semid, void *sops, long nsops,