Home
last modified time | relevance | path

Searched refs:fd_flags (Results 1 – 1 of 1) sorted by relevance

/haiku/src/system/libroot/posix/glibc/libio/
H A Diofdopen.c52 int fd_flags; in _IO_new_fdopen() local
93 fd_flags = fcntl(fd, F_GETFL); in _IO_new_fdopen()
97 if (fd_flags == -1) in _IO_new_fdopen()
100 if (((fd_flags & O_ACCMODE) == O_RDONLY && !(read_write & _IO_NO_WRITES)) in _IO_new_fdopen()
101 || ((fd_flags & O_ACCMODE) == O_WRONLY && !(read_write & _IO_NO_READS))) in _IO_new_fdopen()
123 if ((posix_mode & O_APPEND) && !(fd_flags & O_APPEND)) in _IO_new_fdopen()
126 if (fcntl(fd, F_SETFL, fd_flags | O_APPEND) == -1) in _IO_new_fdopen()