Fixed bitrot in the read-only attribute:

- kern.maxfilesperproc was read-only (and thus essentially useless).

Removed unused #includes.  Strength-reduced used #includes.
This commit is contained in:
Bruce Evans 1996-09-28 16:33:21 +00:00
parent 7c1aacb5be
commit efebc4ab84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18541

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94 * @(#)kern_descrip.c 8.6 (Berkeley) 4/19/94
* $Id: kern_descrip.c,v 1.30 1996/06/17 16:54:03 wpaul Exp $ * $Id: kern_descrip.c,v 1.31 1996/08/15 16:33:32 smpatel Exp $
*/ */
#include <sys/param.h> #include <sys/param.h>
@ -49,10 +49,10 @@
#include <sys/vnode.h> #include <sys/vnode.h>
#include <sys/proc.h> #include <sys/proc.h>
#include <sys/file.h> #include <sys/file.h>
#include <sys/socket.h>
#include <sys/socketvar.h> #include <sys/socketvar.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/ioctl.h> #include <sys/filio.h>
#include <sys/ttycom.h>
#include <sys/fcntl.h> #include <sys/fcntl.h>
#include <sys/malloc.h> #include <sys/malloc.h>
#include <sys/unistd.h> #include <sys/unistd.h>
@ -60,7 +60,6 @@
#include <sys/pipe.h> #include <sys/pipe.h>
#include <vm/vm.h> #include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_extern.h> #include <vm/vm_extern.h>
#ifdef DEVFS #ifdef DEVFS
@ -1089,7 +1088,7 @@ SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD,
0, 0, sysctl_kern_file, "S,file", ""); 0, 0, sysctl_kern_file, "S,file", "");
SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc, SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc,
CTLFLAG_RD, &maxfilesperproc, 0, ""); CTLFLAG_RW, &maxfilesperproc, 0, "");
SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, &maxfiles, 0, ""); SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, &maxfiles, 0, "");