| 1531 | } |
| 1532 | |
| 1533 | int |
| 1534 | ff_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); |
| 1547 | kern_fail: |
| 1548 | ff_os_errno(rc); |
| 1549 | return (-1); |
| 1550 | } |
| 1551 | |
| 1552 | int |
| 1553 | ff_select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, |
no test coverage detected