nc 0.9.7

Access system calls directly
Documentation
1
2
3
4
5
pub unsafe fn pid_shutdown_sockets(pid: pid_t, level: i32) -> Result<(), Errno> {
    let pid = pid as usize;
    let level = level as usize;
    syscall2(SYS_PID_SHUTDOWN_SOCKETS, pid, level).map(drop)
}