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

Function sys_msgsys

freebsd/kern/sysv_msg.c:1848–1858  ·  view source on GitHub ↗

* Entry point for all MSG calls. * * XXX actually varargs. * struct msgsys_args { * int which; * int a2; * int a3; * int a4; * int a5; * int a6; * } *uap; */

Source from the content-addressed store, hash-verified

1846 * } *uap;
1847 */
1848int
1849sys_msgsys(struct thread *td, struct msgsys_args *uap)
1850{
1851 int error;
1852
1853 AUDIT_ARG_SVIPC_WHICH(uap->which);
1854 if (uap->which < 0 || uap->which >= nitems(msgcalls))
1855 return (EINVAL);
1856 error = (*msgcalls[uap->which])(td, &uap->a2);
1857 return (error);
1858}
1859
1860#ifndef CP
1861#define CP(src, dst, fld) do { (dst).fld = (src).fld; } while (0)

Callers 1

freebsd32_msgsysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected