ref: e61060a5fe59b10d8f68e75eb5e5380d8a1b29e4 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; }