Home
last modified time | relevance | path

Searched refs:msqid (Results 1 – 25 of 25) sorted by relevance

/external/strace/tests-mx32/
Dipc_msgbuf.c42 static int msqid = -1; variable
64 if (msqid != -1) { in cleanup()
65 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
67 msqid, str_ipc_64, str_ipc_rmid); in cleanup()
68 msqid = -1; in cleanup()
77 sys_msgrcv(int msqid, void *msgp, size_t sz, kernel_long_t msgtyp, in sys_msgrcv() argument
81 return syscall(__NR_msgrcv, msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
83 return msgrcv(msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
99 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
100 if (msqid == -1) in main()
[all …]
Dipc.c104 const int msqid = -2; in main() local
109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); in main()
111 msqid, efault, msgsz, msgtyp, rc, errno2name()); in main()
/external/strace/tests-m32/
Dipc_msgbuf.c42 static int msqid = -1; variable
64 if (msqid != -1) { in cleanup()
65 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
67 msqid, str_ipc_64, str_ipc_rmid); in cleanup()
68 msqid = -1; in cleanup()
77 sys_msgrcv(int msqid, void *msgp, size_t sz, kernel_long_t msgtyp, in sys_msgrcv() argument
81 return syscall(__NR_msgrcv, msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
83 return msgrcv(msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
99 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
100 if (msqid == -1) in main()
[all …]
Dipc.c104 const int msqid = -2; in main() local
109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); in main()
111 msqid, efault, msgsz, msgtyp, rc, errno2name()); in main()
/external/strace/tests/
Dipc_msgbuf.c42 static int msqid = -1; variable
64 if (msqid != -1) { in cleanup()
65 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
67 msqid, str_ipc_64, str_ipc_rmid); in cleanup()
68 msqid = -1; in cleanup()
77 sys_msgrcv(int msqid, void *msgp, size_t sz, kernel_long_t msgtyp, in sys_msgrcv() argument
81 return syscall(__NR_msgrcv, msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
83 return msgrcv(msqid, msgp, sz, msgtyp, msgflg); in sys_msgrcv()
99 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
100 if (msqid == -1) in main()
[all …]
Dipc.c104 const int msqid = -2; in main() local
109 msqid, msgsz, IPC_NOWAIT, (long) efault, msgtyp); in main()
111 msqid, efault, msgsz, msgtyp, rc, errno2name()); in main()
/external/ltp/include/
Dtst_safe_sysv_ipc.h30 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp,
32 #define SAFE_MSGSND(msqid, msgp, msgsz, msgflg) \ argument
33 safe_msgsnd(__FILE__, __LINE__, (msqid), (msgp), (msgsz), (msgflg))
35 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp,
37 #define SAFE_MSGRCV(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
38 safe_msgrcv(__FILE__, __LINE__, (msqid), (msgp), (msgsz), (msgtyp), (msgflg))
40 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd,
42 #define SAFE_MSGCTL(msqid, cmd, buf) ({ \ argument
43 int tst_ret_ = safe_msgctl(__FILE__, __LINE__, (msqid), (cmd), (buf)); \
44 (msqid) = ((cmd) == IPC_RMID ? -1 : (msqid)); \
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv08.c57 static void msr(int msqid) in msr() argument
67 if (msgsnd(msqid, &msbs, sizeof(msbs.mtext), IPC_NOWAIT)) in msr()
70 sret = msgrcv(msqid, &msbr, sizeof(msbr.mtext), -mtype, IPC_NOWAIT | MSG_NOERROR); in msr()
90 int msqid = msgget(IPC_PRIVATE, IPC_CREAT | IPC_EXCL | 0666); in msgrcv_test() local
92 if (msqid < 0) in msgrcv_test()
95 msr(msqid); in msgrcv_test()
97 if (msgctl(msqid, IPC_RMID, 0)) in msgrcv_test()
/external/ltp/lib/
Dtst_safe_sysv_ipc.c45 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
50 rval = msgsnd(msqid, msgp, msgsz, msgflg); in safe_msgsnd()
54 file, lineno, msqid, msgp, msgsz, msgflg); in safe_msgsnd()
60 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
65 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
69 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
75 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument
80 rval = msgctl(msqid, cmd, buf); in safe_msgctl()
84 file, lineno, msqid, cmd, buf, rval); in safe_msgctl()
/external/toybox/toys/pending/
Dipcs.c341 int max_nr, i, msqid; in msg_array() local
387 if ((msqid = msgctl(i, MSG_STAT, &buf)) < 0 ) continue; in msg_array()
390 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array()
391 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array()
399 if (pw) printf("%-8d %-10.10s", msqid, pw->pw_name); in msg_array()
400 else printf("%-8d %-10d", msqid, buf.msg_perm.uid); in msg_array()
403 printf("%-10d %-10o", msqid, buf.msg_perm.mode & 0777); in msg_array()
414 if (pw) printf("%-10d %-10.10s", msqid, pw->pw_name); in msg_array()
415 else printf("%-10d %-10d", msqid, buf.msg_perm.uid); in msg_array()
/external/llvm-project/compiler-rt/include/sanitizer/
Dnetbsd_syscall_hooks.h1169 #define __sanitizer_syscall_pre_compat_14_msgctl(msqid, cmd, buf) \ argument
1171 (long long)(msqid), (long long)(cmd), (long long)(buf))
1172 #define __sanitizer_syscall_post_compat_14_msgctl(res, msqid, cmd, buf) \ argument
1174 res, (long long)(msqid), (long long)(cmd), (long long)(buf))
1180 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \ argument
1181 __sanitizer_syscall_pre_impl_msgsnd((long long)(msqid), (long long)(msgp), \
1183 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \ argument
1184 __sanitizer_syscall_post_impl_msgsnd(res, (long long)(msqid), \
1187 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
1188 __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp), \
[all …]
Dlinux_syscall_hooks.h1285 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \ argument
1286 __sanitizer_syscall_pre_impl_msgsnd((long)(msqid), (long)(msgp), \
1288 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \ argument
1289 __sanitizer_syscall_post_impl_msgsnd(res, (long)(msqid), (long)(msgp), \
1291 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
1292 __sanitizer_syscall_pre_impl_msgrcv((long)(msqid), (long)(msgp), \
1295 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \ argument
1297 __sanitizer_syscall_post_impl_msgrcv(res, (long)(msqid), (long)(msgp), \
1300 #define __sanitizer_syscall_pre_msgctl(msqid, cmd, buf) \ argument
1301 __sanitizer_syscall_pre_impl_msgctl((long)(msqid), (long)(cmd), (long)(buf))
[all …]
/external/compiler-rt/include/sanitizer/
Dlinux_syscall_hooks.h1286 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \ argument
1287 __sanitizer_syscall_pre_impl_msgsnd((long)(msqid), (long)(msgp), \
1289 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \ argument
1290 __sanitizer_syscall_post_impl_msgsnd(res, (long)(msqid), (long)(msgp), \
1292 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
1293 __sanitizer_syscall_pre_impl_msgrcv((long)(msqid), (long)(msgp), \
1296 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \ argument
1298 __sanitizer_syscall_post_impl_msgrcv(res, (long)(msqid), (long)(msgp), \
1301 #define __sanitizer_syscall_pre_msgctl(msqid, cmd, buf) \ argument
1302 __sanitizer_syscall_pre_impl_msgctl((long)(msqid), (long)(cmd), (long)(buf))
[all …]
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd11/
Dmod.rs208 msqid: ::c_int, in msgrcv()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd13/
Dmod.rs218 msqid: ::c_int, in msgrcv()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/freebsd12/
Dmod.rs214 msqid: ::c_int, in msgrcv()
/external/rust/crates/libc/src/unix/bsd/freebsdlike/freebsd/
Dmod.rs1402 pub fn msgctl(msqid: ::c_int, cmd: ::c_int, buf: *mut ::msqid_ds) -> ::c_int; in msgctl()
1405 msqid: ::c_int, in msgsnd()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2071 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) {
2075 POST_SYSCALL(msgsnd)(long res, long msqid, void *msgp, long msgsz,
2078 PRE_SYSCALL(msgrcv)(long msqid, void *msgp, long msgsz, long msgtyp,
2081 POST_SYSCALL(msgrcv)(long res, long msqid, void *msgp, long msgsz, long msgtyp,
2089 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {}
2091 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_common_syscalls.inc2070 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) {
2074 POST_SYSCALL(msgsnd)(long res, long msqid, void *msgp, long msgsz,
2077 PRE_SYSCALL(msgrcv)(long msqid, void *msgp, long msgsz, long msgtyp,
2080 POST_SYSCALL(msgrcv)(long res, long msqid, void *msgp, long msgsz, long msgtyp,
2088 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {}
2090 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
Dsanitizer_common_interceptors.inc3116 INTERCEPTOR(int, msgsnd, int msqid, const void *msgp, SIZE_T msgsz,
3119 COMMON_INTERCEPTOR_ENTER(ctx, msgsnd, msqid, msgp, msgsz, msgflg);
3122 int res = REAL(msgsnd)(msqid, msgp, msgsz, msgflg);
3126 INTERCEPTOR(SSIZE_T, msgrcv, int msqid, void *msgp, SIZE_T msgsz,
3129 COMMON_INTERCEPTOR_ENTER(ctx, msgrcv, msqid, msgp, msgsz, msgtyp, msgflg);
3130 SSIZE_T len = REAL(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg);
/external/rust/crates/libc/src/unix/linux_like/linux/
Dmod.rs3050 pub fn msgctl(msqid: ::c_int, cmd: ::c_int, buf: *mut msqid_ds) -> ::c_int; in msgctl()
3053 msqid: ::c_int, in msgrcv()
3060 msqid: ::c_int, in msgsnd()
/external/rust/crates/libc/src/fuchsia/
Dmod.rs3943 pub fn msgctl(msqid: ::c_int, cmd: ::c_int, buf: *mut msqid_ds) -> ::c_int; in msgctl()
3946 msqid: ::c_int, in msgrcv()
3953 msqid: ::c_int, in msgsnd()
/external/libabigail/tests/data/test-read-dwarf/
Dtest15-pr18892.so.abi10992 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
11001 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
11472 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
11548 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
14142 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
/external/libabigail/tests/data/test-annotate/
Dtest15-pr18892.so.abi18440 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
18457 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
19329 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
19471 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
24190 …<parameter type-id='type-id-45' name='msqid' filepath='../../.././libsanitizer/sanitizer_common/sa…
/external/strace/
DChangeLog25465 * ipc_msgctl.c (SYS_FUNC(msgctl)): As msqid argument is treated as int
52731 (sys_msgsnd): Print msqid parameter as int instead of long.