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