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

Function freebsd32_msgsys

freebsd/kern/sysv_msg.c:1675–1698  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1673
1674#ifdef COMPAT_FREEBSD32
1675int
1676freebsd32_msgsys(struct thread *td, struct freebsd32_msgsys_args *uap)
1677{
1678
1679#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
1680 defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
1681 AUDIT_ARG_SVIPC_WHICH(uap->which);
1682 switch (uap->which) {
1683 case 0:
1684 return (freebsd7_freebsd32_msgctl(td,
1685 (struct freebsd7_freebsd32_msgctl_args *)&uap->a2));
1686 case 2:
1687 return (freebsd32_msgsnd(td,
1688 (struct freebsd32_msgsnd_args *)&uap->a2));
1689 case 3:
1690 return (freebsd32_msgrcv(td,
1691 (struct freebsd32_msgrcv_args *)&uap->a2));
1692 default:
1693 return (sys_msgsys(td, (struct msgsys_args *)uap));
1694 }
1695#else
1696 return (nosys(td, NULL));
1697#endif
1698}
1699
1700#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
1701 defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)

Callers

nothing calls this directly

Calls 5

freebsd32_msgsndFunction · 0.85
freebsd32_msgrcvFunction · 0.85
sys_msgsysFunction · 0.85
nosysFunction · 0.85

Tested by

no test coverage detected