• Home
  • Raw
  • Download

Lines Matching refs:flags

46 #define __open_modes_useful(flags) (((flags) & O_CREAT) || ((flags) & O_TMPFILE) == O_TMPFILE)  argument
49 int open(const char* pathname, int flags, mode_t modes, ...) __overloadable
59 int open(const char* const __pass_object_size pathname, int flags) in open() argument
61 __clang_error_if(__open_modes_useful(flags), "'open' " __open_too_few_args_error) { in open()
63 return __open_2(pathname, flags); in open()
65 return __open_real(pathname, flags); in open()
70 int open(const char* const __pass_object_size pathname, int flags, mode_t modes) in open() argument
72 __clang_warning_if(!__open_modes_useful(flags) && modes, in open()
74 return __open_real(pathname, flags, modes); in open()
78 int openat(int dirfd, const char* pathname, int flags, mode_t modes, ...)
83 int openat(int dirfd, const char* const __pass_object_size pathname, int flags) in openat() argument
85 __clang_error_if(__open_modes_useful(flags), "'openat' " __open_too_few_args_error) { in openat()
87 return __openat_2(dirfd, pathname, flags); in openat()
89 return __openat_real(dirfd, pathname, flags); in openat()
94 int openat(int dirfd, const char* const __pass_object_size pathname, int flags, mode_t modes) in openat() argument
96 __clang_warning_if(!__open_modes_useful(flags) && modes, in openat()
98 return __openat_real(dirfd, pathname, flags, modes); in openat()
104 int open64(const char* pathname, int flags, mode_t modes, ...) __overloadable
108 int open64(const char* const __pass_object_size pathname, int flags) in open64() argument
110 __clang_error_if(__open_modes_useful(flags), "'open64' " __open_too_few_args_error) { in open64()
111 return open(pathname, flags); in open64()
115 int open64(const char* const __pass_object_size pathname, int flags, mode_t modes) in open64() argument
117 __clang_warning_if(!__open_modes_useful(flags) && modes, in open64()
119 return open(pathname, flags, modes); in open64()
123 int openat64(int dirfd, const char* pathname, int flags, mode_t modes, ...)
128 int openat64(int dirfd, const char* const __pass_object_size pathname, int flags) in openat64() argument
130 __clang_error_if(__open_modes_useful(flags), "'openat64' " __open_too_few_args_error) { in openat64()
131 return openat(dirfd, pathname, flags); in openat64()
135 int openat64(int dirfd, const char* const __pass_object_size pathname, int flags, mode_t modes) in openat64() argument
137 __clang_warning_if(!__open_modes_useful(flags) && modes, in openat64()
139 return openat(dirfd, pathname, flags, modes); in openat64()