| /freebsd/sys/kern/ |
| H A D | sysv_msg.c | 316 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 D | systrace_args.c | 1077 iarg[a++] = p->msqid; /* int */ in systrace_args() 1087 iarg[a++] = p->msqid; /* int */ in systrace_args() 2768 iarg[a++] = p->msqid; /* int */ in systrace_args()
|
| /freebsd/tests/sys/audit/ |
| H A D | inter-process.c | 50 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 D | msgtest.c | 303 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 D | t_sysv.c | 346 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 D | netbsd_syscall_hooks.h | 1169 #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 D | linux_syscall_hooks.h | 1294 #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 D | linux32_machdep.c | 160 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 D | linux32_systrace_args.c | 2958 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 2968 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 2979 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
|
| H A D | linux32_proto.h | 1522 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 1528 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 1535 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member
|
| /freebsd/sys/i386/linux/ |
| H A D | linux_machdep.c | 144 a.msqid = args->arg1; in linux_ipc() 153 a.msqid = args->arg1; in linux_ipc() 183 a.msqid = args->arg1; in linux_ipc()
|
| H A D | linux_systrace_args.c | 2989 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 2999 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 3010 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
|
| H A D | linux_proto.h | 1516 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 1522 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 1529 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member
|
| /freebsd/sys/compat/linux/ |
| H A D | linux_ipc.c | 658 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.h | 602 int __sys_msgsnd(int msqid, const void * msgp, size_t msgsz, int msgflg); 603 ssize_t __sys_msgrcv(int msqid, void * msgp, size_t msgsz, long msgtyp, int msgflg); 800 int __sys_msgctl(int msqid, int cmd, struct msqid_ds * buf);
|
| /freebsd/sys/compat/freebsd32/ |
| H A D | freebsd32_proto.h | 172 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 1048 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
|
| H A D | freebsd32_systrace_args.c | 1054 iarg[a++] = p->msqid; /* int */ in systrace_args() 1064 iarg[a++] = p->msqid; /* int */ in systrace_args() 2657 iarg[a++] = p->msqid; /* int */ in systrace_args()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common_syscalls.inc | 2283 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) { 2289 (long res, long msqid, void *msgp, long msgsz, long msgflg) {} 2292 (long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) {} 2295 (long res, long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) { 2303 PRE_SYSCALL(msgctl)(long msqid, long cmd, void *buf) {} 2305 POST_SYSCALL(msgctl)(long res, long msqid, long cmd, void *buf) {
|
| H A D | sanitizer_common_interceptors.inc | 3428 INTERCEPTOR(int, msgsnd, int msqid, const void *msgp, SIZE_T msgsz, 3431 COMMON_INTERCEPTOR_ENTER(ctx, msgsnd, msqid, msgp, msgsz, msgflg); 3434 int res = COMMON_INTERCEPTOR_BLOCK_REAL(msgsnd)(msqid, msgp, msgsz, msgflg); 3438 INTERCEPTOR(SSIZE_T, msgrcv, int msqid, void *msgp, SIZE_T msgsz, 3441 COMMON_INTERCEPTOR_ENTER(ctx, msgrcv, msqid, msgp, msgsz, msgtyp, msgflg); 3443 COMMON_INTERCEPTOR_BLOCK_REAL(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg);
|
| /freebsd/sys/arm64/linux/ |
| H A D | linux_systrace_args.c | 1480 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 1489 iarg[a++] = p->msqid; /* l_int */ in systrace_args() 1500 iarg[a++] = p->msqid; /* l_int */ in systrace_args()
|
| H A D | linux_proto.h | 719 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 724 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 731 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member
|
| /freebsd/sys/amd64/linux/ |
| H A D | linux_systrace_args.c | 616 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()
|
| H A D | linux_proto.h | 337 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 343 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member 350 char msqid_l_[PADL_(l_int)]; l_int msqid; char msqid_r_[PADR_(l_int)]; member
|
| /freebsd/sys/sys/ |
| H A D | sysproto.h | 586 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member 592 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member 1491 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member 2672 char msqid_l_[PADL_(int)]; int msqid; char msqid_r_[PADR_(int)]; member
|