Lines Matching refs:openflags
59 struct openflags { struct
70 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
73 static inline struct openflags of_read(struct openflags flags) in of_read()
79 static inline struct openflags of_write(struct openflags flags) in of_write()
85 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
90 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
97 static inline struct openflags of_sync(struct openflags flags) in of_sync()
103 static inline struct openflags of_create(struct openflags flags) in of_create()
109 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
115 static inline struct openflags of_append(struct openflags flags) in of_append()
121 static inline struct openflags of_excl(struct openflags flags) in of_excl()
127 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec()
145 extern int os_open_file(const char *file, struct openflags flags, int mode);
165 extern int os_file_mode(const char *file, struct openflags *mode_out);