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