| 1513 | } |
| 1514 | |
| 1515 | int |
| 1516 | ff_shutdown(int s, int how) |
| 1517 | { |
| 1518 | int rc; |
| 1519 | |
| 1520 | struct shutdown_args sa = { |
| 1521 | .s = s, |
| 1522 | .how = how, |
| 1523 | }; |
| 1524 | if ((rc = sys_shutdown(curthread, &sa))) |
| 1525 | goto kern_fail; |
| 1526 | |
| 1527 | return (rc); |
| 1528 | kern_fail: |
| 1529 | ff_os_errno(rc); |
| 1530 | return (-1); |
| 1531 | } |
| 1532 | |
| 1533 | int |
| 1534 | ff_sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp, |
no test coverage detected