Home
last modified time | relevance | path

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

/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 in _adjtime()
[all...]
/freebsd/usr.sbin/i2c/
H A Di2c.c451 struct iic_msg msgs[2], *msgp = msgs; in i2c_rdwr_transfer() local
456 msgp->flags = IIC_M_WR | IIC_M_NOSTOP; in i2c_rdwr_transfer()
457 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()
[all …]
/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/sys/kern/
H A Dsysv_msg.c760 const void *msgp; /* XXX msgp is actually mtext. */ member
766 kern_msgsnd(struct thread *td, int msqid, const void *msgp, in kern_msgsnd() argument
1019 if ((error = copyin(msgp, &msgpool[next * msginfo.msgssz], in kern_msgsnd()
1031 msgp = (const char *)msgp + tlen; in kern_msgsnd()
1113 DPRINTF(("call to msgsnd(%d, %p, %zu, %d)\n", uap->msqid, uap->msgp, in sys_msgsnd()
1116 if ((error = copyin(uap->msgp, &mtype, sizeof(mtype))) != 0) { in sys_msgsnd()
1121 (const char *)uap->msgp + sizeof(mtype), in sys_msgsnd()
1128 void *msgp; member
1136 kern_msgrcv(struct thread *td, int msqid, void *msgp, size_t msgsz, long msgtyp, in kern_msgrcv() argument
1370 error = copyout(&msgpool[next * msginfo.msgssz], msgp, tlen); in kern_msgrcv()
[all …]
H A Dsystrace_args.c1094 uarg[a++] = (intptr_t)p->msgp; /* const void * */ in systrace_args()
1104 uarg[a++] = (intptr_t)p->msgp; /* void * */ in systrace_args()
/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/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.c2949 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
2959 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/contrib/ntp/include/
H A Dadjtime.h45 struct msgbuf msgp; 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.cpp446 int ExtractRecvmsgFDs(void *msgp, int *fds, int nfd) { in ExtractRecvmsgFDs() argument
448 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
1306 __sanitizer_syscall_post_impl_msgrcv(res, (long)(msqid), (long)(msgp), \
2754 void __sanitizer_syscall_pre_impl_msgsnd(long msqid, long msgp, long msgsz,
2756 void __sanitizer_syscall_post_impl_msgsnd(long res, long msqid, long msgp,
[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
1194 res, (long long)(msqid), (long long)(msgp), (long long)(msgsz), \
3745 void __sanitizer_syscall_pre_impl_msgsnd(long long msqid, long long msgp,
3748 long long msgp, long long msgsz,
[all …]
/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) {
2283 if (msgp)
2284 PRE_READ(msgp, msgsz);
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) {
2296 if (msgp)
2297 POST_WRITE(msgp, res);
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);
3278 if (msgp)
3279 COMMON_INTERCEPTOR_READ_RANGE(ctx, msgp, sizeof(long) + msgsz);
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);
3291 COMMON_INTERCEPTOR_WRITE_RANGE(ctx, msgp, sizeof(long) + len);
/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);
/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
H A Dfreebsd32_systrace_args.c1071 uarg[a++] = (intptr_t)p->msgp; /* const void * */ in systrace_args()
1081 uarg[a++] = (intptr_t)p->msgp; /* void * */ in systrace_args()
/freebsd/sys/arm64/linux/
H A Dlinux_systrace_args.c1483 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
1494 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
/freebsd/sys/amd64/linux/
H A Dlinux_systrace_args.c617 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
627 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
/freebsd/sys/i386/linux/
H A Dlinux_systrace_args.c2980 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
2990 uarg[a++] = (intptr_t)p->msgp; /* struct l_msgbuf * */ in systrace_args()
/freebsd/sys/sys/
H A Dsysproto.h595 char msgp_l_[PADL_(const void *)]; const void * msgp; char msgp_r_[PADR_(const void *)]; member
601 char msgp_l_[PADL_(void *)]; void * msgp; char msgp_r_[PADR_(void *)]; member