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