1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-15 10:17:20 +00:00

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.
*
* @(#)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>
@ -49,10 +49,10 @@
#include <sys/vnode.h>
#include <sys/proc.h>
#include <sys/file.h>
#include <sys/socket.h>
#include <sys/socketvar.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/filio.h>
#include <sys/ttycom.h>
#include <sys/fcntl.h>
#include <sys/malloc.h>
#include <sys/unistd.h>
@ -60,7 +60,6 @@
#include <sys/pipe.h>
#include <vm/vm.h>
#include <vm/vm_param.h>
#include <vm/vm_extern.h>
#ifdef DEVFS
@ -1089,7 +1088,7 @@ SYSCTL_PROC(_kern, KERN_FILE, file, CTLTYPE_OPAQUE|CTLFLAG_RD,
0, 0, sysctl_kern_file, "S,file", "");
SYSCTL_INT(_kern, KERN_MAXFILESPERPROC, maxfilesperproc,
CTLFLAG_RD, &maxfilesperproc, 0, "");
CTLFLAG_RW, &maxfilesperproc, 0, "");
SYSCTL_INT(_kern, KERN_MAXFILES, maxfiles, CTLFLAG_RW, &maxfiles, 0, "");