ref: 50bdbb8f48b7bcfc05f201c4e1bf04d09b76f139 dir: /sys/src/ape/lib/bsd/shutdown.c/
#include <sys/types.h> #include <unistd.h> int shutdown(int fd, int how) { if(how == 2) close(fd); return 0; }