Commit Graph

27 Commits

Author SHA1 Message Date
lukem
c1ceae17f0 Enable WARNS=4 by default for usr.bin, except for:
awk  bdes  checknr  compile_et  error  gss  hxtool  kgetcred  kinit
	klist  ldd  less  lex  locale  login  m4  man  menuc  mk_cmds
	mklocale  msgc  openssl  rpcgen  rpcinfo  sdiff  spell  ssh
	string2key  telnet  tn3270  verify_krb5_conf  xlint
2009-04-14 22:15:16 +00:00
tls
4147a3c54a Add new Makefile knob, USE_FORT, which extends USE_SSP by turning on the
FORTIFY_SOURCE feature of libssp, thus checking the size of arguments to
various string and memory copy and set functions (as well as a few system
calls and other miscellany) where known at function entry.  RedHat has
evidently built all "core system packages" with this option for some time.

This option should be used at the top of Makefiles (or Makefile.inc where
this is used for subdirectories) but after any setting of LIB.

This is only useful for userland code, and cannot be used in libc or in
any code which includes the libc internals, because it overrides certain
libc functions with macros.  Some effort has been made to make USE_FORT=yes
work correctly for a full-system build by having the bsd.sys.mk logic
disable the feature where it should not be used (libc, libssp iteself,
the kernel) but no attempt has been made to build the entire system with
USE_FORT and doing so will doubtless expose numerous bugs and misfeatures.

Adjust the system build so that all programs and libraries that are setuid,
directly handle network data (including serial comm data), perform
authentication, or appear likely to have (or have a history of having)
data-driven bugs (e.g. file(1)) are built with USE_FORT=yes by default,
with the exception of libc, which cannot use USE_FORT and thus uses
only USE_SSP by default.  Tested on i386 with no ill results; USE_FORT=no
per-directory or in a system build will disable if desired.
2007-05-28 12:06:17 +00:00
christos
3ceb6c1c20 warns=4, pass lint. 2006-10-17 15:13:08 +00:00
kardel
75418af90c support timecounters (struct time gone, use time_second then) 2006-06-07 20:56:19 +00:00
blymn
7d866d268b Update statistics reporting to use new kernel framework, rename dkstats*
to a more generic name since it no longer just deals with disk.
2006-04-14 13:12:37 +00:00
blymn
71c77b437a Add support for tape statistics. 2005-08-07 12:23:20 +00:00
dsl
2229b6a79b WARNS=3 2005-02-26 21:19:18 +00:00
wiz
553c8f83e4 Move vmstat.8 to vmstat.1, since the program lives in /usr/bin now and is
not super-user-only.
Cf. short discussion on tech-userlevel.
2001-05-06 23:37:36 +00:00
chs
21eedb0ec1 the PMAP_NEW option is gone as the new interface is no longer optional. 1999-09-12 01:19:23 +00:00
mrg
d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
perry
ba7b5f16ff add -DPMAP_NEW if PMAP_NEW is on in mk.conf 1998-02-18 03:54:58 +00:00
mrg
279ce528ce add -DUVM to CPPFLAGS if defined(UVM) 1998-02-09 06:25:15 +00:00
thorpej
1eaf5ee379 New userland code to read the statistics kept by the NetBSD generic
disk framework, from John M. Vinopal <banshee@gabriella.resort.com>
1996-05-10 23:16:30 +00:00
cgd
8aa3aa9d93 always add sys/arch to include path 1995-05-07 22:15:57 +00:00
mycroft
88c838412f Put back the -I/sys/arch. 1994-12-28 18:39:53 +00:00
cgd
9e97520947 specify man pages the new way. 1994-12-22 12:30:38 +00:00
mycroft
ff5dbe5d15 If we don't -I/sys, then don't -I/sys/arch, either. 1994-10-06 15:53:14 +00:00
hpeyerl
8360c5f4ab ${.CURDIR} works better. 1994-05-30 19:12:36 +00:00
hpeyerl
c05316e969 Make this compile under hp300. 1994-05-30 17:10:14 +00:00
chopps
d4672d4405 add machine define if m68k arch. 1994-05-21 10:12:29 +00:00
cgd
8169628f13 rcsids 1994-05-11 07:35:54 +00:00
cgd
c5a09332b5 clean up import. also, stub read_names for the i386, and comment out
some refs to kmem stats fields that we don't have yet.  This will need
hacking, (1) for the various ports, (2) for the kmem stuff, and won't
work completely right until those happen, and until the new vm system
is integrated.
1994-05-11 07:34:05 +00:00
cgd
2a83433d4e clean, exported variable (and contents) changes 1994-04-15 07:07:23 +00:00
cgd
da1d84230b needs -lkvm, not -lutil 1994-01-28 00:48:33 +00:00
pk
0915419517 -I/sys --> -I${DESTDIR}/sys, to support cross-compilation. 1993-09-25 13:19:49 +00:00
mycroft
d0f8d5d2bb Add RCS identifiers. 1993-07-30 22:28:22 +00:00
cgd
dab5e017db added, from net/2 (patch 124). 1993-04-09 12:58:42 +00:00