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