Lines Matching refs:flags
72 static inline struct openflags of_read(struct openflags flags) in of_read() argument
74 flags.r = 1; in of_read()
75 return flags; in of_read()
78 static inline struct openflags of_write(struct openflags flags) in of_write() argument
80 flags.w = 1; in of_write()
81 return flags; in of_write()
84 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr() argument
86 return of_read(of_write(flags)); in of_rdwr()
89 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw() argument
91 flags.r = r; in of_set_rw()
92 flags.w = w; in of_set_rw()
93 return flags; in of_set_rw()
96 static inline struct openflags of_sync(struct openflags flags) in of_sync() argument
98 flags.s = 1; in of_sync()
99 return flags; in of_sync()
102 static inline struct openflags of_create(struct openflags flags) in of_create() argument
104 flags.c = 1; in of_create()
105 return flags; in of_create()
108 static inline struct openflags of_trunc(struct openflags flags) in of_trunc() argument
110 flags.t = 1; in of_trunc()
111 return flags; in of_trunc()
114 static inline struct openflags of_append(struct openflags flags) in of_append() argument
116 flags.a = 1; in of_append()
117 return flags; in of_append()
120 static inline struct openflags of_excl(struct openflags flags) in of_excl() argument
122 flags.e = 1; in of_excl()
123 return flags; in of_excl()
126 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec() argument
128 flags.cl = 1; in of_cloexec()
129 return flags; in of_cloexec()
144 extern int os_open_file(const char *file, struct openflags flags, int mode);
213 unsigned int flags, unsigned long *stack_out);