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

Function freebsd32_msgsnd

freebsd/kern/sysv_msg.c:1791–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1789}
1790
1791int
1792freebsd32_msgsnd(struct thread *td, struct freebsd32_msgsnd_args *uap)
1793{
1794 const void *msgp;
1795 long mtype;
1796 int32_t mtype32;
1797 int error;
1798
1799 msgp = PTRIN(uap->msgp);
1800 if ((error = copyin(msgp, &mtype32, sizeof(mtype32))) != 0)
1801 return (error);
1802 mtype = mtype32;
1803 return (kern_msgsnd(td, uap->msqid,
1804 (const char *)msgp + sizeof(mtype32),
1805 uap->msgsz, uap->msgflg, mtype));
1806}
1807
1808int
1809freebsd32_msgrcv(struct thread *td, struct freebsd32_msgrcv_args *uap)

Callers 1

freebsd32_msgsysFunction · 0.85

Calls 2

kern_msgsndFunction · 0.85
copyinFunction · 0.50

Tested by

no test coverage detected