Lines Matching refs:flags
48 int flags = fcntl(fd, F_GETFL, 0); in fdevent_socket_nb_cloexec_init() local
50 use_sock_nonblock = (-1 != flags && (flags & O_NONBLOCK)); in fdevent_socket_nb_cloexec_init()
174 int fdevent_open_cloexec(const char *pathname, int symlinks, int flags, mode_t mode) { in fdevent_open_cloexec() argument
175 if (!symlinks) flags |= O_NOFOLLOW; in fdevent_open_cloexec()
177 return open(pathname, flags | O_CLOEXEC | FDEVENT_O_FLAGS, mode); in fdevent_open_cloexec()
179 int fd = open(pathname, flags | FDEVENT_O_FLAGS, mode); in fdevent_open_cloexec()
205 int flags = O_RDONLY; in fdevent_open_dirname() local
207 flags |= O_DIRECTORY; in fdevent_open_dirname()
210 dfd = fdevent_open_cloexec(dname, symlinks, flags, 0); in fdevent_open_dirname()
247 int fdevent_mkostemp(char *path, int flags) { in fdevent_mkostemp() argument
254 | flags | _O_BINARY | _O_NOINHERIT, in fdevent_mkostemp()
259 return mkostemp(path, O_CLOEXEC | flags); in fdevent_mkostemp()
269 if (flags && 0 != fcntl(fd, F_SETFL, fcntl(fd, F_GETFL, 0) | flags)) { in fdevent_mkostemp()
483 const int flags = nb ? WNOHANG : 0; in fdevent_waitpid() local
485 do { rv = waitpid(pid, status, flags); } while (-1 == rv && errno == EINTR); in fdevent_waitpid()