Home
last modified time | relevance | path

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

/freebsd/sys/kern/
H A Dsysv_msg.c316 int msqid; in msgunload() local
326 for (msqid = 0; msqid < msginfo.msgmni; msqid++) { in msgunload()
327 msqkptr = &msqids[msqid]; in msgunload()
332 if (msqid != msginfo.msgmni) in msgunload()
340 for (msqid = 0; msqid < msginfo.msgmni; msqid++) in msgunload()
341 mac_sysvmsq_destroy(&msqids[msqid]); in msgunload()
472 int msqid; member
480 int msqid = uap->msqid; in sys_msgctl() local
485 DPRINTF(("call to msgctl(%d, %d, %p)\n", msqid, cmd, uap->buf)); in sys_msgctl()
489 error = kern_msgctl(td, msqid, cmd, &msqbuf); in sys_msgctl()
[all …]
H A Dsystrace_args.c1093 iarg[a++] = p->msqid; /* int */ in systrace_args()
1103 iarg[a++] = p->msqid; /* int */ in systrace_args()
2784 iarg[a++] = p->msqid; /* int */ in systrace_args()
/freebsd/tests/sys/audit/
H A Dinter-process.c50 static int msqid, shmid, semid; variable
73 ATF_REQUIRE((msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRUSR)) != -1); in ATF_TC_BODY()
76 "msgget.*return,success,%d", msqid); in ATF_TC_BODY()
80 ATF_REQUIRE_EQ(0, msgctl(msqid, IPC_RMID, NULL)); in ATF_TC_BODY()
120 ATF_REQUIRE((msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRUSR)) != -1); in ATF_TC_BODY()
129 "msgsnd.*Message IPC.*%d.*return,success", msqid); in ATF_TC_BODY()
132 ATF_REQUIRE_EQ(0, msgsnd(msqid, &msg, BUFFSIZE, IPC_NOWAIT)); in ATF_TC_BODY()
136 ATF_REQUIRE_EQ(0, msgctl(msqid, IPC_RMID, NULL)); in ATF_TC_BODY()
177 ATF_REQUIRE((msqid = msgget(IPC_PRIVATE, IPC_CREAT | S_IRUSR)) != -1); in ATF_TC_BODY()
185 ATF_REQUIRE_EQ(0, msgsnd(msqid, &msg1, BUFFSIZE, IPC_NOWAIT)); in ATF_TC_BODY()
[all …]
/freebsd/tools/regression/sysvmsg/
H A Dmsgtest.c303 int msqid; in receiver() local
305 if ((msqid = msgget(msgkey, 0)) == -1) in receiver()
312 if (msgrcv(msqid, &m, sizeof(m.mtext), MTYPE_1, 0) != in receiver()
322 if (msgsnd(msqid, &m, strlen(m1_str) + 1, 0) == -1) in receiver()
329 if (msgrcv(msqid, &m, sizeof(m.mtext), MTYPE_2, 0) != in receiver()
339 if (msgsnd(msqid, &m, strlen(m2_str) + 1, 0) == -1) in receiver()
/freebsd/contrib/netbsd-tests/kernel/
H A Dt_sysv.c346 int msqid, loop; in receiver() local
348 if ((msqid = msgget(msgkey, 0)) == -1) in receiver()
355 if (msgrcv(msqid, &m, MESSAGE_TEXT_LEN, MTYPE_1, 0) != MESSAGE_TEXT_LEN) in receiver()
364 if (msgsnd(msqid, &m, MESSAGE_TEXT_LEN, 0) == -1) in receiver()
371 if (msgrcv(msqid, &m, MESSAGE_TEXT_LEN, MTYPE_2, 0) != MESSAGE_TEXT_LEN) in receiver()
380 if (msgsnd(msqid, &m, MESSAGE_TEXT_LEN, 0) == -1) in receiver()
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
H A 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 …]
H A Dlinux_syscall_hooks.h1294 #define __sanitizer_syscall_pre_msgsnd(msqid, msgp, msgsz, msgflg) \ argument
1295 __sanitizer_syscall_pre_impl_msgsnd((long)(msqid), (long)(msgp), \
1297 #define __sanitizer_syscall_post_msgsnd(res, msqid, msgp, msgsz, msgflg) \ argument
1298 __sanitizer_syscall_post_impl_msgsnd(res, (long)(msqid), (long)(msgp), \
1300 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
1301 __sanitizer_syscall_pre_impl_msgrcv((long)(msqid), (long)(msgp), \
1304 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \ argument
1306 __sanitizer_syscall_post_impl_msgrcv(res, (long)(msqid), (long)(msgp), \
1309 #define __sanitizer_syscall_pre_msgctl(msqid, cmd, buf) \ argument
1310 __sanitizer_syscall_pre_impl_msgctl((long)(msqid), (long)(cmd), (long)(buf))
[all …]
/freebsd/sys/amd64/linux32/
H A Dlinux32_machdep.c160 a.msqid = args->arg1; in linux_ipc()
169 a.msqid = args->arg1; in linux_ipc()
199 a.msqid = args->arg1; in linux_ipc()
H A Dlinux32_systrace_args.c2948 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
2958 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
2969 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
/freebsd/sys/compat/linux/
H A Dlinux_ipc.c658 return (kern_msgsnd(td, args->msqid, in linux_msgsnd()
674 if ((error = kern_msgrcv(td, args->msqid, in linux_msgrcv()
755 error = kern_msgctl(td, args->msqid, bsd_cmd, &bsd_msqid); in linux_msgctl()
/freebsd/lib/libsys/
H A D_libsys.h594 int __sys_msgsnd(int msqid, const void * msgp, size_t msgsz, int msgflg);
595 ssize_t __sys_msgrcv(int msqid, void * msgp, size_t msgsz, long msgtyp, int msgflg);
792 int __sys_msgctl(int msqid, int cmd, struct msqid_ds * buf);
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_proto.h172 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
178 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
529 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
1040 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
H A Dfreebsd32_systrace_args.c1070 iarg[a++] = p->msqid; /* int */ in systrace_args()
1080 iarg[a++] = p->msqid; /* int */ in systrace_args()
2673 iarg[a++] = p->msqid; /* int */ in systrace_args()
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc2282 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) {
2288 (long res, long msqid, void *msgp, long msgsz, long msgflg) {}
2291 (long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) {}
2294 (long res, long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) {
2302 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {}
2304 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
H A Dsanitizer_common_interceptors.inc3274 INTERCEPTOR(int, msgsnd, int msqid, const void *msgp, SIZE_T msgsz,
3277 COMMON_INTERCEPTOR_ENTER(ctx, msgsnd, msqid, msgp, msgsz, msgflg);
3280 int res = COMMON_INTERCEPTOR_BLOCK_REAL(msgsnd)(msqid, msgp, msgsz, msgflg);
3284 INTERCEPTOR(SSIZE_T, msgrcv, int msqid, void *msgp, SIZE_T msgsz,
3287 COMMON_INTERCEPTOR_ENTER(ctx, msgrcv, msqid, msgp, msgsz, msgtyp, msgflg);
3289 COMMON_INTERCEPTOR_BLOCK_REAL(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg);
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c1473 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
1482 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
1493 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c616 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
626 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
637 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
/freebsd/sys/sys/
H A Dsysproto.h594 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
600 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
1499 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
2617 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c2979 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
2989 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
3000 iarg[a++] = p->msqid; /* l_int */ in systrace_args()