Lines Matching refs:openflags
60 struct openflags { struct
71 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
74 static inline struct openflags of_read(struct openflags flags) in of_read()
80 static inline struct openflags of_write(struct openflags flags) in of_write()
86 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
91 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
98 static inline struct openflags of_sync(struct openflags flags) in of_sync()
104 static inline struct openflags of_create(struct openflags flags) in of_create()
110 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
116 static inline struct openflags of_append(struct openflags flags) in of_append()
122 static inline struct openflags of_excl(struct openflags flags) in of_excl()
128 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec()
146 extern int os_open_file(const char *file, struct openflags flags, int mode);
166 extern int os_file_mode(const char *file, struct openflags *mode_out);