Commit Graph

79 Commits

Author SHA1 Message Date
joerg 7e47a1209f Use __dead 2011-08-29 14:24:03 +00:00
christos 856f19c27d Provide a consistent date/time format instead of a
locale-specific one that might have 2 digit years
2011-08-14 13:41:17 +00:00
wiz ebdacac575 Punctuation nit, sendmail(8) -> (1). 2011-04-28 13:54:13 +00:00
christos b88895de6f PR/44147: Henning Petersen: Add missing closedir calls. 2010-11-24 17:40:41 +00:00
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
joerg f385dfc57f Don't escape %, but do escape DD and SS macros. OK wiz@ 2009-03-09 14:26:44 +00:00
lukem 0449f26fed fix -Wsign-compare issues 2009-01-18 01:02:41 +00:00
lukem aadf5fe187 Fix -Wsign-compare issues:
* Provide our own TOKEOF enum, rather than using stdio's EOF (which is signed)
* Use tokid_t instead of int where appropriate
2009-01-18 01:02:31 +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
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