Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/ipc/msgctl/
Dmsgctl07.c65 static int msqid; variable
83 if ((msqid = msgget(key, IPC_CREAT | IPC_EXCL)) == -1) { in main()
90 (void)msgctl(msqid, IPC_RMID, NULL); in main()
105 (void)msgctl(msqid, IPC_RMID, NULL); in main()
115 if (msgsnd(msqid, &p1_msgp, BYTES, 0) == -1) { in main()
118 (void)msgctl(msqid, IPC_RMID, NULL); in main()
130 (void)msgctl(msqid, IPC_RMID, NULL); in main()
145 (void)msgctl(msqid, IPC_RMID, NULL); in main()
155 if (msgsnd(msqid, &p1_msgp, BYTES, 0) == -1) { in main()
158 (void)msgctl(msqid, IPC_RMID, NULL); in main()
[all …]
Dmsgctl06.c61 int msqid, status; variable
74 msqid = TEST_RETURN; in main()
79 TEST(msgctl(msqid, IPC_STAT, &buf)); in main()
84 (void)msgctl(msqid, IPC_RMID, NULL); in main()
134 (void)msgctl(msqid, IPC_RMID, NULL); in cleanup()
135 if ((status = msgctl(msqid, IPC_STAT, &buf)) != -1) { in cleanup()
136 (void)msgctl(msqid, IPC_RMID, NULL); in cleanup()
/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) do { \ argument
43 safe_msgctl(__FILE__, __LINE__, (msqid), (cmd), (buf)); \
44 (msqid) = ((cmd) == IPC_RMID ? -1 : (msqid)); \
/external/strace/tests-m32/
Dipc_msgbuf.c39 static int msqid = -1; variable
44 if (msqid != -1) { in cleanup()
45 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
46 msqid = -1; in cleanup()
64 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
65 if (msqid == -1) in main()
69 if (msgsnd(msqid, &msg, msgsz, 0) == -1) in main()
71 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz) in main()
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-mx32/
Dipc_msgbuf.c39 static int msqid = -1; variable
44 if (msqid != -1) { in cleanup()
45 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
46 msqid = -1; in cleanup()
64 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
65 if (msqid == -1) in main()
69 if (msgsnd(msqid, &msg, msgsz, 0) == -1) in main()
71 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz) in main()
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.c39 static int msqid = -1; variable
44 if (msqid != -1) { in cleanup()
45 int rc = msgctl(msqid, IPC_RMID, 0); in cleanup()
46 msqid = -1; in cleanup()
64 msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRWXU); in main()
65 if (msqid == -1) in main()
69 if (msgsnd(msqid, &msg, msgsz, 0) == -1) in main()
71 if (msgrcv(msqid, &msg, msgsz, mtype, 0) != msgsz) in main()
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/lib/
Dtst_safe_sysv_ipc.c39 int safe_msgsnd(const char *file, const int lineno, int msqid, const void *msgp, in safe_msgsnd() argument
44 rval = msgsnd(msqid, msgp, msgsz, msgflg); in safe_msgsnd()
48 file, lineno, msqid, msgp, msgsz, msgflg); in safe_msgsnd()
54 ssize_t safe_msgrcv(const char *file, const int lineno, int msqid, void *msgp, in safe_msgrcv() argument
59 rval = msgrcv(msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
63 file, lineno, msqid, msgp, msgsz, msgtyp, msgflg); in safe_msgrcv()
69 int safe_msgctl(const char *file, const int lineno, int msqid, int cmd, in safe_msgctl() argument
74 rval = msgctl(msqid, cmd, buf); in safe_msgctl()
77 file, lineno, msqid, cmd, buf); in safe_msgctl()
/external/ltp/testcases/kernel/syscalls/ipc/msgrcv/
Dmsgrcv08.c56 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/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/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/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/valgrind/coregrind/m_syswrap/
Dsyswrap-linux.c4397 int, msqid, struct msgbuf *, msgp, vki_size_t, msgsz, int, msgflg); in PRE()
4408 int, msqid, struct msgbuf *, msgp, vki_size_t, msgsz, in PRE()
4423 int, msqid, int, cmd, struct msqid_ds *, buf); in PRE()
/external/strace/
DChangeLog17903 * ipc_msgctl.c (SYS_FUNC(msgctl)): As msqid argument is treated as int
45169 (sys_msgsnd): Print msqid parameter as int instead of long.