Lines Matching refs:flags
96 int open(const char* pathname, int flags, ...) { in open() argument
97 if (__builtin_constant_p(flags)) { in open()
98 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) { in open()
107 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) { in open()
108 return __open_2(pathname, flags); in open()
111 return __open_real(pathname, flags, __builtin_va_arg_pack()); in open()
115 int openat(int dirfd, const char* pathname, int flags, ...) { in openat() argument
116 if (__builtin_constant_p(flags)) { in openat()
117 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) { in openat()
126 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) { in openat()
127 return __openat_2(dirfd, pathname, flags); in openat()
130 return __openat_real(dirfd, pathname, flags, __builtin_va_arg_pack()); in openat()