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