MCPcopy Create free account
hub / github.com/F-Stack/f-stack / freebsd32_msgrcv

Function freebsd32_msgrcv

freebsd/kern/sysv_msg.c:1808–1823  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1806}
1807
1808int
1809freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap)
1810{
1811 void *msgp;
1812 long mtype;
1813 int32_t mtype32;
1814 int error;
1815
1816 msgp = PTRIN(uap->msgp);
1817 if ((error = kern_msgrcv(td, uap->msqid,
1818 (char *)msgp + sizeof(mtype32), uap->msgsz,
1819 uap->msgtyp, uap->msgflg, &mtype)) != 0)
1820 return (error);
1821 mtype32 = (int32_t)mtype;
1822 return (copyout(&mtype32, msgp, sizeof(mtype32)));
1823}
1824#endif
1825
1826#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \

Callers 1

freebsd32_msgsysFunction · 0.85

Calls 2

kern_msgrcvFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected