Home
last modified time | relevance | path

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

12

/src/stand/libsa/
H A Dstand.h95 struct open_file;
110 int (*fo_open)(const char *path, struct open_file *f);
111 int (*fo_close)(struct open_file *f);
112 int (*fo_read)(struct open_file *f, void *buf,
114 int (*fo_write)(struct open_file *f, const void *buf,
116 off_t (*fo_seek)(struct open_file *f, off_t offset, int where);
117 int (*fo_stat)(struct open_file *f, struct stat *sb);
118 int (*fo_readdir)(struct open_file *f, struct dirent *d);
119 int (*fo_preload)(struct open_file *f);
162 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);
141 static int read_inode(ino_t, struct open_file *);
142 static int block_map(struct open_file *, ufs2_daddr_t, ufs2_daddr_t *);
143 static int buf_read_file(struct open_file *, char **, size_t *);
[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);
148 bzf_open(const char *fname, struct open_file *f) in bzf_open()
217 bzf_close(struct open_file *f) in bzf_close()
228 bzf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in bzf_read()
264 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);
157 zf_open(const char *fname, struct open_file *f) in zf_open()
226 zf_close(struct open_file *f) in zf_close()
237 zf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in zf_read()
273 zf_rewind(struct open_file *f) in zf_rewind()
288 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);
102 splitfs_open(const char *fname, struct open_file *f) in splitfs_open()
179 splitfs_close(struct open_file *f) in splitfs_close()
191 splitfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in splitfs_read()
233 splitfs_seek(struct open_file *f, off_t offset, int where) in splitfs_seek()
302 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);
319 static int read_inode(ino_t inumber, struct open_file *f);
320 static int block_map(struct open_file *f, daddr_t file_block,
322 static int buf_read_file(struct open_file *f, char **buf_p,
324 static int search_directory(char *name, struct open_file *f,
[all …]
H A Dpkgfs.c34 static int pkg_open(const char *, struct open_file *);
35 static int pkg_close(struct open_file *);
36 static int pkg_read(struct open_file *, void *, size_t, size_t *);
37 static off_t pkg_seek(struct open_file *, off_t, int);
38 static int pkg_stat(struct open_file *, struct stat *);
39 static int pkg_readdir(struct open_file *, struct dirent *);
197 pkg_open_follow(const char *fn, struct open_file *f, int lnks) in pkg_open_follow()
259 pkg_open(const char *fn, struct open_file *f) in pkg_open()
265 pkg_close(struct open_file *f) in pkg_close()
285 pkg_read(struct open_file *f, void *buf, size_t size, size_t *res) in pkg_read()
[all …]
H A Dtftp.c69 static int tftp_open(const char *, struct open_file *);
70 static int tftp_close(struct open_file *);
72 static int tftp_read(struct open_file *, void *, size_t, size_t *);
73 static off_t tftp_seek(struct open_file *, off_t, int);
75 static int tftp_stat(struct open_file *, struct stat *);
76 static int tftp_preload(struct open_file *);
471 tftp_open(const char *path, struct open_file *f) in tftp_open()
555 tftp_read(struct open_file *f, void *addr, size_t size, in tftp_read()
650 tftp_close(struct open_file *f) in tftp_close()
672 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);
463 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()
[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);
222 dos_mount_impl(DOS_FS *fs, struct open_file *fd) in dos_mount_impl()
273 struct open_file *f; in dos_mount()
345 dos_open(const char *path, struct open_file *fd) in dos_open()
406 dos_read(struct open_file *fd, void *buf, size_t nbyte, size_t *resid) in dos_read()
[all …]
/src/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()
/src/stand/efi/libefi/
H A Defihttp.c55 static int efihttp_dev_open(struct open_file *f, ...);
56 static int efihttp_dev_close(struct open_file *f);
58 static int efihttp_fs_open(const char *path, struct open_file *f);
59 static int efihttp_fs_close(struct open_file *f);
60 static int efihttp_fs_read(struct open_file *f, void *buf, size_t size,
62 static int efihttp_fs_write(struct open_file *f, const void *buf, size_t size,
64 static off_t efihttp_fs_seek(struct open_file *f, off_t offset, int where);
65 static int efihttp_fs_stat(struct open_file *f, struct stat *sb);
66 static int efihttp_fs_readdir(struct open_file *f, struct dirent *d);
225 efihttp_dev_open(struct open_file *f, ...) in efihttp_dev_open()
[all …]
/src/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()
/src/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()
/src/stand/libofw/
H A Dofw_disk.c44 static int ofwd_open(struct open_file *f, ...);
45 static int ofwd_close(struct open_file *f);
46 static int ofwd_ioctl(struct open_file *f, u_long cmd, void *data);
122 ofwd_open(struct open_file *f, ...) in ofwd_open()
147 ofwd_close(struct open_file *f) in ofwd_close()
161 ofwd_ioctl(struct open_file *f, u_long cmd, void *data) in ofwd_ioctl()
/src/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()
/src/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()
/src/stand/uboot/
H A Duboot_disk.c75 static int stor_open(struct open_file *, ...);
76 static int stor_close(struct open_file *);
77 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()
/src/crypto/krb5/src/lib/krb5/rcache/
H A Drc_dfl.c51 open_file(krb5_context context, int *fd_out) in open_file() function
83 open_file(krb5_context context, int *fd_out) in open_file() function
149 ret = open_file(context, &fd); in dfl_store()

12