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