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/fifofs | |
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/fifofs')
-rw-r--r-- | sys/miscfs/fifofs/fifo.h | 3 | ||||
-rw-r--r-- | sys/miscfs/fifofs/fifo_vnops.c | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/sys/miscfs/fifofs/fifo.h b/sys/miscfs/fifofs/fifo.h index 2e59d7076dd..6e8bae9a060 100644 --- a/sys/miscfs/fifofs/fifo.h +++ b/sys/miscfs/fifofs/fifo.h @@ -1,4 +1,4 @@ -/* $OpenBSD: fifo.h,v 1.8 2001/06/23 02:14:24 csapuntz Exp $ */ +/* $OpenBSD: fifo.h,v 1.9 2001/12/04 22:44:31 art Exp $ */ /* $NetBSD: fifo.h,v 1.10 1996/02/09 22:40:15 christos Exp $ */ /* @@ -80,6 +80,7 @@ int fifo_pathconf __P((void *)); int fifo_advlock __P((void *)); #define fifo_reallocblks fifo_badop #define fifo_bwrite nullop +#define fifo_mmap fifo_badop void fifo_printinfo __P((struct vnode *)); diff --git a/sys/miscfs/fifofs/fifo_vnops.c b/sys/miscfs/fifofs/fifo_vnops.c index d6672bfc6ef..174f02cca6f 100644 --- a/sys/miscfs/fifofs/fifo_vnops.c +++ b/sys/miscfs/fifofs/fifo_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fifo_vnops.c,v 1.10 2001/06/23 02:14:24 csapuntz Exp $ */ +/* $OpenBSD: fifo_vnops.c,v 1.11 2001/12/04 22:44:31 art Exp $ */ /* $NetBSD: fifo_vnops.c,v 1.18 1996/03/16 23:52:42 christos Exp $ */ /* @@ -103,7 +103,8 @@ struct vnodeopv_entry_desc fifo_vnodeop_entries[] = { { &vop_pathconf_desc, fifo_pathconf }, /* pathconf */ { &vop_advlock_desc, fifo_advlock }, /* advlock */ { &vop_bwrite_desc, fifo_bwrite }, /* bwrite */ - { (struct vnodeop_desc*)NULL, (int(*) __P((void *)))NULL } + { &vop_mmap_desc, fifo_mmap }, + { NULL, NULL } }; void filt_fifordetach(struct knote *kn); |