Lines Matching refs:openflags
65 struct openflags { struct
76 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
79 static inline struct openflags of_read(struct openflags flags) in of_read()
85 static inline struct openflags of_write(struct openflags flags) in of_write()
91 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
96 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
103 static inline struct openflags of_sync(struct openflags flags) in of_sync()
109 static inline struct openflags of_create(struct openflags flags) in of_create()
115 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
121 static inline struct openflags of_append(struct openflags flags) in of_append()
127 static inline struct openflags of_excl(struct openflags flags) in of_excl()
133 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec()
151 extern int os_open_file(const char *file, struct openflags flags, int mode);
172 extern int os_file_mode(const char *file, struct openflags *mode_out);