Lines Matching refs:f
45 static int splitfs_open(const char *path, struct open_file *f);
46 static int splitfs_close(struct open_file *f);
47 static int splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid);
48 static off_t splitfs_seek(struct open_file *f, off_t offset, int where);
49 static int splitfs_stat(struct open_file *f, struct stat *sb);
102 splitfs_open(const char *fname, struct open_file *f) in splitfs_open() argument
110 if (f->f_flags != F_READ) in splitfs_open()
174 f->f_fsdata = sf; in splitfs_open()
179 splitfs_close(struct open_file *f) in splitfs_close() argument
184 sf = (struct split_file *)f->f_fsdata; in splitfs_close()
191 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in splitfs_read() argument
197 sf = (struct split_file *)f->f_fsdata; in splitfs_read()
233 splitfs_seek(struct open_file *f, off_t offset, int where) in splitfs_seek() argument
240 sf = (struct split_file *)f->f_fsdata; in splitfs_seek()
274 errno = splitfs_read(f, tmp, min(seek_by, SEEK_BUF), &resid); in splitfs_seek()
302 splitfs_stat(struct open_file *f, struct stat *sb) in splitfs_stat() argument
305 struct split_file *sf = (struct split_file *)f->f_fsdata; in splitfs_stat()