• Home
  • Raw
  • Download

Lines Matching refs:flags

27 static inline int mips_change_flags(int flags)  in mips_change_flags()  argument
29 int mipsflags = flags & O_ACCMODE_PORTABLE; in mips_change_flags()
30 if (flags & O_CREAT_PORTABLE) in mips_change_flags()
32 if (flags & O_EXCL_PORTABLE) in mips_change_flags()
34 if (flags & O_NOCTTY_PORTABLE) in mips_change_flags()
36 if (flags & O_TRUNC_PORTABLE) in mips_change_flags()
38 if (flags & O_APPEND_PORTABLE) in mips_change_flags()
40 if (flags & O_NONBLOCK_PORTABLE) in mips_change_flags()
42 if (flags & O_SYNC_PORTABLE) in mips_change_flags()
44 if (flags & FASYNC_PORTABLE) in mips_change_flags()
46 if (flags & O_DIRECT_PORTABLE) in mips_change_flags()
48 if (flags & O_LARGEFILE_PORTABLE) in mips_change_flags()
50 if (flags & O_DIRECTORY_PORTABLE) in mips_change_flags()
52 if (flags & O_NOFOLLOW_PORTABLE) in mips_change_flags()
54 if (flags & O_NOATIME_PORTABLE) in mips_change_flags()
56 if (flags & O_NDELAY_PORTABLE) in mips_change_flags()
63 int open_portable(const char *pathname, int flags, ...) in open_portable() argument
66 flags |= O_LARGEFILE_PORTABLE; in open_portable()
68 if (flags & O_CREAT_PORTABLE) in open_portable()
72 va_start(args, flags); in open_portable()
77 return __open(pathname, mips_change_flags(flags), mode); in open_portable()
81 int openat_portable(int fd, const char *pathname, int flags, ...) in openat_portable() argument
85 flags |= O_LARGEFILE_PORTABLE; in openat_portable()
87 if (flags & O_CREAT_PORTABLE) in openat_portable()
91 va_start(args, flags); in openat_portable()
96 return __openat(fd, pathname, mips_change_flags(flags), mode); in openat_portable()