Home
last modified time | relevance | path

Searched refs:msqbuf (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/sys/compat/sys/
H A Dmsg.h91 __msqid_ds13_to_native(const struct msqid_ds13 *omsqbuf, struct msqid_ds *msqbuf) in __msqid_ds13_to_native() argument
94 memset(msqbuf, 0, sizeof *msqbuf); in __msqid_ds13_to_native()
95 msqbuf->msg_perm = omsqbuf->msg_perm; in __msqid_ds13_to_native()
97 #define CVT(x) msqbuf->x = omsqbuf->x in __msqid_ds13_to_native()
109 __native_to_msqid_ds13(const struct msqid_ds *msqbuf, struct msqid_ds13 *omsqbuf) in __native_to_msqid_ds13() argument
113 omsqbuf->msg_perm = msqbuf->msg_perm; in __native_to_msqid_ds13()
115 #define CVT(x) omsqbuf->x = msqbuf->x in __native_to_msqid_ds13()
116 #define CVTI(x) omsqbuf->x = (int)msqbuf->x in __native_to_msqid_ds13()
130 omsqbuf->_msg_cbytes = msqbuf->_msg_cbytes; in __native_to_msqid_ds13()
134 __msqid_ds14_to_native(const struct msqid_ds14 *omsqbuf, struct msqid_ds *msqbuf) in __msqid_ds14_to_native() argument
[all …]
/netbsd-src/sys/compat/netbsd32/
H A Dnetbsd32_compat_14_sysv.c96 netbsd32_msqid_ds14_to_native(struct netbsd32_msqid_ds14 *omsqbuf, struct msqid_ds *msqbuf) in netbsd32_msqid_ds14_to_native() argument
99 netbsd32_ipc_perm14_to_native(&omsqbuf->msg_perm, &msqbuf->msg_perm); in netbsd32_msqid_ds14_to_native()
101 #define CVT(x) msqbuf->x = omsqbuf->x in netbsd32_msqid_ds14_to_native()
113 native_to_netbsd32_msqid_ds14(struct msqid_ds *msqbuf, struct netbsd32_msqid_ds14 *omsqbuf) in native_to_netbsd32_msqid_ds14() argument
117 native_to_netbsd32_ipc_perm14(&msqbuf->msg_perm, &omsqbuf->msg_perm); in native_to_netbsd32_msqid_ds14()
119 #define CVT(x) omsqbuf->x = msqbuf->x in native_to_netbsd32_msqid_ds14()
132 omsqbuf->msg_cbytes = msqbuf->_msg_cbytes; in native_to_netbsd32_msqid_ds14()
210 struct msqid_ds msqbuf; in compat_14_netbsd32_msgctl() local
221 netbsd32_msqid_ds14_to_native(&omsqbuf, &msqbuf); in compat_14_netbsd32_msgctl()
225 (cmd == IPC_SET || cmd == IPC_STAT) ? &msqbuf : NULL); in compat_14_netbsd32_msgctl()
[all …]
/netbsd-src/sys/kern/
H A Dsysv_msg.c453 struct msqid_ds msqbuf; in sys___msgctl50() local
459 error = copyin(SCARG(uap, buf), &msqbuf, sizeof(msqbuf)); in sys___msgctl50()
465 (cmd == IPC_SET || cmd == IPC_STAT) ? &msqbuf : NULL); in sys___msgctl50()
468 error = copyout(&msqbuf, SCARG(uap, buf), sizeof(msqbuf)); in sys___msgctl50()
474 msgctl1(struct lwp *l, int msqid, int cmd, struct msqid_ds *msqbuf) in msgctl1() argument
538 if (msqbuf->msg_qbytes > msqptr->msg_qbytes && in msgctl1()
541 KAUTH_ARG(msqbuf->msg_qbytes), in msgctl1()
546 if (msqbuf->msg_qbytes > msginfo.msgmnb) { in msgctl1()
550 msqbuf->msg_qbytes = msginfo.msgmnb; in msgctl1()
552 if (msqbuf->msg_qbytes == 0) { in msgctl1()
[all …]
/netbsd-src/sys/compat/common/
H A Dsysv_msg_14.c62 struct msqid_ds msqbuf; in compat_14_sys_msgctl() local
72 __msqid_ds14_to_native(&omsqbuf, &msqbuf); in compat_14_sys_msgctl()
76 (cmd == IPC_SET || cmd == IPC_STAT) ? &msqbuf : NULL); in compat_14_sys_msgctl()
79 __native_to_msqid_ds14(&msqbuf, &omsqbuf); in compat_14_sys_msgctl()
H A Dsysv_msg_50.c62 struct msqid_ds msqbuf; in compat_50_sys___msgctl13() local
72 __msqid_ds13_to_native(&omsqbuf, &msqbuf); in compat_50_sys___msgctl13()
76 (cmd == IPC_SET || cmd == IPC_STAT) ? &msqbuf : NULL); in compat_50_sys___msgctl13()
79 __native_to_msqid_ds13(&msqbuf, &omsqbuf); in compat_50_sys___msgctl13()