Home | History | Annotate | Download | only in include

Lines Matching refs:flags

48 extern int  unlinkat(int dirfd, const char *pathname, int flags);
55 extern int __open_real(const char *pathname, int flags, ...)
60 int open(const char *pathname, int flags, ...) {
61 if (__builtin_constant_p(flags)) {
62 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
71 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) {
72 return __open_2(pathname, flags);
75 return __open_real(pathname, flags, __builtin_va_arg_pack());
79 extern int __openat_real(int dirfd, const char *pathname, int flags, ...)
83 int openat(int dirfd, const char *pathname, int flags, ...) {
84 if (__builtin_constant_p(flags)) {
85 if ((flags & O_CREAT) && __builtin_va_arg_pack_len() == 0) {
94 if ((__builtin_va_arg_pack_len() == 0) && !__builtin_constant_p(flags)) {
95 return __openat_2(dirfd, pathname, flags);
98 return __openat_real(dirfd, pathname, flags, __builtin_va_arg_pack());