Subject: declaration of `vnops' to sys/file.h?
To: None <tech-kern@netbsd.org>
From: Assar Westerlund <assar@sics.se>
List: tech-kern
Date: 01/30/2000 19:29:11
Are there any objections to me applying the simple patch below?

/assar

--- src/sys/file.h~	Tue Aug  3 22:19:21 1999
+++ src/sys/file.h	Sun Jan 30 17:01:59 2000
@@ -122,6 +122,8 @@
 extern int maxfiles;			/* kernel limit on number of open files */
 extern int nfiles;			/* actual number of open files */
 
+extern struct fileops vnops;		/* vnode operations for files */
+
 int	dofileread __P((struct proc *, int, struct file *, void *, size_t,
 	    off_t *, int, register_t *));
 int	dofilewrite __P((struct proc *, int, struct file *, const void *,
--- kern/exec_script.c~	Fri May  7 19:38:41 1999
+++ kern/exec_script.c	Sun Jan 30 17:02:09 2000
@@ -172,7 +172,6 @@
 #endif
 	    ) {
 		struct file *fp;
-		extern struct fileops vnops;
 
 #if defined(DIAGNOSTIC) && defined(FDSCRIPTS)
 		if (epp->ep_flags & EXEC_HASFD)
--- kern/vfs_syscalls.c~	Mon Nov 15 19:49:09 1999
+++ kern/vfs_syscalls.c	Sun Jan 30 17:02:14 2000
@@ -985,7 +985,6 @@
 	int type, indx, error;
 	struct flock lf;
 	struct nameidata nd;
-	extern struct fileops vnops;
 
 	flags = FFLAGS(SCARG(uap, flags));
 	if ((flags & (FREAD | FWRITE)) == 0)
@@ -1113,7 +1112,6 @@
 	struct flock lf;
 	struct vattr va;
 	fhandle_t fh;
-	extern struct fileops vnops;
 
 	/*
 	 * Must be super user