Lines Matching refs:openflags
58 struct openflags { struct
69 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
72 static inline struct openflags of_read(struct openflags flags) in of_read()
78 static inline struct openflags of_write(struct openflags flags) in of_write()
84 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
89 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
96 static inline struct openflags of_sync(struct openflags flags) in of_sync()
102 static inline struct openflags of_create(struct openflags flags) in of_create()
108 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
114 static inline struct openflags of_append(struct openflags flags) in of_append()
120 static inline struct openflags of_excl(struct openflags flags) in of_excl()
126 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec()
144 extern int os_open_file(const char *file, struct openflags flags, int mode);
162 extern int os_file_mode(const char *file, struct openflags *mode_out);