#include #include #include #include "io_internal.h" void io_closeonexec(int64 d) { fcntl(d,F_SETFL,fcntl(d,F_GETFL,0) | FD_CLOEXEC); }