Lines Matching defs:file
4 * The contents of this file are subject to the terms of the
6 * You may not use this file except in compliance with the License.
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
643 __dprintf(const char *file, const char *func, int line, const char *fmt, ...)
651 newfile = strrchr(file, '/');
655 newfile = file;
740 struct _buf *file;
743 /* set vp as the _fd field of the file */
748 file = umem_zalloc(sizeof (struct _buf), UMEM_NOFAIL);
749 file->_fd = (intptr_t)vp;
750 return (file);
754 kobj_read_file(struct _buf *file, char *buf, unsigned size, unsigned off)
758 vn_rdwr(UIO_READ, (vnode_t *)file->_fd, buf, size, (offset_t)off,
765 kobj_close_file(struct _buf *file)
767 vn_close((vnode_t *)file->_fd);
768 umem_free(file, sizeof (struct _buf));
772 kobj_get_filesize(struct _buf *file, uint64_t *size)
775 vnode_t *vp = (vnode_t *)file->_fd;