Commit Graph

71 Commits

Author SHA1 Message Date
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
christos 5f256bd3f7 Style cleanups from Anon Ymous 2008-04-05 16:26:57 +00:00
christos 45be95b786 add month names, from FreeBSD via anon ymous 2008-03-11 01:10:12 +00:00
christos 775ae7cec2 - add months + years in the language
- fix daylight savings bogus code
From FreeBSD via Anon Ymous
2008-03-11 01:04:18 +00:00
lukem db822d2217 Convert to using raise_default_signal(3). 2007-10-05 07:22:23 +00:00
lukem 2c1030d08e Attempt to raise the default signal handler (SIG_DFL) when exiting because
of a signal, rather than just relying upon exit(3).
2007-07-18 01:13:42 +00:00
lukem a93b9bed51 Remove duplicate printing of program name in panic().
Remove now-unnecessary global variable "namep".
2007-07-18 01:06:08 +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
mlelstv 0e442136ae allow time to be specified as 'now' instead of 'now + 0 minutes'
and avoid a rounding error for this case.
2007-03-12 21:28:48 +00:00
phil 4617d0a2bf Kill NULL deref (CID: 871)
Plug fd leak (not caught by coverity).
2006-03-21 21:59:56 +00:00
garbled 0f9fab16a0 Fix a spello, and change the intent of the message slightly. 2006-01-03 00:15:45 +00:00
garbled a25ab7d823 Change "garbled time" panic to a message that gives the user a better
idea of what happened.  Addresses PR bin/12463
2006-01-02 20:18:59 +00:00
tsutsui 6413f86a09 Fix more FALLTHOUGH -> FALLTHROUGH typo. 2005-11-26 13:57:27 +00:00
xtraeme 971b39df9c Kill __P(), use ANSI function declarations. 2005-02-17 16:53:45 +00:00
dsl ee9ce6e95c Add (unsigned char) cast to ctype functions
Make 'queue' and 'atqueue' unsigned char.
2004-10-30 16:55:06 +00:00
wiz 625282a3e9 Sync usage with man page. Closes PR 26191 by Kouichirou Hiratsuka. 2004-07-09 11:33:13 +00:00
wiz ee573c8cac Sort options, bump date. 2004-07-09 11:29:15 +00:00
jmmv b635f565e7 Homogenize usage messages: make the 'usage' word all lowercase, as this seems
to be the most common practice in our tree.
2004-01-05 23:23:32 +00:00
wiz 1dbb52e92c Fix typos, from Jared Yanovich. Forwarded by jmc@openbsd. 2003-10-21 09:03:25 +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
salo 0f5a0c156d netbsd.org->NetBSD.org 2003-07-26 20:34:11 +00:00
wiz 990562bfef .Nm does not need a dummy argument ("") before punctuation or
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
perry 1f4ad37fe3 "Utilize" has exactly the same meaning as "use," but it is more
difficult to read and understand. Most manuals of English style
therefore say that you should use "use".
2003-02-05 00:02:24 +00:00
itojun 8fcb6ec6c6 use strlcpy to ensure string termination 2002-11-16 04:31:15 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
christos f016a80baf don't include utmp.h 2002-08-01 22:39:14 +00:00
wiz 4b20971f01 Spell acquire with a 'c'. 2002-07-10 23:16:32 +00:00
ross 2a76afae02 Generate <>& symbolically. I'm avoiding .../dist/... directories for now. 2002-02-08 01:36:18 +00:00
wiz 862fdf44d8 Sort SEE ALSO, drop some whitespace, and sort sections. 2001-10-17 22:09:55 +00:00
lukem 279552d3db fix up various .Nm abuses:
- keep the case consistent between the actual name and what's referenced.
  e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
  using `.Nm ""' if there's stuff following, or for the 2nd and so on
  occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
bjh21 8a158ab667 Fix the date stamp 2000-10-15 15:44:03 +00:00
bjh21 e6ab0a31d4 Be optimistic about POSIX 2000-10-15 15:41:53 +00:00
bjh21 5cb0a986bd Fix RCSID 2000-10-15 15:33:46 +00:00
kleink ae9d978655 Add support for the 1003.2-92 -t option to at(1) using which the time may be
specified in a language-neutral way.  For symmetry, extend this to the
batch(1) front-end as well.  Addresses PR standards/11205.
2000-10-15 14:51:14 +00:00
mjl 9ff98d4d50 Un-__P and ANSIfy. 2000-10-04 19:24:59 +00:00
mjl 277079480a Correct typo in comment.
Use errx instead of printf/exit.
Sort headers alphabetically.
2000-10-04 19:14:53 +00:00
msaitoh f6f00e2615 remove extra period in SEE ALL section 2000-07-05 15:45:28 +00:00
simonb 3fbb9cf79f Use LOGIN_NAME_MAX for checking username length, not something based
on UT_NAMESIZE, also saves a call to getpwnam() and getpwuid() in
most cases.  Size columns correctly so output of atq lines up neatly.
Mostly de-lint.

Fixes PR bin/1489 from David Gilbert, among other things.
2000-06-25 13:35:48 +00:00
cgd db755e7c76 sweep of my licenses (userland files w/o only my copyright) for
consistency.  (no functional changes)
2000-06-14 17:24:02 +00:00
cgd d220ca5ba3 fix up NetBSD RCS Ids to match the standard, and the leading comment as
to match as well.  No functional changes.
2000-06-14 06:48:47 +00:00
mjl 23d5769e34 Correct wrong variable being tested in env parsing loop. Fixes
OpenBSD PR/1206.
2000-04-23 18:11:21 +00:00
tron ca8245133c Add timebase (1900 years) to system time before passing it to date time
parser. Fixes PR y2k/9122 by Lars-Johan Liman.
2000-01-06 00:44:09 +00:00
tron 4c5ce0e4da Unix system time starts in 1970 and not in 1969. 2000-01-06 00:34:38 +00:00
jwise a974606cce Add a flag `-r' synonymous to `-d' for compatibility with X/OPEN at. 1999-05-22 05:05:11 +00:00
ross ba7f3d913b Fix missing and misplaced .El's. 1999-03-09 02:41:39 +00:00
mycroft 401fdd3324 Compress the SYNOPSIS section. 1999-03-07 10:14:09 +00:00
mrg 7750ecc1f3 KNF nits. 1999-01-31 09:30:31 +00:00
tv 8cfe18e8d3 Add CWARNFLAGS+=-Wno-format-y2k. 1998-08-25 15:13:16 +00:00
ross 66fcc15333 Kill the CFLAGS+=-Wno-format-y2k; see the log message for bin/ps/Makefile 1998-08-25 07:44:16 +00:00
tv 19bef08688 This needs strftime()'s %y; use -Wno-format-y2k. 1998-08-21 19:39:41 +00:00