diff options
author | phk <phk@FreeBSD.org> | 2002-12-23 21:53:20 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-12-23 21:53:20 +0000 |
commit | b9e78196906ce4e1ddcc9226147152ae434299af (patch) | |
tree | 1029129c1c43d78a4359b6cc2e981fd42f7d59e4 /sys/kern/vfs_vnops.c | |
parent | ce7c11d2b715e7ecc8863611787ef8a3dfc6df0d (diff) | |
download | FreeBSD-src-b9e78196906ce4e1ddcc9226147152ae434299af.zip FreeBSD-src-b9e78196906ce4e1ddcc9226147152ae434299af.tar.gz |
Detediousficate declaration of fileops array members by introducing
typedefs for them.
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 19 |
1 files changed, 7 insertions, 12 deletions
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 <machine/limits.h> -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, |