1/*-
2 * Copyright (c) 2000-2004
3 * Poul-Henning Kamp. All rights reserved.
4 * Copyright (c) 1989, 1992-1993, 1995
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software donated to Berkeley by
8 * Jan-Simon Pendry.
--- 17 unchanged lines hidden (view full) ---
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95
32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vnops.c 1.43
33 *
34 * $FreeBSD: head/sys/fs/devfs/devfs_vnops.c 139776 2005-01-06 18:10:42Z imp $
35 */
36
37/*
38 * TODO:
39 * remove empty directories
40 * mknod: hunt down DE_DELETED, compare name, reinstantiate.
41 * mkdir: want it ?
42 */
--- 1328 unchanged lines hidden (view full) ---
1371 if ((flags & FOF_OFFSET) == 0)
1372 fp->f_offset = uio->uio_offset;
1373 fp->f_nextoff = uio->uio_offset;
1374 return (error);
1375}
1376
1377static struct vop_vector devfs_vnodeops = {
1378 .vop_default = &default_vnodeops,
1379 .vop_access = devfs_access,
1380 .vop_getattr = devfs_getattr,
1381 .vop_ioctl = devfs_rioctl,
1382 .vop_lookup = devfs_lookup,
1383 .vop_mknod = devfs_mknod,
1384 .vop_pathconf = devfs_pathconf,
1385 .vop_read = devfs_rread,
1386 .vop_readdir = devfs_readdir,
--- 5 unchanged lines hidden (view full) ---
1392#ifdef MAC
1393 .vop_setlabel = devfs_setlabel,
1394#endif
1395 .vop_symlink = devfs_symlink,
1396};
1397
1398static struct vop_vector devfs_specops = {
1399 .vop_default = &default_vnodeops,
1400 .vop_access = devfs_access,
1401 .vop_advlock = devfs_advlock,
1402 .vop_bmap = VOP_PANIC,
1403 .vop_close = devfs_close,
1404 .vop_create = VOP_PANIC,
1405 .vop_fsync = devfs_fsync,
1406 .vop_getattr = devfs_getattr,
1407 .vop_lease = VOP_NULL,
--- 36 unchanged lines hidden ---
2 * Copyright (c) 2000-2004
3 * Poul-Henning Kamp. All rights reserved.
4 * Copyright (c) 1989, 1992-1993, 1995
5 * The Regents of the University of California. All rights reserved.
6 *
7 * This code is derived from software donated to Berkeley by
8 * Jan-Simon Pendry.
--- 17 unchanged lines hidden (view full) ---
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE.
30 *
31 * @(#)kernfs_vnops.c 8.15 (Berkeley) 5/21/95
32 * From: FreeBSD: src/sys/miscfs/kernfs/kernfs_vnops.c 1.43
33 *
34 * $FreeBSD: head/sys/fs/devfs/devfs_vnops.c 139776 2005-01-06 18:10:42Z imp $
35 */
36
37/*
38 * TODO:
39 * remove empty directories
40 * mknod: hunt down DE_DELETED, compare name, reinstantiate.
41 * mkdir: want it ?
42 */
--- 1328 unchanged lines hidden (view full) ---
1371 if ((flags & FOF_OFFSET) == 0)
1372 fp->f_offset = uio->uio_offset;
1373 fp->f_nextoff = uio->uio_offset;
1374 return (error);
1375}
1376
1377static struct vop_vector devfs_vnodeops = {
1378 .vop_default = &default_vnodeops,
1379 .vop_access = devfs_access,
1380 .vop_getattr = devfs_getattr,
1381 .vop_ioctl = devfs_rioctl,
1382 .vop_lookup = devfs_lookup,
1383 .vop_mknod = devfs_mknod,
1384 .vop_pathconf = devfs_pathconf,
1385 .vop_read = devfs_rread,
1386 .vop_readdir = devfs_readdir,
--- 5 unchanged lines hidden (view full) ---
1392#ifdef MAC
1393 .vop_setlabel = devfs_setlabel,
1394#endif
1395 .vop_symlink = devfs_symlink,
1396};
1397
1398static struct vop_vector devfs_specops = {
1399 .vop_default = &default_vnodeops,
1400 .vop_access = devfs_access,
1401 .vop_advlock = devfs_advlock,
1402 .vop_bmap = VOP_PANIC,
1403 .vop_close = devfs_close,
1404 .vop_create = VOP_PANIC,
1405 .vop_fsync = devfs_fsync,
1406 .vop_getattr = devfs_getattr,
1407 .vop_lease = VOP_NULL,
--- 36 unchanged lines hidden ---