/illumos-gate/usr/src/boot/libsa/ |
H A D | stand.h | 96 struct open_file; 108 int (*fo_open)(const char *path, struct open_file *f); 109 int (*fo_close)(struct open_file *f); 110 int (*fo_read)(struct open_file *f, void *buf, 112 int (*fo_write)(struct open_file *f, const void *buf, 114 off_t (*fo_seek)(struct open_file *f, off_t offset, int where); 115 int (*fo_stat)(struct open_file *f, struct stat *sb); 116 int (*fo_readdir)(struct open_file *f, struct dirent *d); 149 int (*dv_open)(struct open_file *f, ...); 150 int (*dv_close)(struct open_file *f); [all …]
|
H A D | nullfs.c | 71 null_open(const char *path __unused, struct open_file *f __unused) in null_open() 77 null_close(struct open_file *f __unused) in null_close() 83 null_read(struct open_file *f __unused, void *buf __unused, in null_read() 90 null_write(struct open_file *f __unused, const void *buf __unused, in null_write() 97 null_seek(struct open_file *f __unused, off_t offset __unused, in null_seek() 105 null_stat(struct open_file *f __unused, struct stat *sb __unused) in null_stat() 111 null_readdir(struct open_file *f __unused, struct dirent *d __unused) in null_readdir()
|
H A D | ufs.c | 85 static int ufs_open(const char *, struct open_file *); 86 static int ufs_write(struct open_file *, const void *, size_t, size_t *); 87 static int ufs_close(struct open_file *); 88 static int ufs_read(struct open_file *, void *, size_t, size_t *); 89 static off_t ufs_seek(struct open_file *, off_t, int); 90 static int ufs_stat(struct open_file *, struct stat *); 91 static int ufs_readdir(struct open_file *, struct dirent *); 134 static int read_inode(ino_t, struct open_file *); 135 static int block_map(struct open_file *, ufs2_daddr_t, ufs2_daddr_t *); 136 static int buf_read_file(struct open_file *, char **, size_t *); [all …]
|
H A D | cd9660.c | 63 static int buf_read_file(struct open_file *f, char **buf_p, 65 static int cd9660_open(const char *path, struct open_file *f); 66 static int cd9660_close(struct open_file *f); 67 static int cd9660_read(struct open_file *f, void *buf, size_t size, 69 static off_t cd9660_seek(struct open_file *f, off_t offset, int where); 70 static int cd9660_stat(struct open_file *f, struct stat *sb); 71 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 D | gzipfs.c | 47 static int zf_open(const char *path, struct open_file *f); 48 static int zf_close(struct open_file *f); 49 static int zf_read(struct open_file *f, void *buf, size_t size, size_t *resid); 50 static off_t zf_seek(struct open_file *f, off_t offset, int where); 51 static int zf_stat(struct open_file *f, struct stat *sb); 164 zf_open(const char *fname, struct open_file *f) in zf_open() 235 zf_close(struct open_file *f) in zf_close() 246 zf_read(struct open_file *f, void *buf, size_t size, size_t *resid) in zf_read() 283 zf_rewind(struct open_file *f) in zf_rewind() 298 zf_seek(struct open_file *f, off_t offset, int where) in zf_seek() [all …]
|
H A D | open.c | 87 struct open_file * 90 struct open_file *f; in fd2open_file() 105 o_gethandle(struct open_file **ptr) in o_gethandle() 107 struct open_file *f, *last; in o_gethandle() 131 o_rainit(struct open_file *f) in o_rainit() 142 struct open_file *f; in open()
|
H A D | dosfs.c | 45 static int dos_open(const char *, struct open_file *); 46 static int dos_close(struct open_file *); 47 static int dos_read(struct open_file *, void *, size_t, size_t *); 48 static off_t dos_seek(struct open_file *, off_t offset, int); 49 static int dos_stat(struct open_file *, struct stat *); 50 static int dos_readdir(struct open_file *, struct dirent *); 146 static int ioget(struct open_file *, daddr_t, void *, size_t); 149 dos_read_fatblk(DOS_FS *fs, struct open_file *fd, uint_t blknum) in dos_read_fatblk() 183 dos_mount(DOS_FS *fs, struct open_file *fd) in dos_mount() 236 dos_open(const char *path, struct open_file *fd) in dos_open() [all …]
|
H A D | tftp.c | 67 static int tftp_open(const char *, struct open_file *); 68 static int tftp_close(struct open_file *); 70 static int tftp_read(struct open_file *, void *, size_t, size_t *); 71 static off_t tftp_seek(struct open_file *, off_t, int); 73 static int tftp_stat(struct open_file *, struct stat *); 431 tftp_open(const char *path, struct open_file *f) in tftp_open() 495 tftp_read(struct open_file *f, void *addr, size_t size, in tftp_read() 578 tftp_close(struct open_file *f) in tftp_close() 595 tftp_stat(struct open_file *f, struct stat *sb) in tftp_stat() 609 tftp_seek(struct open_file *f, off_t offset, int where) in tftp_seek()
|
H A D | nfs.c | 125 int nfs_open(const char *path, struct open_file *f); 126 static int nfs_close(struct open_file *f); 127 static int nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid); 128 static off_t nfs_seek(struct open_file *f, off_t offset, int where); 129 static int nfs_stat(struct open_file *f, struct stat *sb); 130 static int nfs_readdir(struct open_file *f, struct dirent *d); 462 nfs_open(const char *upath, struct open_file *f) in nfs_open() 648 nfs_close(struct open_file *f) in nfs_close() 667 nfs_read(struct open_file *f, void *buf, size_t size, size_t *resid) in nfs_read() 708 nfs_seek(struct open_file *f, off_t offset, int where) in nfs_seek() [all …]
|
H A D | closeall.c | 35 struct open_file *f; in closeall()
|
H A D | dev.c | 53 noioctl(struct open_file *f __unused, ulong_t cmd __unused, void *data __unused) in noioctl()
|
H A D | fstat.c | 41 struct open_file *f; in fstat()
|
H A D | ioctl.c | 70 struct open_file *f; in ioctl()
|
H A D | readdir.c | 36 struct open_file *f; in readdirfd()
|
H A D | write.c | 71 struct open_file *f; in write()
|
H A D | close.c | 70 struct open_file *f, *last; in close()
|
H A D | lseek.c | 70 struct open_file *f; in lseek()
|
/illumos-gate/usr/src/boot/common/ |
H A D | md.c | 64 static int md_open(struct open_file *, ...); 65 static int md_close(struct open_file *); 122 md_open(struct open_file *f, ...) in md_open() 138 md_close(struct open_file *f) in md_close()
|
H A D | vdisk.c | 40 static int vdisk_open(struct open_file *, ...); 41 static int vdisk_close(struct open_file *); 42 static int vdisk_ioctl(struct open_file *, ulong_t, 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, ulong_t cmd, void *data) in vdisk_ioctl()
|
H A D | devopen.c | 35 devopen(struct open_file *f, const char *fname, const char **file) in devopen() 58 devclose(struct open_file *f) in devclose()
|
H A D | dev_net.c | 81 static int net_open(struct open_file *, ...); 82 static int net_close(struct open_file *); 122 net_open(struct open_file *f, ...) in net_open() 201 net_close(struct open_file *f) in net_close()
|
/illumos-gate/usr/src/boot/libsa/zfs/ |
H A D | zfs.c | 54 static int zfs_open(const char *, struct open_file *); 55 static int zfs_close(struct open_file *); 56 static int zfs_read(struct open_file *, void *, size_t, size_t *); 57 static off_t zfs_seek(struct open_file *, off_t, int); 58 static int zfs_stat(struct open_file *, struct stat *); 59 static int zfs_readdir(struct open_file *, struct dirent *); 97 zfs_open(const char *upath, struct open_file *f) in zfs_open() 122 zfs_close(struct open_file *f) in zfs_close() 138 zfs_read(struct open_file *f, void *start, size_t size, size_t *resid) in zfs_read() 165 zfs_seek(struct open_file *f, off_t offset, int where) in zfs_seek() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | efipart.c | 58 static int efipart_open(struct open_file *, ...); 59 static int efipart_close(struct open_file *); 60 static int efipart_ioctl(struct open_file *, unsigned long, void *); 860 efipart_open(struct open_file *f, ...) in efipart_open() 914 efipart_close(struct open_file *f) in efipart_close() 941 efipart_ioctl(struct open_file *f, unsigned long cmd, void *data) in efipart_ioctl()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | biosdisk.c | 149 static int bd_open(struct open_file *f, ...); 150 static int bd_close(struct open_file *f); 151 static int bd_ioctl(struct open_file *f, ulong_t cmd, void *data); 830 bd_open(struct open_file *f, ...) in bd_open() 874 bd_close(struct open_file *f) in bd_close() 896 bd_ioctl(struct open_file *f, ulong_t cmd, void *data) in bd_ioctl()
|
/illumos-gate/usr/src/cmd/nohup/ |
H A D | nohup.c | 76 open_file(void) in open_file() function 163 if ((fd = open_file()) < 0) in main() 170 if (fd < 0 && (fd = open_file()) < 0) in main()
|