Home
last modified time | relevance | path

Searched refs:open_file (Results 1 – 25 of 49) sorted by relevance

12

/freebsd/stand/libsa/
H A Dstand.h95 struct open_file;
107 int (*fo_open)(const char *path, struct open_file *f);
108 int (*fo_close)(struct open_file *f);
109 int (*fo_read)(struct open_file *f, void *buf,
111 int (*fo_write)(struct open_file *f, const void *buf,
113 off_t (*fo_seek)(struct open_file *f, off_t offset, int where);
114 int (*fo_stat)(struct open_file *f, struct stat *sb);
115 int (*fo_readdir)(struct open_file *f, struct dirent *d);
116 int (*fo_preload)(struct open_file *f);
159 int (*dv_open)(struct open_file *f, ...);
[all …]
H A Dnullfs.c66 int null_open (const char *path, struct open_file *f) in null_open()
71 int null_close(struct open_file *f) in null_close()
76 int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) in null_read()
81 int null_write (struct open_file *f, const void *buf, size_t size, size_t *resid) in null_write()
86 off_t null_seek (struct open_file *f, off_t offset, int where) in null_seek()
92 int null_stat (struct open_file *f, struct stat *sb) in null_stat()
97 int null_readdir(struct open_file *f, struct dirent *d) in null_readdir()
H A Dcd9660.c61 static int buf_read_file(struct open_file *f, char **buf_p,
63 static int cd9660_open(const char *path, struct open_file *f);
64 static int cd9660_close(struct open_file *f);
65 static int cd9660_read(struct open_file *f, void *buf, size_t size,
67 static off_t cd9660_seek(struct open_file *f, off_t offset, int where);
68 static int cd9660_stat(struct open_file *f, struct stat *sb);
69 static int cd9660_readdir(struct open_file *f, struct dirent *d);
72 static int dirmatch(struct open_file *f, const char *path,
74 static int rrip_check(struct open_file *f, struct iso_directory_record *dp,
76 static char *rrip_lookup_name(struct open_file *f,
[all …]
H A Dufs.c83 static int ufs_open(const char *path, struct open_file *f);
84 static int ufs_write(struct open_file *f, const void *buf, size_t size,
86 static int ufs_close(struct open_file *f);
87 static int ufs_read(struct open_file *f, void *buf, size_t size, size_t *resid);
88 static off_t ufs_seek(struct open_file *f, off_t offset, int where);
89 static int ufs_stat(struct open_file *f, struct stat *sb);
90 static int ufs_readdir(struct open_file *f, struct dirent *d);
140 static int read_inode(ino_t, struct open_file *);
141 static int block_map(struct open_file *, ufs2_daddr_t, ufs2_daddr_t *);
142 static int buf_read_file(struct open_file *, cha
[all...]
H A Dbzipfs.c37 struct open_file { struct
62 static int bzf_open(const char *path, struct open_file *f); argument
63 static int bzf_close(struct open_file *f);
64 static int bzf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
65 static off_t bzf_seek(struct open_file *f, off_t offset, int where);
66 static int bzf_stat(struct open_file *f, struct stat *sb);
147 bzf_open(const char *fname, struct open_file *f) in bzf_open()
216 bzf_close(struct open_file *f) in bzf_close()
227 bzf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in bzf_read()
263 bzf_rewind(struct open_file *f) in bzf_rewind()
[all …]
H A Dgzipfs.c45 static int zf_open(const char *path, struct open_file *f);
46 static int zf_close(struct open_file *f);
47 static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
48 static off_t zf_seek(struct open_file *f, off_t offset, int where);
49 static int zf_stat(struct open_file *f, struct stat *sb);
156 zf_open(const char *fname, struct open_file *f) in zf_open()
225 zf_close(struct open_file *f) in zf_close()
236 zf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in zf_read()
272 zf_rewind(struct open_file *f) in zf_rewind()
287 zf_seek(struct open_file *f, off_t offset, int where) in zf_seek()
[all …]
H A Dsplitfs.c45 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);
101 splitfs_open(const char *fname, struct open_file *f) in splitfs_open()
178 splitfs_close(struct open_file *f) in splitfs_close()
190 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in splitfs_read()
232 splitfs_seek(struct open_file *f, off_t offset, int where) in splitfs_seek()
301 splitfs_stat(struct open_file *f, struct stat *sb) in splitfs_stat()
H A Dopen.c83 struct open_file *
86 struct open_file *f; in fd2open_file()
102 o_gethandle(struct open_file **ptr) in o_gethandle()
104 struct open_file *f, *last; in o_gethandle()
128 o_rainit(struct open_file *f) in o_rainit()
139 struct open_file *f; in open()
H A Dext2fs.c94 static int ext2fs_open(const char *path, struct open_file *f);
95 static int ext2fs_close(struct open_file *f);
96 static int ext2fs_read(struct open_file *f, void *buf,
98 static off_t ext2fs_seek(struct open_file *f, off_t offset, int where);
99 static int ext2fs_stat(struct open_file *f, struct stat *sb);
100 static int ext2fs_readdir(struct open_file *f, struct dirent *d);
318 static int read_inode(ino_t inumber, struct open_file *f);
319 static int block_map(struct open_file *f, daddr_t file_block,
321 static int buf_read_file(struct open_file *f, char **buf_p,
323 static int search_directory(char *name, struct open_file *f,
[all …]
H A Dpkgfs.c40 static int pkg_open(const char *, struct open_file *);
41 static int pkg_close(struct open_file *);
42 static int pkg_read(struct open_file *, void *, size_t, size_t *);
43 static off_t pkg_seek(struct open_file *, off_t, int);
44 static int pkg_stat(struct open_file *, struct stat *);
45 static int pkg_readdir(struct open_file *, struct dirent *);
199 pkg_open_follow(const char *fn, struct open_file *f, int lnks) in pkg_open_follow()
261 pkg_open(const char *fn, struct open_file *f) in pkg_open()
267 pkg_close(struct open_file *f) in pkg_close()
286 pkg_read(struct open_file *f, void *buf, size_t size, size_t *res) in pkg_read()
[all …]
H A Dtftp.c65 static int tftp_open(const char *, struct open_file *);
66 static int tftp_close(struct open_file *);
68 static int tftp_read(struct open_file *, void *, size_t, size_t *);
69 static off_t tftp_seek(struct open_file *, off_t, int);
71 static int tftp_stat(struct open_file *, struct stat *);
72 static int tftp_preload(struct open_file *);
441 tftp_open(const char *path, struct open_file *f) in tftp_open()
505 tftp_read(struct open_file *f, void *addr, size_t size, in tftp_read()
604 tftp_close(struct open_file *f) in tftp_close()
623 tftp_stat(struct open_file *f, struct stat *sb) in tftp_stat()
[all …]
H A Dnfs.c123 int nfs_open(const char *path, struct open_file *f);
124 static int nfs_close(struct open_file *f);
125 static int nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid);
126 static off_t nfs_seek(struct open_file *f, off_t offset, int where);
127 static int nfs_stat(struct open_file *f, struct stat *sb);
128 static int nfs_readdir(struct open_file *f, struct dirent *d);
462 nfs_open(const char *upath, struct open_file *f) in nfs_open()
657 nfs_close(struct open_file *f) in nfs_close()
676 nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in nfs_read()
717 nfs_seek(struct open_file *f, off_t offset, int where) in nfs_seek()
[all …]
H A Ddosfs.c53 static int dos_open(const char *path, struct open_file *fd);
54 static int dos_close(struct open_file *fd);
55 static int dos_read(struct open_file *fd, void *buf, size_t size, size_t *resid);
56 static off_t dos_seek(struct open_file *fd, off_t offset, int whence);
57 static int dos_stat(struct open_file *fd, struct stat *sb);
58 static int dos_readdir(struct open_file *fd, struct dirent *d);
221 dos_mount_impl(DOS_FS *fs, struct open_file *fd) in dos_mount_impl()
272 struct open_file *f; in dos_mount()
344 dos_open(const char *path, struct open_file *fd) in dos_open()
405 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read()
[all …]
/freebsd/stand/userboot/userboot/
H A Dhost.c45 host_open(const char *upath, struct open_file *f) in host_open()
55 host_close(struct open_file *f) in host_close()
68 host_read(struct open_file *f, void *start, size_t size, size_t *resid) in host_read()
75 host_seek(struct open_file *f, off_t offset, int where) in host_seek()
82 host_stat(struct open_file *f, struct stat *sb) in host_stat()
90 host_readdir(struct open_file *f, struct dirent *d) in host_readdir()
133 host_dev_open(struct open_file *f, ...) in host_dev_open()
140 host_dev_close(struct open_file *f) in host_dev_close()
H A Duserboot_disk.c57 static int userdisk_open(struct open_file *f, ...);
58 static int userdisk_close(struct open_file *f);
59 static int userdisk_ioctl(struct open_file *f, u_long cmd, void *data);
157 userdisk_open(struct open_file *f, ...) in userdisk_open()
176 userdisk_close(struct open_file *f) in userdisk_close()
236 userdisk_ioctl(struct open_file *f, u_long cmd, void *data) in userdisk_ioctl()
/freebsd/stand/efi/libefi/
H A Defihttp.c56 static int efihttp_dev_open(struct open_file *f, ...);
57 static int efihttp_dev_close(struct open_file *f);
59 static int efihttp_fs_open(const char *path, struct open_file *f);
60 static int efihttp_fs_close(struct open_file *f);
61 static int efihttp_fs_read(struct open_file *f, void *buf, size_t size,
63 static int efihttp_fs_write(struct open_file *f, const void *buf, size_t size,
65 static off_t efihttp_fs_seek(struct open_file *f, off_t offset, int where);
66 static int efihttp_fs_stat(struct open_file *f, struct stat *sb);
67 static int efihttp_fs_readdir(struct open_file *f, struct dirent *d);
226 efihttp_dev_open(struct open_file *f, ...) in efihttp_dev_open()
[all …]
/freebsd/stand/kboot/kboot/
H A Dhostfs.c50 hostfs_open(const char *fn, struct open_file *f) in hostfs_open()
97 hostfs_close(struct open_file *f) in hostfs_close()
109 hostfs_read(struct open_file *f, void *start, size_t size, size_t *resid) in hostfs_read()
123 hostfs_seek(struct open_file *f, off_t offset, int whence) in hostfs_seek()
153 hostfs_stat(struct open_file *f, struct stat *sb) in hostfs_stat()
190 hostfs_readdir(struct open_file *f, struct dirent *d) in hostfs_readdir()
259 host_dev_open(struct open_file *f, ...) in host_dev_close()
265 host_dev_close(struct open_file *f) in host_dev_strategy()
/freebsd/stand/usb/storage/
H A Dumass_loader.c46 static int umass_disk_open(struct open_file *,...);
47 static int umass_disk_close(struct open_file *);
49 static int umass_disk_ioctl(struct open_file *, u_long, void *);
125 umass_disk_open(struct open_file *f,...) in umass_disk_open()
142 umass_disk_ioctl(struct open_file *f, u_long cmd, void *buf) in umass_disk_ioctl()
176 umass_disk_close(struct open_file *f) in umass_disk_close()
/freebsd/stand/libofw/
H A Dofw_disk.c45 static int ofwd_open(struct open_file *f, ...);
46 static int ofwd_close(struct open_file *f);
47 static int ofwd_ioctl(struct open_file *f, u_long cmd, void *data);
123 ofwd_open(struct open_file *f, ...) in ofwd_open()
148 ofwd_close(struct open_file *f) in ofwd_close()
162 ofwd_ioctl(struct open_file *f, u_long cmd, void *data) in ofwd_ioctl()
/freebsd/stand/libsa/geli/
H A Dgelidev.c38 static int geli_dev_open(struct open_file *f, ...);
39 static int geli_dev_close(struct open_file *f);
40 static int geli_dev_ioctl(struct open_file *, u_long, void *);
203 geli_dev_open(struct open_file *f, ...) in geli_dev_open()
215 geli_dev_close(struct open_file *f) in geli_dev_close()
234 geli_dev_ioctl(struct open_file *f, u_long cmd, void *data) in geli_dev_ioctl()
290 geli_probe_and_attach(struct open_file *f) in geli_probe_and_attach()
/freebsd/stand/common/
H A Dmd.c61 static int md_open(struct open_file *, ...);
62 static int md_close(struct open_file *);
120 md_open(struct open_file *f, ...) in md_open()
136 md_close(struct open_file *f) in md_close()
H A Dvdisk.c38 static int vdisk_open(struct open_file *, ...);
39 static int vdisk_close(struct open_file *);
40 static int vdisk_ioctl(struct open_file *, u_long, void *);
293 vdisk_open(struct open_file *f, ...) in vdisk_open()
318 vdisk_close(struct open_file *f) in vdisk_close()
337 vdisk_ioctl(struct open_file *f, u_long cmd, void *data) in vdisk_ioctl()
H A Ddevopen.c37 devopen(struct open_file *f, const char *fname, const char **file) in devopen()
70 devclose(struct open_file *f) in devclose()
H A Ddev_net.c77 static int net_open(struct open_file *, ...);
78 static int net_close(struct open_file *);
118 net_open(struct open_file *f, ...) in net_open()
198 net_close(struct open_file *f) in net_close()
/freebsd/stand/uboot/
H A Duboot_disk.c74 static int stor_open(struct open_file *, ...);
75 static int stor_close(struct open_file *);
76 static int stor_ioctl(struct open_file *f, u_long cmd, void *data);
175 stor_open(struct open_file *f, ...) in stor_open()
209 stor_close(struct open_file *f) in stor_close()
274 stor_ioctl(struct open_file *f, u_long cmd, void *data) in stor_ioctl()

12