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