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