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