/external/strace/tests-m32/ |
D | ipc_msgbuf.c | 42 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 …]
|
D | ipc.c | 104 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-mx32/ |
D | ipc_msgbuf.c | 42 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 …]
|
D | ipc.c | 104 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/ |
D | ipc_msgbuf.c | 42 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 …]
|
D | ipc.c | 104 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/ |
D | tst_safe_sysv_ipc.h | 30 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/lib/ |
D | tst_safe_sysv_ipc.c | 57 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument 62 rval = msgsnd(msqid, msgp, msgsz, msgflg); in safe_msgsnd() 66 file, lineno, msqid, msgp, msgsz, msgflg); in safe_msgsnd() 72 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument 77 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv() 81 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv() 87 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument 92 rval = msgctl(msqid, cmd, buf); in safe_msgctl() 96 file, lineno, msqid, cmd, buf, rval); in safe_msgctl()
|
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/ |
D | msgrcv08.c | 56 static void msr(int msqid) in msr() argument 66 if (msgsnd(msqid, &msbs, sizeof(msbs.mtext), IPC_NOWAIT)) in msr() 69 sret = msgrcv(msqid, &msbr, sizeof(msbr.mtext), -mtype, IPC_NOWAIT | MSG_NOERROR); in msr() 89 int msqid = msgget(IPC_PRIVATE, IPC_CREAT | IPC_EXCL | 0666); in msgrcv_test() local 91 if (msqid < 0) in msgrcv_test() 94 msr(msqid); in msgrcv_test() 96 if (msgctl(msqid, IPC_RMID, 0)) in msgrcv_test()
|
/external/syzkaller/sys/linux/ |
D | ipc.txt | 18 msgsnd(msqid ipc_msq, msgp ptr[in, msgbuf], sz len[msgp], flags flags[msgsnd_flags]) 19 msgrcv(msqid ipc_msq, msgp ptr[out, msgbuf], sz len[msgp], typ flags[msgbuf_type], flags flags[msgr… 20 msgctl$IPC_STAT(msqid ipc_msq, cmd const[IPC_STAT], buf buffer[out]) 21 msgctl$IPC_SET(msqid ipc_msq, cmd const[IPC_SET], buf ptr[in, msqid_ds]) 22 msgctl$IPC_RMID(msqid ipc_msq, cmd const[IPC_RMID]) 23 msgctl$IPC_INFO(msqid ipc_msq, cmd const[IPC_INFO], buf buffer[out]) 24 msgctl$MSG_INFO(msqid ipc_msq, cmd const[MSG_INFO], buf buffer[out]) 25 msgctl$MSG_STAT(msqid ipc_msq, cmd const[MSG_STAT], buf buffer[out])
|
/external/toybox/toys/pending/ |
D | ipcs.c | 341 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/syzkaller/sys/freebsd/ |
D | ipc.txt | 21 msgsnd(msqid ipc_msq, msgp ptr[in, msgbuf], sz len[msgp], flags flags[msgsnd_flags]) 22 msgrcv(msqid ipc_msq, msgp ptr[out, msgbuf], sz len[msgp], typ flags[msgbuf_type], flags flags[msgr… 23 msgctl$IPC_STAT(msqid ipc_msq, cmd const[IPC_STAT], buf buffer[out]) 24 msgctl$IPC_SET(msqid ipc_msq, cmd const[IPC_SET], buf ptr[in, msqid_ds]) 25 msgctl$IPC_RMID(msqid ipc_msq, cmd const[IPC_RMID]) 26 msgctl$IPC_INFO(msqid ipc_msq, cmd const[IPC_INFO], buf buffer[out])
|
/external/syzkaller/sys/netbsd/ |
D | ipc.txt | 21 msgsnd(msqid ipc_msq, msgp ptr[in, msgbuf], sz len[msgp], flags flags[msgsnd_flags]) 22 msgrcv(msqid ipc_msq, msgp ptr[out, msgbuf], sz len[msgp], typ flags[msgbuf_type], flags flags[msgr… 23 msgctl$IPC_STAT(msqid ipc_msq, cmd const[IPC_STAT], buf buffer[out]) 24 msgctl$IPC_SET(msqid ipc_msq, cmd const[IPC_SET], buf ptr[in, msqid_ds]) 25 msgctl$IPC_RMID(msqid ipc_msq, cmd const[IPC_RMID])
|
/external/compiler-rt/include/sanitizer/ |
D | linux_syscall_hooks.h | 1286 #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/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_common_syscalls.inc | 2071 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/strace/ |
D | ChangeLog | 25465 * ipc_msgctl.c (SYS_FUNC(msgctl)): As msqid argument is treated as int 52731 (sys_msgsnd): Print msqid parameter as int instead of long.
|