Commit Graph

99 Commits

Author SHA1 Message Date
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
alex
30480c8cb5 Now, the mdoc fixes, such as:
* remove hard sentence breaks
* use of Fl with Ar if argument available
* Dq -> Sq where better
* Ql -> Dq and Ql -> Fa where better
* include sections to Xr macro
* It Ar .ss -> It Ar ss
2000-07-14 15:49:36 +00:00
alex
7b1fd92a4d As per request by sheldonh and others on IRC, seperate language and mdoc
fixes (very important in this case).  Version 1.40 should be discarded.

This version includes the language diffs.  To receive them, use
cvs diff [-u] -r 1.39 -r 1.41
2000-07-14 15:38:38 +00:00
alex
60096aed79 Fix several language, style and mdoc improvements (such as correct
usage of .Xr and removal of hard sentence breaks).

PR:		18880
Submitted by:	Christian Weisgerber <naddy@unix-ag.uni-kl.de>
Obtained from:	OpenBSD (in parts)
2000-07-14 14:18:04 +00:00
mpp
1bcd874077 Grumble. The previous commit still had the wrong date in the
example.  Oct 29 0:30 +3 hours is still Oct 29, no matter what the
DST setting is, and not Oct 30..
2000-06-28 09:20:06 +00:00
mpp
e704e1d688 Typo fix.
PR:		docs/19554
Submitted by:	Kazuo Horikawa <horikawa@psinet.com>
2000-06-28 09:13:32 +00:00
brian
5f8304856e Mention the timezone where appropriate (for the -v option).
correct one of the -v options.
2000-06-22 10:02:33 +00:00
brian
de828c2a55 Propogate the ``call mktime'' flag from adjwday() down to adjday().
Submitted by: Christian Weisgerber <naddy@mips.inka.de>
2000-05-23 23:58:18 +00:00
dbaker
80efa7cbc3 Correct confusion and differentiate appropriately between GMT and UTC when
date is launched with the "u" argument.  It now operates in the documented
manner.

Fix typo in date man page.

Submitted by:	David McNett <nugget@slacker.com>
2000-05-19 18:02:25 +00:00
brian
0f8e1924fb Change -v so that variences in units of days or less are sensitive to
DST.  Explain in more detail what date -v does when mixed with DST.

Previous code suggested broken by: wollman
2000-04-12 13:35:17 +00:00
brian
85b9c1f90b Always give mktime a timeval with tm_isdst set to -1, otherwise
things get a bit out-of-phase when we step backwards 1 hour from
between 0:00 and 1:00 on the first of the month following the
transition into Summer time.  This is probably actually a bug
in mktime().

PR:	10963

If mktime() fails and 68 < year < 138, assume that the reason is
because of Summer time and adjust up or down according to our
adjusting context by one hour.  This assumes that all DSTs are
multiples of 1 hour.

PR:	6223, 17750
2000-04-05 01:59:36 +00:00
sheldonh
26931f649e Correct confusing description of the -r option.
PR:		17250
Submitted by:	cjclark@home.com (Crist J. Clark)
2000-03-07 20:54:17 +00:00
alfred
1f332c8378 Re-add "May" to the list of dates supported.
Approved by: jkh
2000-02-18 23:41:45 +00:00
brian
ec66b7bf35 Fix various mandoc bugs 2000-01-12 00:29:16 +00:00
sheldonh
506b57590b Back out previous commit and replace with a cleaner solution adapted
from the source attributed below.  In particular, this removes a goto
inside a switch and replaces those horrendous ATOI macros with
something acceptable.

More clean-ups to come.

PR:		bin/14151
Reported by:	Christian Weisgerber <naddy@mips.rhein-neckar.de>
Obtained from:	NetBSD
1999-12-29 16:50:08 +00:00
sheldonh
278d74a6af Allow the year to be specified with an optional century.
PR:	14472
Reported by:	j_guojun@lbl.gov (Jin Guojun)
1999-11-10 13:34:39 +00:00
peter
66312e4a8d $Id$ -> $FreeBSD$ 1999-08-27 23:15:48 +00:00