HardenedBSD/sys/kern
David Greenman cddc961a83 Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"
in machdep.c (it should use the global nmbclusters). Moved the calculation
of nmbclusters into conf/param.c (same place where nmbclusters has always
been assigned), and made the calculation include an extra amount based
on "maxusers". NMBCLUSTERS can still be overrided in the kernel config
file as always, but this change will make that generally unnecessary. This
fixes the "bug" reports from people who have misconfigured kernels seeing
the network "hang" when the mbuf cluster pool runs out.

Reviewed by:	John Dyson
1995-05-25 07:36:24 +00:00
..
imgact_aout.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
imgact_gzip.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
imgact_shell.c
inflate.c Changes needed for kzip to work. 1995-04-15 06:54:13 +00:00
init_main.c NFS diskless operation was broken because swapdev_vp wasn't initialized. 1995-05-19 03:27:08 +00:00
init_sysent.c Make setreuid/setregid active syscalls 1995-04-23 12:22:06 +00:00
kern_acct.c
kern_clock.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_descrip.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-28 07:58:53 +00:00
kern_devconf.c Actually copy the class field over from the kernel to the user structure. 1995-04-13 15:33:14 +00:00
kern_exec.c Use 'p' rather than 'curproc' when appropriate. 1995-03-25 01:34:21 +00:00
kern_exit.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_fork.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_ktrace.c
kern_lkm.c Undo the stupidity I inflicted on these files and replace it with 1995-04-20 05:08:53 +00:00
kern_lockf.c
kern_malloc.c Make vegetarian and animal rights people happy and use 0xdeadc0de instead 1995-04-16 11:25:15 +00:00
kern_ntptime.c
kern_physio.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_proc.c
kern_prot.c set[ug]id(): call suser() only when neccesarry 1995-04-29 11:46:15 +00:00
kern_resource.c Implement maxprocperuid and maxfilesperproc. They are tunable 1995-02-20 19:42:42 +00:00
kern_sig.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_subr.c Improved hashinit panic strings. 1995-05-08 23:11:12 +00:00
kern_synch.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_sysctl.c The death of `options NODUMP'. Now the dump area can be dynamically 1995-05-12 19:17:31 +00:00
kern_tc.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_time.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_timeout.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
kern_xxx.c
Make.tags.inc
Makefile
makesyscalls.sh Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
md5c.c Clean a bunch of -Wall warnings. 1995-02-24 08:51:34 +00:00
subr_autoconf.c
subr_clist.c
subr_disklabel.c Woops, add back that #define...it's used later in the file. 1995-03-18 07:06:51 +00:00
subr_diskmbr.c Make the "information" slice printfs if(bootverbose). 1995-05-18 22:45:35 +00:00
subr_diskslice.c This should fix PR 438. Apparently I never tested disklabel on the block 1995-05-24 23:33:42 +00:00
subr_dkbad.c
subr_log.c Bruce is right - ENOTTY is more appropriate than EINVAL in this case. 1995-04-29 11:36:47 +00:00
subr_param.c Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS" 1995-05-25 07:36:24 +00:00
subr_prf.c Implement a simple hook (or hack?) to allow graphics device console 1995-04-08 21:32:11 +00:00
subr_prof.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
subr_rlist.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
subr_rmap.c
subr_trap.c Added a new version of trap_pfault() that disallows kernel page faults 1995-03-21 07:16:12 +00:00
subr_xxx.c
sys_generic.c Backed out previous change - it reduces performance. (oops). 1995-04-13 18:24:33 +00:00
sys_process.c pread/pwrite() should be static. 1995-05-12 21:39:48 +00:00
sys_socket.c
syscalls.c Make setreuid/setregid active syscalls 1995-04-23 12:22:06 +00:00
syscalls.master Make setreuid/setregid active syscalls 1995-04-23 12:22:06 +00:00
sysv_ipc.c
sysv_msg.c
sysv_sem.c
sysv_shm.c Use of vm_allocate() and vm_deallocate() has been deprecated. 1995-02-20 22:23:31 +00:00
tty_compat.c Extract "set" family functions to separate module, needed for 1995-04-11 17:54:25 +00:00
tty_conf.c Set it so you can add and remove line disciplines without replicating 1995-03-21 11:24:05 +00:00
tty_cons.c Undo the move of `#include "sc.h"' etc. to cons.h. It broke anything 1995-04-24 16:43:01 +00:00
tty_pty.c Call ptsstop in ptsclose instead of ptcwakeup 1995-04-10 01:45:43 +00:00
tty_snoop.c same 1995-02-27 19:47:53 +00:00
tty_subr.c
tty_tb.c
tty_tty.c
tty.c Make two "ttyout" ttysleep wmesg unique 1995-05-07 23:53:36 +00:00
uipc_domain.c Delete two debugging printfs that mistakenly crept in. 1995-05-11 00:16:44 +00:00
uipc_mbuf.c Special cased the handling of mb_map in the M_WAITOK case. kmem_malloc() 1995-03-15 07:52:06 +00:00
uipc_proto.c Make networking domains drop-ins, through the magic of GNU ld. (Some day, 1995-05-11 00:13:26 +00:00
uipc_sockbuf.c
uipc_socket2.c
uipc_socket.c getsockopt(s, SOL_SOCKET, SO_SNDTIMEO, ...) would construct the returned 1995-02-16 01:07:43 +00:00
uipc_syscalls.c Add and move declarations to fix all of the warnings from `gcc -Wimplicit' 1995-03-16 18:17:34 +00:00
uipc_usrreq.c Make networking domains drop-ins, through the magic of GNU ld. (Some day, 1995-05-11 00:13:26 +00:00
vfs_bio.c Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
vfs_cache.c Fixed serious off by one bug I introduced that will likely cause the 1995-04-15 00:49:35 +00:00
vfs_cluster.c Check for case of blkno already known to avoid unnecessary VOP_BMAP's. 1995-04-04 02:10:17 +00:00
vfs_conf.c
vfs_export.c Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
vfs_extattr.c Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
vfs_init.c
vfs_lookup.c
vfs_mount.c
vfs_subr.c Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
vfs_syscalls.c Changes to fix the following bugs: 1995-05-21 21:39:31 +00:00
vfs_vnops.c Unlock the vnode before sleeping on an OBJ_DEAD object. Should fix Bruce's 1995-05-10 18:59:11 +00:00
vnode_if.pl
vnode_if.sh
vnode_if.src