summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_pipe.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-12-23 21:53:20 +0000
committerphk <phk@FreeBSD.org>2002-12-23 21:53:20 +0000
commitb9e78196906ce4e1ddcc9226147152ae434299af (patch)
tree1029129c1c43d78a4359b6cc2e981fd42f7d59e4 /sys/kern/sys_pipe.c
parentce7c11d2b715e7ecc8863611787ef8a3dfc6df0d (diff)
downloadFreeBSD-src-b9e78196906ce4e1ddcc9226147152ae434299af.zip
FreeBSD-src-b9e78196906ce4e1ddcc9226147152ae434299af.tar.gz
Detediousficate declaration of fileops array members by introducing
typedefs for them.
Diffstat (limited to 'sys/kern/sys_pipe.c')
-rw-r--r--sys/kern/sys_pipe.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/sys/kern/sys_pipe.c b/sys/kern/sys_pipe.c
index d09f31f..bdf6cc3 100644
--- a/sys/kern/sys_pipe.c
+++ b/sys/kern/sys_pipe.c
@@ -94,18 +94,13 @@
/*
* interfaces to the outside world
*/
-static int pipe_read(struct file *fp, struct uio *uio,
- struct ucred *active_cred, int flags, struct thread *td);
-static int pipe_write(struct file *fp, struct uio *uio,
- struct ucred *active_cred, int flags, struct thread *td);
-static int pipe_close(struct file *fp, struct thread *td);
-static int pipe_poll(struct file *fp, int events, struct ucred *active_cred,
- struct thread *td);
-static int pipe_kqfilter(struct file *fp, struct knote *kn);
-static int pipe_stat(struct file *fp, struct stat *sb,
- struct ucred *active_cred, struct thread *td);
-static int pipe_ioctl(struct file *fp, u_long cmd, void *data,
- struct ucred *active_cred, struct thread *td);
+static fo_rdwr_t pipe_read;
+static fo_rdwr_t pipe_write;
+static fo_ioctl_t pipe_ioctl;
+static fo_poll_t pipe_poll;
+static fo_kqfilter_t pipe_kqfilter;
+static fo_stat_t pipe_stat;
+static fo_close_t pipe_close;
static struct fileops pipeops = {
pipe_read, pipe_write, pipe_ioctl, pipe_poll, pipe_kqfilter,
OpenPOWER on IntegriCloud