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

Function ff_sysctl

lib/ff_syscall_wrapper.c:1533–1550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1531}
1532
1533int
1534ff_sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,
1535 const void *newp, size_t newlen)
1536{
1537 int rc;
1538 size_t retval;
1539
1540 rc = userland_sysctl(curthread, __DECONST(int *, name), namelen, oldp, oldlenp,
1541 1, __DECONST(void *, newp), newlen, &retval, 0);
1542 if (rc)
1543 goto kern_fail;
1544 if (oldlenp)
1545 *oldlenp = retval;
1546 return (0);
1547kern_fail:
1548 ff_os_errno(rc);
1549 return (-1);
1550}
1551
1552int
1553ff_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,

Callers 1

handle_sysctl_msgFunction · 0.85

Calls 2

userland_sysctlFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected