Lines Matching refs:open_flags
1277 int open_flags = fi->flags; in pf_open() local
1278 if (open_flags & O_WRONLY) { in pf_open()
1279 open_flags &= ~O_WRONLY; in pf_open()
1280 open_flags |= O_RDWR; in pf_open()
1283 if (open_flags & O_APPEND) { in pf_open()
1284 open_flags &= ~O_APPEND; in pf_open()
1287 const int fd = open(io_path.c_str(), open_flags); in pf_open()
1817 int open_flags = fi->flags; in pf_create() local
1818 if (open_flags & O_WRONLY) { in pf_create()
1819 open_flags &= ~O_WRONLY; in pf_create()
1820 open_flags |= O_RDWR; in pf_create()
1823 if (open_flags & O_APPEND) { in pf_create()
1824 open_flags &= ~O_APPEND; in pf_create()
1828 int fd = open(child_path.c_str(), open_flags, mode); in pf_create()