std1.0.0-beta-7 SafeC docs

std :: sched::io_nb

Function std::fd_open_nb

#include <std/sched/io_nb.h> source · definition

int fd_open_nb(const &char path, int flags, int mode)

open() in non-blocking mode where the platform supports it for regular files (BSD/Linux: O_NONBLOCK; Windows: no equivalent — see io_nb_win32.sc). Returns fd, or -1 on failure.