Added file kern_opt.c for putting warnings about defunct options in.

Warn about recently removed option EXTRAVNODES and about other rubbish
that hasn't been put in opt_defunct.h yet.
This commit is contained in:
Bruce Evans 1997-01-16 13:31:55 +00:00
parent 5131d64e0c
commit f7b630a403
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21771
2 changed files with 18 additions and 0 deletions

View File

@ -56,6 +56,7 @@ kern/kern_lockf.c standard
kern/kern_malloc.c standard
kern/kern_mib.c standard
kern/kern_ntptime.c standard
kern/kern_opt.c standard
kern/kern_physio.c standard
kern/kern_proc.c standard
kern/kern_prot.c standard

17
sys/kern/kern_opt.c Normal file
View File

@ -0,0 +1,17 @@
#include "opt_defunct.h"
#ifdef CHILD_MAX
#warning "obsolete option CHILD_MAX - rename it to PROC0_RLIMIT_NPROC"
#endif
#ifdef GATEWAY
#warning "obsolete option EXTRAVNODES - use `sysctl -w kern.maxvnodes=value'"
#endif
#ifdef GATEWAY
#warning "obsolete option GATEWAY - use `sysctl -w net.inet.ip_forwarding=1'"
#endif
#ifdef OPEN_MAX
#warning "obsolete option OPEN_MAX - rename it to PROC0_RLIMIT_NOFILE"
#endif