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

Function freebsd32_semsys

freebsd/kern/sysv_sem.c:1845–1862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1843#ifdef COMPAT_FREEBSD32
1844
1845int
1846freebsd32_semsys(struct thread *td, struct freebsd32_semsys_args *uap)
1847{
1848
1849#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
1850 defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)
1851 AUDIT_ARG_SVIPC_WHICH(uap->which);
1852 switch (uap->which) {
1853 case 0:
1854 return (freebsd7_freebsd32_semctl(td,
1855 (struct freebsd7_freebsd32_semctl_args *)&uap->a2));
1856 default:
1857 return (sys_semsys(td, (struct semsys_args *)uap));
1858 }
1859#else
1860 return (nosys(td, NULL));
1861#endif
1862}
1863
1864#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || \
1865 defined(COMPAT_FREEBSD6) || defined(COMPAT_FREEBSD7)

Callers

nothing calls this directly

Calls 3

sys_semsysFunction · 0.85
nosysFunction · 0.85

Tested by

no test coverage detected