diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-04 22:44:33 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-04 22:44:33 +0000 |
commit | f1bec1965343db9a80a80e7ed55ee2fe5dd36253 (patch) | |
tree | 079f5363174a8394c440390c31604f27f1101bc3 /sys/miscfs/deadfs | |
parent | 2ae3b1f139f1a10569ee4341888c32f5a70281cb (diff) |
Readd VOP_MMAP, will be used soon. Right now it's just a question to
the filesystem if we're allowed to mmap the file.
Diffstat (limited to 'sys/miscfs/deadfs')
-rw-r--r-- | sys/miscfs/deadfs/dead_vnops.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/miscfs/deadfs/dead_vnops.c b/sys/miscfs/deadfs/dead_vnops.c index fc5f2f4ecbf..97dc05349c0 100644 --- a/sys/miscfs/deadfs/dead_vnops.c +++ b/sys/miscfs/deadfs/dead_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dead_vnops.c,v 1.8 2001/06/23 02:14:23 csapuntz Exp $ */ +/* $OpenBSD: dead_vnops.c,v 1.9 2001/12/04 22:44:31 art Exp $ */ /* $NetBSD: dead_vnops.c,v 1.16 1996/02/13 13:12:48 mycroft Exp $ */ /* @@ -84,6 +84,7 @@ int dead_print __P((void *)); #define dead_pathconf dead_ebadf #define dead_advlock dead_ebadf #define dead_bwrite nullop +#define dead_mmap dead_badop int chkvnlock __P((struct vnode *)); @@ -124,7 +125,8 @@ struct vnodeopv_entry_desc dead_vnodeop_entries[] = { { &vop_pathconf_desc, dead_pathconf }, /* pathconf */ { &vop_advlock_desc, dead_advlock }, /* advlock */ { &vop_bwrite_desc, dead_bwrite }, /* bwrite */ - { (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL } + { &vop_mmap_desc, dead_mmap }, + { NULL, NULL } }; struct vnodeopv_desc dead_vnodeop_opv_desc = { &dead_vnodeop_p, dead_vnodeop_entries }; |