Home
last modified time | relevance | path

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

1234

/freebsd-13.1/stand/libsa/
H A Dstand.h93 struct open_file;
106 int (*fo_close)(struct open_file *f);
107 int (*fo_read)(struct open_file *f, void *buf,
114 int (*fo_preload)(struct open_file *f);
154 int (*dv_open)(struct open_file *f, ...);
155 int (*dv_close)(struct open_file *f);
179 struct open_file { struct
190 TAILQ_ENTRY(open_file) f_link; /* next entry */ argument
196 extern struct open_file *fd2open_file(int);
396 extern int null_close(struct open_file *f);
[all …]
H A Dnullfs.c71 int null_open (const char *path, struct open_file *f) in null_open()
76 int null_close(struct open_file *f) in null_close()
81 int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) in null_read()
86 int null_write (struct open_file *f, const void *buf, size_t size, size_t *resid) in null_write()
91 off_t null_seek (struct open_file *f, off_t offset, int where) in null_seek()
97 int null_stat (struct open_file *f, struct stat *sb) in null_stat()
102 int null_readdir(struct open_file *f, struct dirent *d) in null_readdir()
H A Dcd9660.c64 static int buf_read_file(struct open_file *f, char **buf_p,
67 static int cd9660_close(struct open_file *f);
71 static int cd9660_stat(struct open_file *f, struct stat *sb);
75 static int dirmatch(struct open_file *f, const char *path,
79 static char *rrip_lookup_name(struct open_file *f,
339 cd9660_open(const char *path, struct open_file *f) in cd9660_open()
503 cd9660_close(struct open_file *f) in cd9660_close()
578 cd9660_readdir(struct open_file *f, struct dirent *d) in cd9660_readdir()
643 cd9660_seek(struct open_file *f, off_t offset, int where) in cd9660_seek()
664 cd9660_stat(struct open_file *f, struct stat *sb) in cd9660_stat()
[all …]
H A Dbzipfs.c40 struct open_file { struct
65 static int bzf_open(const char *path, struct open_file *f); argument
66 static int bzf_close(struct open_file *f);
68 static off_t bzf_seek(struct open_file *f, off_t offset, int where);
69 static int bzf_stat(struct open_file *f, struct stat *sb);
150 bzf_open(const char *fname, struct open_file *f) in bzf_open()
219 bzf_close(struct open_file *f) in bzf_close()
266 bzf_rewind(struct open_file *f) in bzf_rewind()
310 bzf_seek(struct open_file *f, off_t offset, int where) in bzf_seek()
352 bzf_stat(struct open_file *f, struct stat *sb) in bzf_stat()
[all …]
H A Dufs.c90 static int ufs_close(struct open_file *f);
147 static int read_inode(ino_t, struct open_file *);
167 read_inode(ino_t inumber, struct open_file *f) in read_inode()
506 ufs_open(const char *upath, struct open_file *f) in ufs_open()
543 struct open_file *sbf; in ufs_open()
717 struct open_file *f; in ufs_use_sa_read()
721 f = (struct open_file *)devfd; in ufs_use_sa_read()
734 ufs_close(struct open_file *f) in ufs_close()
859 ufs_stat(struct open_file *f, struct stat *sb) in ufs_stat()
886 ufs_readdir(struct open_file *f, struct dirent *d) in ufs_readdir()
[all …]
H A Dgzipfs.c48 static int zf_open(const char *path, struct open_file *f);
49 static int zf_close(struct open_file *f);
50 static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid);
51 static off_t zf_seek(struct open_file *f, off_t offset, int where);
52 static int zf_stat(struct open_file *f, struct stat *sb);
159 zf_open(const char *fname, struct open_file *f) in zf_open()
228 zf_close(struct open_file *f) in zf_close()
239 zf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in zf_read()
275 zf_rewind(struct open_file *f) in zf_rewind()
290 zf_seek(struct open_file *f, off_t offset, int where) in zf_seek()
[all …]
H A Dsplitfs.c48 static int splitfs_open(const char *path, struct open_file *f);
49 static int splitfs_close(struct open_file *f);
50 static int splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid);
51 static off_t splitfs_seek(struct open_file *f, off_t offset, int where);
52 static int splitfs_stat(struct open_file *f, struct stat *sb);
104 splitfs_open(const char *fname, struct open_file *f) in splitfs_open()
181 splitfs_close(struct open_file *f) in splitfs_close()
193 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in splitfs_read()
235 splitfs_seek(struct open_file *f, off_t offset, int where) in splitfs_seek()
304 splitfs_stat(struct open_file *f, struct stat *sb) in splitfs_stat()
H A Dopen.c88 struct open_file *
91 struct open_file *f; in fd2open_file()
107 o_gethandle(struct open_file **ptr) in o_gethandle()
109 struct open_file *f, *last; in o_gethandle()
133 o_rainit(struct open_file *f) in o_rainit()
144 struct open_file *f; in open()
H A Dext2fs.c98 static int ext2fs_close(struct open_file *f);
99 static int ext2fs_read(struct open_file *f, void *buf,
102 static int ext2fs_stat(struct open_file *f, struct stat *sb);
321 static int read_inode(ino_t inumber, struct open_file *f);
324 static int buf_read_file(struct open_file *f, char **buf_p,
333 ext2fs_open(const char *upath, struct open_file *f) in ext2fs_open()
558 read_inode(ino_t inumber, struct open_file *f) in read_inode()
794 ext2fs_close(struct open_file *f) in ext2fs_close()
848 ext2fs_seek(struct open_file *f, off_t offset, int where) in ext2fs_seek()
870 ext2fs_stat(struct open_file *f, struct stat *sb) in ext2fs_stat()
[all …]
H A Dpkgfs.c43 static int pkg_open(const char *, struct open_file *);
44 static int pkg_close(struct open_file *);
46 static off_t pkg_seek(struct open_file *, off_t, int);
47 static int pkg_stat(struct open_file *, struct stat *);
48 static int pkg_readdir(struct open_file *, struct dirent *);
202 pkg_open_follow(const char *fn, struct open_file *f, int lnks) in pkg_open_follow()
264 pkg_open(const char *fn, struct open_file *f) in pkg_open()
270 pkg_close(struct open_file *f) in pkg_close()
344 pkg_seek(struct open_file *f, off_t ofs, int whence) in pkg_seek()
403 pkg_stat(struct open_file *f, struct stat *sb) in pkg_stat()
[all …]
H A Dtftp.c68 static int tftp_open(const char *, struct open_file *);
69 static int tftp_close(struct open_file *);
72 static off_t tftp_seek(struct open_file *, off_t, int);
74 static int tftp_stat(struct open_file *, struct stat *);
75 static int tftp_preload(struct open_file *);
444 tftp_open(const char *path, struct open_file *f) in tftp_open()
506 tftp_read(struct open_file *f, void *addr, size_t size, in tftp_read()
605 tftp_close(struct open_file *f) in tftp_close()
624 tftp_stat(struct open_file *f, struct stat *sb) in tftp_stat()
638 tftp_seek(struct open_file *f, off_t offset, int where) in tftp_seek()
[all …]
H A Ddosfs.c55 static int dos_open(const char *path, struct open_file *fd);
56 static int dos_close(struct open_file *fd);
59 static int dos_stat(struct open_file *fd, struct stat *sb);
60 static int dos_readdir(struct open_file *fd, struct dirent *d);
196 dos_mount_impl(DOS_FS *fs, struct open_file *fd) in dos_mount_impl()
236 struct open_file *f; in dos_mount()
307 dos_open(const char *path, struct open_file *fd) in dos_open()
428 dos_seek(struct open_file *fd, off_t offset, int whence) in dos_seek()
463 dos_close(struct open_file *fd) in dos_close()
478 dos_stat(struct open_file *fd, struct stat *sb) in dos_stat()
[all …]
H A Dnfs.c126 int nfs_open(const char *path, struct open_file *f);
127 static int nfs_close(struct open_file *f);
129 static off_t nfs_seek(struct open_file *f, off_t offset, int where);
130 static int nfs_stat(struct open_file *f, struct stat *sb);
131 static int nfs_readdir(struct open_file *f, struct dirent *d);
465 nfs_open(const char *upath, struct open_file *f) in nfs_open()
658 nfs_close(struct open_file *f) in nfs_close()
677 nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in nfs_read()
718 nfs_seek(struct open_file *f, off_t offset, int where) in nfs_seek()
746 nfs_stat(struct open_file *f, struct stat *sb) in nfs_stat()
[all …]
/freebsd-13.1/stand/userboot/userboot/
H A Dhost.c48 host_open(const char *upath, struct open_file *f) in host_open()
58 host_close(struct open_file *f) in host_close()
71 host_read(struct open_file *f, void *start, size_t size, size_t *resid) in host_read()
78 host_seek(struct open_file *f, off_t offset, int where) in host_seek()
85 host_stat(struct open_file *f, struct stat *sb) in host_stat()
93 host_readdir(struct open_file *f, struct dirent *d) in host_readdir()
136 host_dev_open(struct open_file *f, ...) in host_dev_open()
149 host_dev_close(struct open_file *f) in host_dev_close()
H A Duserboot_disk.c60 static int userdisk_open(struct open_file *f, ...);
61 static int userdisk_close(struct open_file *f);
62 static int userdisk_ioctl(struct open_file *f, u_long cmd, void *data);
158 userdisk_open(struct open_file *f, ...) in userdisk_open()
177 userdisk_close(struct open_file *f) in userdisk_close()
237 userdisk_ioctl(struct open_file *f, u_long cmd, void *data) in userdisk_ioctl()
/freebsd-13.1/stand/powerpc/kboot/
H A Dhostdisk.c37 static int hostdisk_open(struct open_file *f, ...);
38 static int hostdisk_close(struct open_file *f);
39 static int hostdisk_ioctl(struct open_file *f, u_long cmd, void *data);
88 hostdisk_open(struct open_file *f, ...) in hostdisk_open()
109 hostdisk_close(struct open_file *f) in hostdisk_close()
118 hostdisk_ioctl(struct open_file *f, u_long cmd, void *data) in hostdisk_ioctl()
/freebsd-13.1/stand/libofw/
H A Dofw_disk.c48 static int ofwd_open(struct open_file *f, ...);
49 static int ofwd_close(struct open_file *f);
50 static int ofwd_ioctl(struct open_file *f, u_long cmd, void *data);
119 ofwd_open(struct open_file *f, ...) in ofwd_open()
144 ofwd_close(struct open_file *f) in ofwd_close()
158 ofwd_ioctl(struct open_file *f, u_long cmd, void *data) in ofwd_ioctl()
/freebsd-13.1/stand/efi/libefi/
H A Defihttp.c61 static int efihttp_dev_open(struct open_file *f, ...);
62 static int efihttp_dev_close(struct open_file *f);
65 static int efihttp_fs_close(struct open_file *f);
71 static int efihttp_fs_stat(struct open_file *f, struct stat *sb);
231 efihttp_dev_open(struct open_file *f, ...) in efihttp_dev_open()
368 efihttp_dev_close(struct open_file *f) in efihttp_dev_close()
389 _efihttp_fs_open(const char *path, struct open_file *f) in _efihttp_fs_open()
566 efihttp_fs_open(const char *path, struct open_file *f) in efihttp_fs_open()
599 efihttp_fs_close(struct open_file *f __unused) in efihttp_fs_close()
748 efihttp_fs_stat(struct open_file *f, struct stat *sb) in efihttp_fs_stat()
[all …]
/freebsd-13.1/stand/usb/storage/
H A Dumass_loader.c47 static int umass_disk_open(struct open_file *,...);
48 static int umass_disk_close(struct open_file *);
50 static int umass_disk_ioctl(struct open_file *, u_long, void *);
124 umass_disk_open(struct open_file *f,...) in umass_disk_open()
141 umass_disk_ioctl(struct open_file *f, u_long cmd, void *buf) in umass_disk_ioctl()
175 umass_disk_close(struct open_file *f) in umass_disk_close()
/freebsd-13.1/stand/libsa/geli/
H A Dgelidev.c40 static int geli_dev_open(struct open_file *f, ...);
41 static int geli_dev_close(struct open_file *f);
42 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-13.1/stand/mips/beri/loader/
H A Dberi_disk_cfi.c45 static int beri_cfi_disk_open(struct open_file *, ...);
46 static int beri_cfi_disk_close(struct open_file *);
92 beri_cfi_disk_open(struct open_file *f, ...) in beri_cfi_disk_open()
107 beri_cfi_disk_close(struct open_file *f) in beri_cfi_disk_close()
H A Dberi_disk_sdcard.c45 static int beri_sdcard_disk_open(struct open_file *, ...);
46 static int beri_sdcard_disk_close(struct open_file *);
92 beri_sdcard_disk_open(struct open_file *f, ...) in beri_sdcard_disk_open()
113 beri_sdcard_disk_close(struct open_file *f) in beri_sdcard_disk_close()
/freebsd-13.1/stand/common/
H A Dmd.c64 static int md_open(struct open_file *, ...);
65 static int md_close(struct open_file *);
123 md_open(struct open_file *f, ...) in md_open()
139 md_close(struct open_file *f) in md_close()
H A Dvdisk.c41 static int vdisk_open(struct open_file *, ...);
42 static int vdisk_close(struct open_file *);
43 static int vdisk_ioctl(struct open_file *, u_long, void *);
294 vdisk_open(struct open_file *f, ...) in vdisk_open()
319 vdisk_close(struct open_file *f) in vdisk_close()
338 vdisk_ioctl(struct open_file *f, u_long cmd, void *data) in vdisk_ioctl()
/freebsd-13.1/stand/uboot/lib/
H A Ddisk.c77 static int stor_open(struct open_file *, ...);
78 static int stor_close(struct open_file *);
79 static int stor_ioctl(struct open_file *f, u_long cmd, void *data);
176 stor_open(struct open_file *f, ...) in stor_open()
210 stor_close(struct open_file *f) in stor_close()
275 stor_ioctl(struct open_file *f, u_long cmd, void *data) in stor_ioctl()

1234