diff options
author | Bruce Evans <bde@FreeBSD.org> | 1995-11-16 11:39:11 +0000 |
---|---|---|
committer | Bruce Evans <bde@FreeBSD.org> | 1995-11-16 11:39:11 +0000 |
commit | fcf985ad5d7d968e612ff8676e90d76009fa9e8a (patch) | |
tree | 97268492fc47b25e908191693fafbcda89fc607e /sys | |
parent | d77206b33be8d1c5ba08263e3358033716a294fd (diff) | |
download | src-fcf985ad5d7d968e612ff8676e90d76009fa9e8a.tar.gz src-fcf985ad5d7d968e612ff8676e90d76009fa9e8a.zip |
Moved declarations for static functions to the correct place (not in a
header).
Removed stupid comments.
Notes
Notes:
svn path=/head/; revision=12337
Diffstat (limited to 'sys')
-rw-r--r-- | sys/fs/procfs/procfs.h | 45 | ||||
-rw-r--r-- | sys/fs/procfs/procfs_vnops.c | 50 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs.h | 45 | ||||
-rw-r--r-- | sys/miscfs/procfs/procfs_vnops.c | 50 |
4 files changed, 86 insertions, 104 deletions
diff --git a/sys/fs/procfs/procfs.h b/sys/fs/procfs/procfs.h index f21813f77e90..ddb575727b4f 100644 --- a/sys/fs/procfs/procfs.h +++ b/sys/fs/procfs/procfs.h @@ -36,7 +36,7 @@ * * @(#)procfs.h 8.6 (Berkeley) 2/3/94 * - * $Id: procfs.h,v 1.6 1995/11/07 13:39:29 phk Exp $ + * $Id: procfs.h,v 1.7 1995/11/09 08:16:01 bde Exp $ */ /* @@ -141,48 +141,5 @@ extern vop_t **procfs_vnodeop_p; extern struct vfsops procfs_vfsops; int procfs_root __P((struct mount *, struct vnode **)); - -/* - * Prototypes for procfs vnode ops - */ -static int procfs_badop(); /* varargs */ int procfs_rw __P((struct vop_read_args *)); -static int procfs_lookup __P((struct vop_lookup_args *)); -#define procfs_create ((int (*) __P((struct vop_create_args *))) procfs_badop) -#define procfs_mknod ((int (*) __P((struct vop_mknod_args *))) procfs_badop) -static int procfs_open __P((struct vop_open_args *)); -static int Procfs_close __P((struct vop_close_args *)); -static int procfs_access __P((struct vop_access_args *)); -static int procfs_getattr __P((struct vop_getattr_args *)); -static int procfs_setattr __P((struct vop_setattr_args *)); -#define procfs_read procfs_rw -#define procfs_write procfs_rw -static int procfs_ioctl __P((struct vop_ioctl_args *)); -#define procfs_select ((int (*) __P((struct vop_select_args *))) procfs_badop) -#define procfs_mmap ((int (*) __P((struct vop_mmap_args *))) procfs_badop) -#define procfs_fsync ((int (*) __P((struct vop_fsync_args *))) procfs_badop) -#define procfs_seek ((int (*) __P((struct vop_seek_args *))) procfs_badop) -#define procfs_remove ((int (*) __P((struct vop_remove_args *))) procfs_badop) -#define procfs_link ((int (*) __P((struct vop_link_args *))) procfs_badop) -#define procfs_rename ((int (*) __P((struct vop_rename_args *))) procfs_badop) -#define procfs_mkdir ((int (*) __P((struct vop_mkdir_args *))) procfs_badop) -#define procfs_rmdir ((int (*) __P((struct vop_rmdir_args *))) procfs_badop) -#define procfs_symlink ((int (*) __P((struct vop_symlink_args *))) procfs_badop) -static int procfs_readdir __P((struct vop_readdir_args *)); -#define procfs_readlink ((int (*) __P((struct vop_readlink_args *))) procfs_badop) -static int procfs_abortop __P((struct vop_abortop_args *)); -static int procfs_inactive __P((struct vop_inactive_args *)); -static int procfs_reclaim __P((struct vop_reclaim_args *)); -#define procfs_lock ((int (*) __P((struct vop_lock_args *))) nullop) -#define procfs_unlock ((int (*) __P((struct vop_unlock_args *))) nullop) -#define procfs_bmap ((int (*) __P((struct vop_bmap_args *))) procfs_badop) -#define procfs_strategy ((int (*) __P((struct vop_strategy_args *))) procfs_badop) -static int procfs_print __P((struct vop_print_args *)); -#define procfs_islocked ((int (*) __P((struct vop_islocked_args *))) nullop) -#define procfs_advlock ((int (*) __P((struct vop_advlock_args *))) procfs_badop) -#define procfs_blkatoff ((int (*) __P((struct vop_blkatoff_args *))) procfs_badop) -#define procfs_valloc ((int (*) __P((struct vop_valloc_args *))) procfs_badop) -#define procfs_vfree ((int (*) __P((struct vop_vfree_args *))) nullop) -#define procfs_truncate ((int (*) __P((struct vop_truncate_args *))) procfs_badop) -#define procfs_update ((int (*) __P((struct vop_update_args *))) nullop) #endif /* KERNEL */ diff --git a/sys/fs/procfs/procfs_vnops.c b/sys/fs/procfs/procfs_vnops.c index fa3f0d4e7737..24638fe56668 100644 --- a/sys/fs/procfs/procfs_vnops.c +++ b/sys/fs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94 * - * $Id: procfs_vnops.c,v 1.17 1995/11/07 13:39:31 phk Exp $ + * $Id: procfs_vnops.c,v 1.18 1995/11/09 08:16:04 bde Exp $ */ /* @@ -57,10 +57,20 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ -/* - * Vnode Operations. - * - */ +static int procfs_abortop __P((struct vop_abortop_args *)); +static int procfs_access __P((struct vop_access_args *)); +static int procfs_badop __P((void)); +static int procfs_close __P((struct vop_close_args *)); +static int procfs_getattr __P((struct vop_getattr_args *)); +static int procfs_inactive __P((struct vop_inactive_args *)); +static int procfs_ioctl __P((struct vop_ioctl_args *)); +static int procfs_lookup __P((struct vop_lookup_args *)); +static int procfs_open __P((struct vop_open_args *)); +static int procfs_pathconf __P((struct vop_pathconf_args *ap)); +static int procfs_print __P((struct vop_print_args *)); +static int procfs_readdir __P((struct vop_readdir_args *)); +static int procfs_reclaim __P((struct vop_reclaim_args *)); +static int procfs_setattr __P((struct vop_setattr_args *)); /* * This is a list of the valid names in the @@ -796,9 +806,33 @@ atopid(b, len) return (p); } -/* - * procfs vnode operations. - */ +#define procfs_create ((int (*) __P((struct vop_create_args *))) procfs_badop) +#define procfs_mknod ((int (*) __P((struct vop_mknod_args *))) procfs_badop) +#define procfs_read procfs_rw +#define procfs_write procfs_rw +#define procfs_select ((int (*) __P((struct vop_select_args *))) procfs_badop) +#define procfs_mmap ((int (*) __P((struct vop_mmap_args *))) procfs_badop) +#define procfs_fsync ((int (*) __P((struct vop_fsync_args *))) procfs_badop) +#define procfs_seek ((int (*) __P((struct vop_seek_args *))) procfs_badop) +#define procfs_remove ((int (*) __P((struct vop_remove_args *))) procfs_badop) +#define procfs_link ((int (*) __P((struct vop_link_args *))) procfs_badop) +#define procfs_rename ((int (*) __P((struct vop_rename_args *))) procfs_badop) +#define procfs_mkdir ((int (*) __P((struct vop_mkdir_args *))) procfs_badop) +#define procfs_rmdir ((int (*) __P((struct vop_rmdir_args *))) procfs_badop) +#define procfs_symlink ((int (*) __P((struct vop_symlink_args *))) procfs_badop) +#define procfs_readlink ((int (*) __P((struct vop_readlink_args *))) procfs_badop) +#define procfs_lock ((int (*) __P((struct vop_lock_args *))) nullop) +#define procfs_unlock ((int (*) __P((struct vop_unlock_args *))) nullop) +#define procfs_bmap ((int (*) __P((struct vop_bmap_args *))) procfs_badop) +#define procfs_strategy ((int (*) __P((struct vop_strategy_args *))) procfs_badop) +#define procfs_islocked ((int (*) __P((struct vop_islocked_args *))) nullop) +#define procfs_advlock ((int (*) __P((struct vop_advlock_args *))) procfs_badop) +#define procfs_blkatoff ((int (*) __P((struct vop_blkatoff_args *))) procfs_badop) +#define procfs_valloc ((int (*) __P((struct vop_valloc_args *))) procfs_badop) +#define procfs_vfree ((int (*) __P((struct vop_vfree_args *))) nullop) +#define procfs_truncate ((int (*) __P((struct vop_truncate_args *))) procfs_badop) +#define procfs_update ((int (*) __P((struct vop_update_args *))) nullop) + vop_t **procfs_vnodeop_p; static struct vnodeopv_entry_desc procfs_vnodeop_entries[] = { { &vop_default_desc, (vop_t *)vn_default_error }, diff --git a/sys/miscfs/procfs/procfs.h b/sys/miscfs/procfs/procfs.h index f21813f77e90..ddb575727b4f 100644 --- a/sys/miscfs/procfs/procfs.h +++ b/sys/miscfs/procfs/procfs.h @@ -36,7 +36,7 @@ * * @(#)procfs.h 8.6 (Berkeley) 2/3/94 * - * $Id: procfs.h,v 1.6 1995/11/07 13:39:29 phk Exp $ + * $Id: procfs.h,v 1.7 1995/11/09 08:16:01 bde Exp $ */ /* @@ -141,48 +141,5 @@ extern vop_t **procfs_vnodeop_p; extern struct vfsops procfs_vfsops; int procfs_root __P((struct mount *, struct vnode **)); - -/* - * Prototypes for procfs vnode ops - */ -static int procfs_badop(); /* varargs */ int procfs_rw __P((struct vop_read_args *)); -static int procfs_lookup __P((struct vop_lookup_args *)); -#define procfs_create ((int (*) __P((struct vop_create_args *))) procfs_badop) -#define procfs_mknod ((int (*) __P((struct vop_mknod_args *))) procfs_badop) -static int procfs_open __P((struct vop_open_args *)); -static int Procfs_close __P((struct vop_close_args *)); -static int procfs_access __P((struct vop_access_args *)); -static int procfs_getattr __P((struct vop_getattr_args *)); -static int procfs_setattr __P((struct vop_setattr_args *)); -#define procfs_read procfs_rw -#define procfs_write procfs_rw -static int procfs_ioctl __P((struct vop_ioctl_args *)); -#define procfs_select ((int (*) __P((struct vop_select_args *))) procfs_badop) -#define procfs_mmap ((int (*) __P((struct vop_mmap_args *))) procfs_badop) -#define procfs_fsync ((int (*) __P((struct vop_fsync_args *))) procfs_badop) -#define procfs_seek ((int (*) __P((struct vop_seek_args *))) procfs_badop) -#define procfs_remove ((int (*) __P((struct vop_remove_args *))) procfs_badop) -#define procfs_link ((int (*) __P((struct vop_link_args *))) procfs_badop) -#define procfs_rename ((int (*) __P((struct vop_rename_args *))) procfs_badop) -#define procfs_mkdir ((int (*) __P((struct vop_mkdir_args *))) procfs_badop) -#define procfs_rmdir ((int (*) __P((struct vop_rmdir_args *))) procfs_badop) -#define procfs_symlink ((int (*) __P((struct vop_symlink_args *))) procfs_badop) -static int procfs_readdir __P((struct vop_readdir_args *)); -#define procfs_readlink ((int (*) __P((struct vop_readlink_args *))) procfs_badop) -static int procfs_abortop __P((struct vop_abortop_args *)); -static int procfs_inactive __P((struct vop_inactive_args *)); -static int procfs_reclaim __P((struct vop_reclaim_args *)); -#define procfs_lock ((int (*) __P((struct vop_lock_args *))) nullop) -#define procfs_unlock ((int (*) __P((struct vop_unlock_args *))) nullop) -#define procfs_bmap ((int (*) __P((struct vop_bmap_args *))) procfs_badop) -#define procfs_strategy ((int (*) __P((struct vop_strategy_args *))) procfs_badop) -static int procfs_print __P((struct vop_print_args *)); -#define procfs_islocked ((int (*) __P((struct vop_islocked_args *))) nullop) -#define procfs_advlock ((int (*) __P((struct vop_advlock_args *))) procfs_badop) -#define procfs_blkatoff ((int (*) __P((struct vop_blkatoff_args *))) procfs_badop) -#define procfs_valloc ((int (*) __P((struct vop_valloc_args *))) procfs_badop) -#define procfs_vfree ((int (*) __P((struct vop_vfree_args *))) nullop) -#define procfs_truncate ((int (*) __P((struct vop_truncate_args *))) procfs_badop) -#define procfs_update ((int (*) __P((struct vop_update_args *))) nullop) #endif /* KERNEL */ diff --git a/sys/miscfs/procfs/procfs_vnops.c b/sys/miscfs/procfs/procfs_vnops.c index fa3f0d4e7737..24638fe56668 100644 --- a/sys/miscfs/procfs/procfs_vnops.c +++ b/sys/miscfs/procfs/procfs_vnops.c @@ -36,7 +36,7 @@ * * @(#)procfs_vnops.c 8.6 (Berkeley) 2/7/94 * - * $Id: procfs_vnops.c,v 1.17 1995/11/07 13:39:31 phk Exp $ + * $Id: procfs_vnops.c,v 1.18 1995/11/09 08:16:04 bde Exp $ */ /* @@ -57,10 +57,20 @@ #include <miscfs/procfs/procfs.h> #include <vm/vm.h> /* for PAGE_SIZE */ -/* - * Vnode Operations. - * - */ +static int procfs_abortop __P((struct vop_abortop_args *)); +static int procfs_access __P((struct vop_access_args *)); +static int procfs_badop __P((void)); +static int procfs_close __P((struct vop_close_args *)); +static int procfs_getattr __P((struct vop_getattr_args *)); +static int procfs_inactive __P((struct vop_inactive_args *)); +static int procfs_ioctl __P((struct vop_ioctl_args *)); +static int procfs_lookup __P((struct vop_lookup_args *)); +static int procfs_open __P((struct vop_open_args *)); +static int procfs_pathconf __P((struct vop_pathconf_args *ap)); +static int procfs_print __P((struct vop_print_args *)); +static int procfs_readdir __P((struct vop_readdir_args *)); +static int procfs_reclaim __P((struct vop_reclaim_args *)); +static int procfs_setattr __P((struct vop_setattr_args *)); /* * This is a list of the valid names in the @@ -796,9 +806,33 @@ atopid(b, len) return (p); } -/* - * procfs vnode operations. - */ +#define procfs_create ((int (*) __P((struct vop_create_args *))) procfs_badop) +#define procfs_mknod ((int (*) __P((struct vop_mknod_args *))) procfs_badop) +#define procfs_read procfs_rw +#define procfs_write procfs_rw +#define procfs_select ((int (*) __P((struct vop_select_args *))) procfs_badop) +#define procfs_mmap ((int (*) __P((struct vop_mmap_args *))) procfs_badop) +#define procfs_fsync ((int (*) __P((struct vop_fsync_args *))) procfs_badop) +#define procfs_seek ((int (*) __P((struct vop_seek_args *))) procfs_badop) +#define procfs_remove ((int (*) __P((struct vop_remove_args *))) procfs_badop) +#define procfs_link ((int (*) __P((struct vop_link_args *))) procfs_badop) +#define procfs_rename ((int (*) __P((struct vop_rename_args *))) procfs_badop) +#define procfs_mkdir ((int (*) __P((struct vop_mkdir_args *))) procfs_badop) +#define procfs_rmdir ((int (*) __P((struct vop_rmdir_args *))) procfs_badop) +#define procfs_symlink ((int (*) __P((struct vop_symlink_args *))) procfs_badop) +#define procfs_readlink ((int (*) __P((struct vop_readlink_args *))) procfs_badop) +#define procfs_lock ((int (*) __P((struct vop_lock_args *))) nullop) +#define procfs_unlock ((int (*) __P((struct vop_unlock_args *))) nullop) +#define procfs_bmap ((int (*) __P((struct vop_bmap_args *))) procfs_badop) +#define procfs_strategy ((int (*) __P((struct vop_strategy_args *))) procfs_badop) +#define procfs_islocked ((int (*) __P((struct vop_islocked_args *))) nullop) +#define procfs_advlock ((int (*) __P((struct vop_advlock_args *))) procfs_badop) +#define procfs_blkatoff ((int (*) __P((struct vop_blkatoff_args *))) procfs_badop) +#define procfs_valloc ((int (*) __P((struct vop_valloc_args *))) procfs_badop) +#define procfs_vfree ((int (*) __P((struct vop_vfree_args *))) nullop) +#define procfs_truncate ((int (*) __P((struct vop_truncate_args *))) procfs_badop) +#define procfs_update ((int (*) __P((struct vop_update_args *))) nullop) + vop_t **procfs_vnodeop_p; static struct vnodeopv_entry_desc procfs_vnodeop_entries[] = { { &vop_default_desc, (vop_t *)vn_default_error }, |