Home
last modified time | relevance | path

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

12

/freebsd/stand/libsa/
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 Dstand.h90 struct open_file;
103 int (*fo_close)(struct open_file *f);
104 int (*fo_read)(struct open_file *f, void *buf,
111 int (*fo_preload)(struct open_file *f);
154 int (*dv_open)(struct open_file *f, ...);
155 int (*dv_close)(struct open_file *f);
192 struct open_file { struct
203 TAILQ_ENTRY(open_file) f_link; /* next entry */ argument
209 extern struct open_file *fd2open_file(int);
410 extern int null_close(struct open_file *f);
[all …]
H A Dcd9660.c61 static int buf_read_file(struct open_file *f, char **buf_p,
64 static int cd9660_close(struct open_file *f);
68 static int cd9660_stat(struct open_file *f, struct stat *sb);
72 static int dirmatch(struct open_file *f, const char *path,
76 static char *rrip_lookup_name(struct open_file *f,
336 cd9660_open(const char *path, struct open_file *f) in cd9660_open()
500 cd9660_close(struct open_file *f) in cd9660_close()
575 cd9660_readdir(struct open_file *f, struct dirent *d) in cd9660_readdir()
640 cd9660_seek(struct open_file *f, off_t offset, int where) in cd9660_seek()
661 cd9660_stat(struct open_file *f, struct stat *sb) in cd9660_stat()
[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);
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()
263 bzf_rewind(struct open_file *f) in bzf_rewind()
307 bzf_seek(struct open_file *f, off_t offset, int where) in bzf_seek()
349 bzf_stat(struct open_file *f, struct stat *sb) in bzf_stat()
[all …]
H A Dufs.c86 static int ufs_close(struct open_file *f);
143 static int read_inode(ino_t, struct open_file *);
161 read_inode(ino_t inumber, struct open_file *f) in read_inode()
500 ufs_open(const char *upath, struct open_file *f) in ufs_open()
537 struct open_file *sbf; in ufs_open()
708 struct open_file *f; in ufs_use_sa_read()
712 f = (struct open_file *)devfd; in ufs_use_sa_read()
725 ufs_close(struct open_file *f) in ufs_close()
850 ufs_stat(struct open_file *f, struct stat *sb) in ufs_stat()
877 ufs_readdir(struct open_file *f, struct dirent *d) in ufs_readdir()
[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.c95 static int ext2fs_close(struct open_file *f);
96 static int ext2fs_read(struct open_file *f, void *buf,
99 static int ext2fs_stat(struct open_file *f, struct stat *sb);
318 static int read_inode(ino_t inumber, struct open_file *f);
321 static int buf_read_file(struct open_file *f, char **buf_p,
330 ext2fs_open(const char *upath, struct open_file *f) in ext2fs_open()
555 read_inode(ino_t inumber, struct open_file *f) in read_inode()
791 ext2fs_close(struct open_file *f) in ext2fs_close()
846 ext2fs_seek(struct open_file *f, off_t offset, int where) in ext2fs_seek()
868 ext2fs_stat(struct open_file *f, struct stat *sb) in ext2fs_stat()
[all …]
H A Dpkgfs.c40 static int pkg_open(const char *, struct open_file *);
41 static int pkg_close(struct open_file *);
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()
341 pkg_seek(struct open_file *f, off_t ofs, int whence) in pkg_seek()
400 pkg_stat(struct open_file *f, struct stat *sb) in pkg_stat()
[all …]
H A Dtftp.c65 static int tftp_open(const char *, struct open_file *);
66 static int tftp_close(struct open_file *);
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()
637 tftp_seek(struct open_file *f, off_t offset, int where) in tftp_seek()
[all …]
H A Ddosfs.c51 static int dos_open(const char *path, struct open_file *fd);
52 static int dos_close(struct open_file *fd);
55 static int dos_stat(struct open_file *fd, struct stat *sb);
56 static int dos_readdir(struct open_file *fd, struct dirent *d);
192 dos_mount_impl(DOS_FS *fs, struct open_file *fd) in dos_mount_impl()
232 struct open_file *f; in dos_mount()
303 dos_open(const char *path, struct open_file *fd) in dos_open()
424 dos_seek(struct open_file *fd, off_t offset, int whence) in dos_seek()
459 dos_close(struct open_file *fd) in dos_close()
474 dos_stat(struct open_file *fd, struct stat *sb) in dos_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);
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()
745 nfs_stat(struct open_file *f, struct stat *sb) in nfs_stat()
[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/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_open()
265 host_dev_close(struct open_file *f) in host_dev_close()
/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);
60 static int efihttp_fs_close(struct open_file *f);
66 static int efihttp_fs_stat(struct open_file *f, struct stat *sb);
226 efihttp_dev_open(struct open_file *f, ...) in efihttp_dev_open()
363 efihttp_dev_close(struct open_file *f) in efihttp_dev_close()
384 _efihttp_fs_open(const char *path, struct open_file *f) in _efihttp_fs_open()
561 efihttp_fs_open(const char *path, struct open_file *f) in efihttp_fs_open()
594 efihttp_fs_close(struct open_file *f __unused) in efihttp_fs_close()
743 efihttp_fs_stat(struct open_file *f, struct stat *sb) in efihttp_fs_stat()
[all …]
/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()
H A Dgeliboot.h68 struct open_file;
89 void geli_probe_and_attach(struct open_file *f);
/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()
/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