summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_descrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r--sys/kern/kern_descrip.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index 27e0bcc..61f2dfd 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -103,16 +103,6 @@ enum dup_type { DUP_VARIABLE, DUP_FIXED };
static int do_dup(struct thread *td, enum dup_type type, int old, int new,
register_t *retval);
-static int badfo_readwrite(struct file *fp, struct uio *uio,
- struct ucred *active_cred, int flags, struct thread *td);
-static int badfo_ioctl(struct file *fp, u_long com, void *data,
- struct ucred *active_cred, struct thread *td);
-static int badfo_poll(struct file *fp, int events,
- struct ucred *active_cred, struct thread *td);
-static int badfo_kqfilter(struct file *fp, struct knote *kn);
-static int badfo_stat(struct file *fp, struct stat *sb,
- struct ucred *active_cred, struct thread *td);
-static int badfo_close(struct file *fp, struct thread *td);
/*
* Descriptor management.
@@ -2174,6 +2164,13 @@ fildesc_drvinit(void *unused)
}
}
+static fo_rdwr_t badfo_readwrite;
+static fo_ioctl_t badfo_ioctl;
+static fo_poll_t badfo_poll;
+static fo_kqfilter_t badfo_kqfilter;
+static fo_stat_t badfo_stat;
+static fo_close_t badfo_close;
+
struct fileops badfileops = {
badfo_readwrite,
badfo_readwrite,
OpenPOWER on IntegriCloud