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