From b9e78196906ce4e1ddcc9226147152ae434299af Mon Sep 17 00:00:00 2001 From: phk Date: Mon, 23 Dec 2002 21:53:20 +0000 Subject: Detediousficate declaration of fileops array members by introducing typedefs for them. --- sys/kern/vfs_vnops.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'sys/kern/vfs_vnops.c') diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index 0281a29..74f4c23 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -63,18 +63,13 @@ #include -static int vn_closefile(struct file *fp, struct thread *td); -static int vn_ioctl(struct file *fp, u_long com, void *data, - struct ucred *active_cred, struct thread *td); -static int vn_read(struct file *fp, struct uio *uio, - struct ucred *active_cred, int flags, struct thread *td); -static int vn_poll(struct file *fp, int events, struct ucred *active_cred, - struct thread *td); -static int vn_kqfilter(struct file *fp, struct knote *kn); -static int vn_statfile(struct file *fp, struct stat *sb, - struct ucred *active_cred, struct thread *td); -static int vn_write(struct file *fp, struct uio *uio, - struct ucred *active_cred, int flags, struct thread *td); +static fo_rdwr_t vn_read; +static fo_rdwr_t vn_write; +static fo_ioctl_t vn_ioctl; +static fo_poll_t vn_poll; +static fo_kqfilter_t vn_kqfilter; +static fo_stat_t vn_statfile; +static fo_close_t vn_closefile; struct fileops vnops = { vn_read, vn_write, vn_ioctl, vn_poll, vn_kqfilter, -- cgit v1.1