Commit Graph

115 Commits

Author SHA1 Message Date
remko
b9a03d8bb1 Correct the referenced securelevel document, it's now securelevel 7.
Pointed out by:	ru
2007-06-02 20:15:59 +00:00
imp
f6de1709c1 Use strlcpy in place of strncpy + setting the last character NUL. To
be safe, memset the entire msg to '0'.
2006-08-20 06:31:24 +00:00
ru
6bbac1a76d -mdoc sweep. 2005-11-17 12:15:23 +00:00
trhodes
c85026495e Note which options are not part of the standards.
Xref locale(1) and bump document date.

Reviewed by:	keramida
No Objections:	-standards
2005-11-01 19:31:25 +00:00
ru
1541af42f1 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ru
ffd9fd4c0e Add the new standard EXIT STATUS section where appropriate.
Sort standard sections in the (documented) preferred order.
2005-01-16 16:41:59 +00:00
imp
a76898b849 /*- or .\"- or #- to begin license clauses. 2005-01-10 08:39:26 +00:00
ru
1cd8ce95ba Scheduled mdoc(7) sweep. 2005-01-09 19:54:23 +00:00
yar
dd0f8a6792 Change the behaviour of `-v' so that, e.g., stepping a month back
on March 31 won't take you to March 2 or 3 (now the result will
be the last day of February.)

In general, now stepping by months from the last days of the current
month A will take you to the very last day of the target month B if
B is shorter than A.

The previous version would just step to March 31 and rely on mktime(3)
to correct the date.  Despite its simplicity, such way was counter-intuitive
to users and caused pain to shell script writers.

Noticed by:	Igor Timkin <ivt at gamma dot ru>
Approved by:	brian
MFC after:	2 weeks
2004-08-09 13:43:39 +00:00
alfred
bef73337d5 Give the most awesome example of how to parse the output of date
back into epoch time.  Everytime I'm asked to do this by someone I
have to spend about ten minutes recreating the same command line.
So record it under examples.
2004-07-17 00:26:31 +00:00
ru
305463f129 Deal with double whitespace. 2004-07-03 00:06:28 +00:00
ru
d40c857e0d Mechanically kill hard sentence breaks. 2004-07-02 21:04:19 +00:00
ru
deac0b719c DESCRIPTION was not updated for the new SYNOPSIS. 2004-05-16 21:33:48 +00:00
green
837e6e7a48 Give date(1) a much better SYNOPSIS section which is useful as more than
decoration.  Further improvements are welcome, but at least this
is a separate of the various modes of operation date has, as well as
sectioning off the two deprecated options for settimeofday(tz) that
don't even apply to actual operation of date as such, anyway.
2004-04-06 22:03:38 +00:00
markm
4383f14801 Remove clause 3 from the UCB licenses.
OK'ed by:	imp, core
2004-04-06 20:06:54 +00:00
mtm
89c298d8ab Rev. 1.32 moved a comment to the wrong line. The hack refered to
in the comment applies to a decision that needs to be made in relation
to the year 2000.

In fact, that statement probably should be changed to be
more generic (getting the year from the current time perhaps). Otherwise,
starting in 2069 two digit year conversions in date(1) will start assuming
1900 instead of 2000. hehe.
2004-03-04 15:46:14 +00:00
obrien
c7cb1aef08 Note the Linux required format. 2004-01-06 19:01:34 +00:00
dds
bf121d8ed4 Check for write errors; report and exit with error value. 2003-10-04 07:16:40 +00:00
markm
aafc494847 Get this area compiling with the highest WARNS= that it works with.
Obsolete WFORMAT= junk also removed where possible.

OK'ed by:	obrien
Tested on:	sparc64, alpha, i386
2003-06-13 07:04:02 +00:00
ru
8b5b8ec6a7 mdoc(7) police: markup laundry. 2003-02-23 01:47:49 +00:00
obrien
def2990baf Add an example to help one manually set the date on one machine taking the out
put from another.
2003-02-18 23:12:55 +00:00
charnier
712128a7b6 Enclose sccsid according to style(9).
udp/timed -> timed/udp
2003-02-05 12:56:40 +00:00
markm
bede8be9eb Staticify for lint. 2002-10-18 14:48:48 +00:00
fanf
bb7f39d2ed Fix some twelve hour clock braindamage. The range for hours is 0-23 not 1-12.
MFC After: 1 week
2002-10-03 14:11:29 +00:00
obrien
c84c569bd1 Consistently use __FBSDID 2002-06-30 05:13:54 +00:00
keramida
3eeaf63c36 Use socklen_t for the length of a socket structure instead of `int'.
Reviewed by:	mike
2002-06-09 04:18:45 +00:00
trhodes
ba4684c0e7 s/CMOS/hardware as talked about on cvs-committers.
Suggested by:   sheldonh
Approved by:	bde
MFC after:	1 day
2002-04-16 14:28:47 +00:00
trhodes
4afe0b0679 Little nit pick in date(1) manual page, tell users which clock date(1)
sets

PR:		35606
2002-04-15 18:05:14 +00:00
markm
7b7558d884 Fix warnings inspired by lint, a commercial lint and WARNS=4. 2002-02-22 20:51:00 +00:00
kris
bb3058824a Lock down with WFORMAT=1 except those directories with unfixed warnings.
Tested on i386 and alpha.
2002-02-04 02:49:19 +00:00
imp
5203a0a465 o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style
o register has been removed
o prototype for main() has been removed (gcc3 makes it an error)
o int main(int argc, char *argv[]) is the preferred main definition.
o Attempt to not break style(9) conformance for declarations more than
  they already are.

Approved by: arch@, new style(9)
2002-02-02 06:24:13 +00:00
obrien
099f8ecbe9 Default to WARNS=2. Binary builds that cannot handle this must explicitly
set WARNS=0.

Reviewed by:	mike
2001-12-04 01:57:47 +00:00
dillon
78601098af Remove assumption that time_t is an int
MFC after:	1 day
2001-10-28 02:28:04 +00:00
ru
4345758876 mdoc(7) police:
Avoid using parenthesis enclosure macros (.Pq and .Po/.Pc) with plain text.
Not only this slows down the mdoc(7) processing significantly, but it also
has an undesired (in this case) effect of disabling hyphenation within the
entire enclosed block.
2001-08-07 15:48:51 +00:00
dd
a145482cf6 Remove whitespace at EOL. 2001-07-15 07:53:42 +00:00
ru
640330f7ff Simplify, with the power of new mdoc(7). 2001-06-09 11:20:31 +00:00
dd
0383b1c18b Add -j to the usage string.
PR:		27986
Submitted by:	Cyrille Lefevre <clefevre@redirect.to>
2001-06-09 06:14:05 +00:00
ru
1ea506c6d5 Fix an off-by-hour bug when crossing Daylight Saving Time boundary.
PR:		bin/27399
Submitted by:	"Crist J. Clark" <crist.clark@globalstar.com>
MFC after:	3 days
2001-05-17 15:20:15 +00:00
fenner
50542906d3 Fix error reporting of delayed send errors. 2001-03-26 16:18:01 +00:00
dd
8b00b636d6 Make it clear that the -v option doesn't actually set the date.
PR:		24773
Approved by:	nik
2001-03-16 02:20:24 +00:00
ben
00a7cb7324 Document the restrictions on changing times in high securelevels.
PR:		23502
Submitted by:	Robert Boyd <rboyd@pokerspot.com>
2001-01-17 21:27:54 +00:00
ru
7d4677ab07 Prepare for mdoc(7)NG. 2000-12-19 15:30:26 +00:00
ru
d4cb36bcfe Prepare for mdoc(7)NG. 2000-12-15 17:37:31 +00:00
brian
9e880be273 Exit if malloc() returns NULL
Submitted by: Chris Faulhaber <jedgar@fxp.org>
2000-12-01 09:59:40 +00:00
ru
be1f850a8f mdoc(7) police: use the new features of the Nm macro. 2000-11-20 11:39:41 +00:00
imp
d5e7ddb4c9 Don't explicitly declare optarg and optind. These are declared in
unistd.h, which is already included.
2000-08-16 05:14:49 +00:00
jwd
bbd3aeb6e1 Try to clean the manpage up according to the mail from Sheldon
in committers (Message-Id: <72836.964344168@axl.ops.uunet.co.za>).

Also cleaned up a .Pq macro which was causing problems previous
to the original update I made.

Reviewed by:	sheldonh
Approved by:	jkh
2000-07-28 02:51:43 +00:00
jwd
45c2f34531 Expand the -r option to support hex. Though undocumented, the -r
option already supported octal. Add a comment to the -r option
in the man page so it's a bit more specific.

Discrepancy brought to my attention by: sasdrq@unx.sas.com
Approved by:	jkh
2000-07-22 22:08:39 +00:00
sheldonh
b76460656f Fix one grammar problem which crept in from rev 1.40 to rev 1.42, and
one mdoc problem from rev 1.40 (unnecessarily populated Nm macro).
2000-07-18 12:02:15 +00:00
marko
38f39cae5a Re-worded the description of the -r option
PR:		18792
Submitted by:	Bob Johnson <bobj@atlantic.net>
Approved by:	Alexander Langer <alex@freebsd.org>
2000-07-15 14:55:54 +00:00