Lines Matching defs:open_file
91 struct open_file;
103 int (*fo_open)(const char *path, struct open_file *f);
104 int (*fo_close)(struct open_file *f);
105 int (*fo_read)(struct open_file *f, void *buf,
107 int (*fo_write)(struct open_file *f, void *buf,
109 off_t (*fo_seek)(struct open_file *f, off_t offset, int where);
110 int (*fo_stat)(struct open_file *f, struct stat *sb);
111 int (*fo_readdir)(struct open_file *f, struct dirent *d);
141 int (*dv_open)(struct open_file *f, ...);
142 int (*dv_close)(struct open_file *f);
143 int (*dv_ioctl)(struct open_file *f, u_long cmd, void *data);
155 struct open_file {
169 extern struct open_file files[];
341 extern int noioctl(struct open_file *, u_long, void *);
344 extern int null_open(const char *path, struct open_file *f);
345 extern int null_close(struct open_file *f);
346 extern int null_read(struct open_file *f, void *buf, size_t size, size_t *resid);
347 extern int null_write(struct open_file *f, void *buf, size_t size, size_t *resid);
348 extern off_t null_seek(struct open_file *f, off_t offset, int where);
349 extern int null_stat(struct open_file *f, struct stat *sb);
350 extern int null_readdir(struct open_file *f, struct dirent *d);
360 extern int devopen(struct open_file *, const char *, const char **);
361 extern int devclose(struct open_file *f);