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