Lines Matching refs:openflags
56 struct openflags { struct
67 #define OPENFLAGS() ((struct openflags) { .r = 0, .w = 0, .s = 0, .c = 0, \ argument
70 static inline struct openflags of_read(struct openflags flags) in of_read()
76 static inline struct openflags of_write(struct openflags flags) in of_write()
82 static inline struct openflags of_rdwr(struct openflags flags) in of_rdwr()
87 static inline struct openflags of_set_rw(struct openflags flags, int r, int w) in of_set_rw()
94 static inline struct openflags of_sync(struct openflags flags) in of_sync()
100 static inline struct openflags of_create(struct openflags flags) in of_create()
106 static inline struct openflags of_trunc(struct openflags flags) in of_trunc()
112 static inline struct openflags of_append(struct openflags flags) in of_append()
118 static inline struct openflags of_excl(struct openflags flags) in of_excl()
124 static inline struct openflags of_cloexec(struct openflags flags) in of_cloexec()
142 extern int os_open_file(const char *file, struct openflags flags, int mode);
160 extern int os_file_mode(const char *file, struct openflags *mode_out);