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