Commit Graph

25 Commits

Author SHA1 Message Date
joerg cfac3cac2b ANSIfy, static + __dead 2011-09-06 18:28:58 +00:00
lukem 2d873641b5 Fix WARNS=4 issues (-Wcast-qual -Wsign-compare) 2009-04-13 07:10:25 +00:00
lukem 98e5374ccb Remove the \n and tabs from the __COPYRIGHT() strings.
Tweak to use a consistent format.
2008-07-21 14:19:20 +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
liamjfoy 5bafb9022a reference uptime(1) correctly
ok joerg@
2006-05-13 12:41:54 +00:00
christos e64d9da627 Rewrite a macro in order to eliminate an unused global variable (Liam Foy) 2005-09-12 16:16:23 +00:00
wiz 685850e192 Grammar fix. 2005-09-09 20:27:26 +00:00
christos 573f57f885 Say which daemon produces the data and correct the default of 3 minutes
(Liam Foy)
2005-08-09 23:28:59 +00:00
agc 89aaa1bb64 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
mjl edfa017784 ANSIfy, alphabetize arguments. 2001-01-05 07:14:46 +00:00
ad 53cb8f368d PR 11667: ruptime output is unpretty for uptimes in excess of 99 days. Give
us one more column to play with, and expand the field size by one.
2000-12-31 17:35:20 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos cfb06221ce brace police 1998-12-19 21:44:31 +00:00
hubertf ea6f9b1d69 Print sane values on uptime >1 year, per PR 5318 by Heiko Rupp 1998-04-19 19:52:33 +00:00
lukem 208c50b8fb WARNSify, deprecate register 1997-10-19 14:26:26 +00:00
lukem 9bd92c9311 WARNSify, deprecate register 1997-10-19 14:26:23 +00:00
cgd 31b388d823 add rwhod(8) xref 1997-03-08 22:23:19 +00:00
tls b871569837 Sync to 4.4BSD-Lite2 1997-01-09 15:17:30 +00:00
cgd 6c0c0c32bd fix from Alan Coopersmith <alanc@ocf.berkeley.edu> for un-initted variable 1994-04-05 02:18:43 +00:00
jtc a3881ff7a8 Use <dirent.h> instead of <sys/dir.h>. 1993-12-04 01:49:05 +00:00
jtc d4b99cd909 Add rup to SEE ALSO section.
Data files are stored in /var/rwho, not /usr/var/rwho.
1993-09-16 01:42:41 +00:00
mycroft e9d867ef50 Add RCS identifiers. 1993-08-01 17:54:45 +00:00
mycroft c3e42d1c64 Add RCS indentifiers. 1993-08-01 07:22:47 +00:00
mycroft 75ff3a90bd Add RCS identifiers. 1993-07-30 23:49:23 +00:00
cgd e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00