Home
last modified time | relevance | path

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

12

/freebsd/contrib/ntp/libntp/
H A Dadjtime.c217 register MsgBuf *msgp = &msg; in _adjtime() local
226 msgp->msgb.mtype = CLIENT; in _adjtime()
227 msgp->msgb.tv = *delta; in _adjtime()
229 msgp->msgb.code = DELTA2; in _adjtime()
231 msgp->msgb.code = DELTA1; in _adjtime()
237 if (msgsnd(mqid, &msgp->msgp, MSGSIZE, 0) == -1) in _adjtime()
240 if (msgrcv(mqid, &msgp->msgp, MSGSIZE, SERVER, 0) == -1) in _adjtime()
242 *olddelta = msgp->msgb.tv; in _adjtime()
/freebsd/contrib/openpam/lib/libpam/
H A Dpam_vprompt.c63 const struct pam_message *msgp; in pam_vprompt() local
81 msgp = &msg; in pam_vprompt()
83 r = (conv->conv)(1, &msgp, &rsp, conv->appdata_ptr); in pam_vprompt()
/freebsd/usr.sbin/i2c/
H A Di2c.c457 msgp->slave = i2c_opt.addr; in i2c_rdwr_transfer()
458 msgp->buf = i2c_opt.off_buf; in i2c_rdwr_transfer()
459 msgp->len = i2c_opt.off_len; in i2c_rdwr_transfer()
460 msgp++; in i2c_rdwr_transfer()
472 msgp->flags = IIC_M_WR | flag; in i2c_rdwr_transfer()
474 msgp->flags = IIC_M_RD; in i2c_rdwr_transfer()
475 msgp->slave = i2c_opt.addr; in i2c_rdwr_transfer()
476 msgp->len = i2c_opt.count; in i2c_rdwr_transfer()
477 msgp->buf = i2c_buf; in i2c_rdwr_transfer()
478 msgp++; in i2c_rdwr_transfer()
[all …]
/freebsd/sys/kern/
H A Dsysv_msg.c1032 msgp = (const char *)msgp + tlen; in kern_msgsnd()
1122 (const char *)uap->msgp + sizeof(mtype), in sys_msgsnd()
1129 void *msgp; member
1380 msgp = (char *)msgp + tlen; in kern_msgrcv()
1406 (char *)uap->msgp + sizeof(mtype), uap->msgsz, in sys_msgrcv()
1792 const void *msgp; in freebsd32_msgsnd() local
1797 msgp = PTRIN(uap->msgp); in freebsd32_msgsnd()
1802 (const char *)msgp + sizeof(mtype32), in freebsd32_msgsnd()
1809 void *msgp; in freebsd32_msgrcv() local
1814 msgp = PTRIN(uap->msgp); in freebsd32_msgrcv()
[all …]
/freebsd/contrib/openpam/modules/pam_unix/
H A Dpam_unix.c70 const struct pam_message *msgp; in pam_sm_authenticate() local
94 msgp = &msg; in pam_sm_authenticate()
102 pam_err = (*conv->conv)(1, &msgp, &resp, conv->appdata_ptr); in pam_sm_authenticate()
/freebsd/sys/compat/linux/
H A Dlinux_ipc.c647 const void *msgp; in linux_msgsnd() local
654 msgp = PTRIN(args->msgp); in linux_msgsnd()
655 if ((error = copyin(msgp, &lmtype, sizeof(lmtype))) != 0) in linux_msgsnd()
659 (const char *)msgp + sizeof(lmtype), in linux_msgsnd()
666 void *msgp; in linux_msgrcv() local
673 msgp = PTRIN(args->msgp); in linux_msgrcv()
675 (char *)msgp + sizeof(lmtype), args->msgsz, in linux_msgrcv()
679 return (copyout(&lmtype, msgp, sizeof(lmtype))); in linux_msgrcv()
/freebsd/contrib/ntp/include/
H A Dadjtime.h45 struct msgbuf msgp; member
/freebsd/sys/amd64/linux32/
H A Dlinux32_machdep.c114 l_uintptr_t msgp; member
161 a.msgp = PTRIN(args->ptr); in linux_ipc()
181 a.msgp = PTRIN(tmp.msgp); in linux_ipc()
184 a.msgp = PTRIN(args->ptr); in linux_ipc()
H A Dlinux32_systrace_args.c2948 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
2958 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
/freebsd/crypto/openssh/openbsd-compat/
H A Dgetrrsetbyname.c131 _getshort(const u_char *msgp) in _getshort() argument
135 GETSHORT(u, msgp); in _getshort()
140 _getlong(const u_char *msgp) in _getlong() argument
144 GETLONG(u, msgp); in _getlong()
/freebsd/sys/i386/linux/
H A Dlinux_machdep.c98 struct l_msgbuf *msgp; member
145 a.msgp = PTRIN(args->ptr); in linux_ipc()
165 a.msgp = PTRIN(tmp.msgp); in linux_ipc()
168 a.msgp = PTRIN(args->ptr); in linux_ipc()
H A Dlinux_systrace_args.c2979 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
2989 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
H A Dlinux_proto.h1513 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member
1519 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member
/freebsd/contrib/ntp/adjtimed/
H A Dadjtimed.c219 if (msgrcv(mqid, &msg.msgp, MSGSIZE, CLIENT, 0) == -1) { in main()
235 while (msgsnd(mqid, &msg.msgp, MSGSIZE, 0) == -1) { in main()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_linux.cpp424 int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) { in ExtractRecvmsgFDs() argument
426 msghdr *msg = (msghdr*)msgp; in ExtractRecvmsgFDs()
/freebsd/contrib/llvm-project/compiler-rt/include/sanitizer/
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
2747 void __sanitizer_syscall_pre_impl_msgsnd(long msqid, long msgp, long msgsz,
2749 void __sanitizer_syscall_post_impl_msgsnd(long res, long msqid, long msgp,
2751 void __sanitizer_syscall_pre_impl_msgrcv(long msqid, long msgp, long msgsz,
[all …]
H A Dnetbsd_syscall_hooks.h1180 #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
1185 (long long)(msgp), (long long)(msgsz), \
1187 #define __sanitizer_syscall_pre_msgrcv(msqid, msgp, msgsz, msgtyp, msgflg) \ argument
1188 __sanitizer_syscall_pre_impl_msgrcv((long long)(msqid), (long long)(msgp), \
1191 #define __sanitizer_syscall_post_msgrcv(res, msqid, msgp, msgsz, msgtyp, \ argument
3745 void __sanitizer_syscall_pre_impl_msgsnd(long long msqid, long long msgp,
3748 long long msgp, long long msgsz,
3750 void __sanitizer_syscall_pre_impl_msgrcv(long long msqid, long long msgp,
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc2268 PRE_SYSCALL(msgsnd)(long msqid, void *msgp, long msgsz, long msgflg) {
2269 if (msgp)
2270 PRE_READ(msgp, msgsz);
2274 (long res, long msqid, void *msgp, long msgsz, long msgflg) {}
2277 (long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) {}
2280 (long res, long msqid, void *msgp, long msgsz, long msgtyp, long msgflg) {
2282 if (msgp)
2283 POST_WRITE(msgp, res);
H A Dsanitizer_common_interceptors.inc3264 INTERCEPTOR(int, msgsnd, int msqid, const void *msgp, SIZE_T msgsz,
3267 COMMON_INTERCEPTOR_ENTER(ctx, msgsnd, msqid, msgp, msgsz, msgflg);
3268 if (msgp)
3269 COMMON_INTERCEPTOR_READ_RANGE(ctx, msgp, sizeof(long) + msgsz);
3270 int res = REAL(msgsnd)(msqid, msgp, msgsz, msgflg);
3274 INTERCEPTOR(SSIZE_T, msgrcv, int msqid, void *msgp, SIZE_T msgsz,
3277 COMMON_INTERCEPTOR_ENTER(ctx, msgrcv, msqid, msgp, msgsz, msgtyp, msgflg);
3278 SSIZE_T len = REAL(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg);
3280 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, msgp, sizeof(long) + len);
/freebsd/lib/libsys/
H A D_libsys.h590 int __sys_msgsnd(int msqid, const void * msgp, size_t msgsz, int msgflg);
591 ssize_t __sys_msgrcv(int msqid, void * msgp, size_t msgsz, long msgtyp, int msgflg);
/freebsd/sys/compat/freebsd32/
H A Dfreebsd32_proto.h173 char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)]; member
179 char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; member
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c1482 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
1493 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
H A Dlinux_proto.h722 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member
729 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c616 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
626 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
H A Dlinux_proto.h338 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member
344 …char msgp_l_[PADL_(struct l_msgbuf *)]; struct l_msgbuf * msgp; char msgp_r_[PADR_(struct l_msgbuf… member

12