From owner-cvs-sys Thu Nov 9 00:17:41 1995 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA26483 for cvs-sys-outgoing; Thu, 9 Nov 1995 00:17:41 -0800 Received: (from bde@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id AAA26474 ; Thu, 9 Nov 1995 00:17:28 -0800 Date: Thu, 9 Nov 1995 00:17:28 -0800 From: Bruce Evans Message-Id: <199511090817.AAA26474@freefall.freebsd.org> To: CVS-commiters, cvs-sys Subject: cvs commit: src/sys/msdosfs denode.h msdosfs_vnops.c Sender: owner-cvs-sys@FreeBSD.org Precedence: bulk bde 95/11/09 00:17:25 Modified: sys/gnu/ext2fs ext2_extern.h ext2_vnops.c sys/isofs/cd9660 iso.h cd9660_vnops.c cd9660_node.h sys/kern vfs_subr.c vfs_init.c sys/ufs/ffs ffs_vnops.c ffs_extern.h sys/ufs/lfs lfs_extern.h lfs_vnops.c sys/ufs/mfs mfs_vfsops.c mfs_vnops.c sys/ufs/ufs ufs_vnops.c sys/miscfs/nullfs null.h null_vnops.c sys/miscfs/deadfs dead_vnops.c sys/miscfs/fdesc fdesc.h fdesc_vnops.c sys/miscfs/fifofs fifo.h fifo_vnops.c sys/miscfs/kernfs kernfs.h kernfs_vnops.c sys/miscfs/portal portal.h portal_vnops.c sys/miscfs/procfs procfs.h procfs_vnops.c sys/miscfs/specfs specdev.h spec_vnops.c sys/miscfs/umapfs umap.h umap_vnops.c sys/miscfs/union union.h union_vnops.c sys/miscfs/devfs devfsdefs.h devfs_vnops.c sys/nfs nfsnode.h nfs_vnops.c sys/sys vnode.h sys/msdosfs denode.h msdosfs_vnops.c Log: Introduced a type `vop_t' for vnode operation functions and used it 1138 times (:-() in casts and a few more times in declarations. This change is null for the i386. The type has to be `typedef int vop_t(void *)' and not `typedef int vop_t()' because `gcc -Wstrict-prototypes' warns about the latter. Since vnode op functions are called with args of different (struct pointer) types, neither of these function types is any use for type checking of the arg, so it would be preferable not to use the complete function type, especially since using the complete type requires adding 1138 casts to avoid compiler warnings and another 40+ casts to reverse the function pointer conversions before calling the functions.