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

Function ff_shutdown

lib/ff_syscall_wrapper.c:1515–1531  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1513}
1514
1515int
1516ff_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);
1528kern_fail:
1529 ff_os_errno(rc);
1530 return (-1);
1531}
1532
1533int
1534ff_sysctl(const int *name, u_int namelen, void *oldp, size_t *oldlenp,

Callers 2

shutdownFunction · 0.85
ff_sys_shutdownFunction · 0.85

Calls 2

sys_shutdownFunction · 0.85
ff_os_errnoFunction · 0.85

Tested by

no test coverage detected