keihan
c9c20433ad
Revert last change, as this is a 3rd-party file, noted by kleink@.
2003-12-05 06:56:19 +00:00
keihan
39d96c1f34
netbsd.org -> NetBSD.org
...
NetBSD.ORG -> NetBSD.org
Now src/lib is done.
2003-12-04 23:39:18 +00:00
kleink
26198324b4
Merge tzcode2003d.
2003-10-29 20:43:27 +00:00
kleink
dc2bc4a89d
Import tzcode2003d.
2003-10-29 20:19:13 +00:00
lukem
171d653219
Overhaul how `build.sh tools' are used:
...
* Rename "config.h" to "nbtool_config.h" and
HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H.
This makes in more obvious in the source when we're using
tools/compat/config.h versus "standard autoconf" config.h
* Consistently move the inclusion of nbtool_config.h to before
<sys/cdefs.h> so that the former can provide __RCSID() (et al),
and there's no need to protect those macros any more.
These changes should make it easier to "tool-ify" a program by adding:
#if HAVE_NBTOOL_CONFIG_H
#include "nbtool_config.h"
#endif
to the top of the source files (for the general case).
2003-10-27 00:12:41 +00:00
wiz
dca9ccd375
Use St -isoC-9X instead of St -isoC9X, to be in sync with groff.
2003-09-08 17:54:31 +00:00
jhawk
4b3391a2a6
%F is a date conversion, not a time converstion.
...
don't bother to bump Dd
2003-09-03 16:10:56 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
wiz
23ea338b1b
Use a better width argument.
2003-06-30 12:02:08 +00:00
wiz
472351e13d
Use
...
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
christos
7c8015e7ec
s/_REENT/_REENTRANT/
2003-01-18 17:10:56 +00:00
itojun
9134efabd0
use strlcpy where it is more appropriate.
2002-11-17 01:51:24 +00:00
kleink
ae475f81fe
Fix typo UCT -> UTC; from Christian Biere in PR lib/19007.
2002-11-10 19:51:47 +00:00
itojun
76423b2378
license clarification, from openbsd
2002-10-02 06:56:24 +00:00
wiz
52d8d77b60
New sentence, new line. From Robert Elz.
2002-10-01 18:15:59 +00:00
yamt
83b485596b
note that month and weekday names are case-insensitive.
...
from OpenBSD.
2002-08-18 06:43:32 +00:00
yamt
7c3f1b1f60
note that the contents of the array are undefined in the error case.
2002-08-18 06:31:09 +00:00
yamt
e72273def3
- Mention leap seconds as the reason for (00-61)
...
- include blurb about ISO 8601 dates straight from strftime.c
from OpenBSD.
2002-08-18 06:27:49 +00:00
wiz
d56bb7c2ec
__STDC__ is always defined on NetBSD.
2002-05-26 11:48:00 +00:00
bjh21
bde73607cc
Pull in config.h when we're building zic as a host tool.
...
This makes zic compilable with Sun WorkShop C 5.0.
2002-04-26 17:31:54 +00:00
groo
5fe77d3e2d
botched strncpy -> strlcpy
...
from xs@kittenz.org
2002-04-16 19:20:51 +00:00
ross
b47221844a
fix isolated collateral damage from <>& churn
2002-02-10 02:46:27 +00:00
ross
dc5571b22e
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:21:55 +00:00
ross
814f296b77
Generate <>& symbolically.
2002-02-07 07:00:09 +00:00
kleink
d4a9806f67
Delint me harder.
2002-01-29 12:58:32 +00:00
kleink
4521dc7de4
Merge tzcode2002b.
2002-01-29 12:40:33 +00:00
kleink
91b3efb135
Import tzcode2002b.
2002-01-29 12:30:41 +00:00
wiz
b3936fdebf
Fix .Bd argument. Pointed out by mrg.
2002-01-02 03:25:08 +00:00
kleink
327f6e3bc2
Document %z.
2001-12-13 22:11:27 +00:00
kleink
ea8bbaf8e1
Sort conversion specifiers.
2001-12-10 10:01:38 +00:00
lukem
50f5afd52e
fix WARNS=2 (-Wshadow) warnings
2001-11-04 13:57:29 +00:00
wiz
a7f335fd25
mdoc'ify
2001-09-16 18:02:44 +00:00
wiz
4405028509
mdoc'ify
2001-09-16 16:53:45 +00:00
wiz
8904bab14d
Sort SEE ALSO.
2001-09-16 01:35:53 +00:00
atatat
90de954410
If the TZ environment variable was set to the empty string, a call to
...
ctime() would get a bus error (or a segmentation fault). Setting these
variables eliminates that problem.
Fixes pr lib/12750.
2001-04-27 14:21:15 +00:00
kleink
7be2be4b36
No need for <sys/types.h>.
2001-04-07 16:14:44 +00:00
kleink
d8fe668b8f
Add a LIBRARY section.
2001-04-07 16:13:32 +00:00
wiz
2c7d48475b
mdoc'ify. With a tip of the hat to kleink.
2001-04-02 21:26:21 +00:00
wiz
b37c366b3f
Improve some markup.
2001-04-02 20:49:57 +00:00
wiz
3a3aafcf17
Fix format typo, and whitespace.
2001-04-02 20:48:38 +00:00
kleink
cd11a7a9fa
Add a daylight(3) link as well. XXX Can't link to timezone(3) yet.
2001-03-31 19:00:56 +00:00
kleink
9b04b6e1a5
Oops, missed type change in previous.
2001-03-31 18:45:38 +00:00
kleink
a495a577a0
Finally deprecate the old timezone() interface in favor of an XSH5
...
timezone/daytime pair; as proposed by J.T. in September, 1996.
Fixes PR standards/11807 by Nick Hudson.
2001-03-31 18:29:20 +00:00
kleink
b1cc53ab31
While I'm here, add a LIBRARY section.
...
XXX Someone should lift this to our mdoc.
2001-03-29 20:56:30 +00:00
kleink
49cc52fbf7
Declaration syntax nit.
2001-03-29 20:54:06 +00:00
kleink
8ca649a389
Sprinkle some restrict.
2001-03-29 19:06:39 +00:00
jdolecek
90a4ab0deb
add forgotten argument name to actime_r() prototype
2001-01-25 20:55:51 +00:00
cgd
9ac9838b47
#undef, not #undefine.
2001-01-16 02:38:17 +00:00
christos
52b46a0f13
fix u_char -> char and char -> u_char casts.
2000-12-20 20:56:34 +00:00
cgd
b2b63ed4f4
Newer GCCs give warnings when the result of preprocessor token pasting
...
is not itself a valid (single) preprocessor token. In other words, don't
use __CONCAT() to add a structure member name to a pointer dereference.
2000-12-19 22:20:48 +00:00
kleink
64b3c7fc9d
Reflect current situation: we're using the tzcode-maintained strftime now.
2000-12-12 15:36:49 +00:00
kleink
12f15ca014
Merge strftime from tzcode2000g.
2000-12-12 15:35:31 +00:00
kleink
b883dd18d1
Merge tzcode2000g.
2000-12-12 15:25:41 +00:00
kleink
8e2eabaa3d
Import tzcode2000g.
2000-12-12 15:21:09 +00:00
christos
94a9754eeb
#ifdef out duplicate declaration for unlink.
2000-12-10 03:56:31 +00:00
is
f518246fc1
Format string cleanup, by Bill Sommerfeld.
2000-10-10 18:09:25 +00:00
msaitoh
f9b799b651
check LIBC_SCCS
2000-09-13 22:32:25 +00:00
taca
413b89b272
- Fix strftime(3) not to ignore tm_zone filed of last parameter,
...
and "%Z" in format string is converted as proper time zone.
This was taken from tzcode2000f. Fix PR lib/10950.
2000-09-07 12:45:03 +00:00
hubertf
4b1e8fc34a
make usage fit into 80 columns
2000-08-02 15:17:20 +00:00
kleink
87699890a9
* Use standard interval notation for struct tm members.
...
* Document tm_isdst as DST flag, not summer time.
2000-07-10 12:39:39 +00:00
itohy
7daefc5a5a
Passing "char" values to ctype(3) functions is problematic.
...
If an argument of a ctype function is outside "unsigned char"
and if it is not EOF, the behavior is undefined.
The isascii(3) is the sole exception of above and it was used to
be used to check a value was valid for other ctype functions in
ancient systems. On modern systems, the ctype functions take
all values of "unsigned char", and this check is obsolete and
even wrong for non-ASCII systems. However, we leave the isascii()
untouched for now, so as not to change the current behavior.
2000-07-07 08:03:36 +00:00
kleink
b5b9011dbf
Note that localtime_r() does not imply tzset(); inspired by a conversation
...
with Hal Murray in the trail of PR lib/10282.
2000-07-06 16:19:15 +00:00
hubertf
7570e9053d
Improve description for tm_year and some other fields.
...
May prevent PRs like 10521 in the future.
2000-07-06 12:44:31 +00:00
kleink
0c86310df7
Pasto in previous.
2000-06-05 12:01:47 +00:00
kleink
b72e2b11b8
Move orphaned information to tzset(3).
2000-06-05 11:56:13 +00:00
mycroft
605490369c
Delint.
...
Remove trailing ; from uses of __weak_alias(). The macro inserts this if
needed.
2000-01-22 22:19:07 +00:00
kleink
cc34c654dc
Add the C99 %F conversion.
2000-01-15 16:59:05 +00:00
kleink
e092d92063
Merge tzcode1999i.
1999-11-16 22:41:02 +00:00
kleink
ae7e338dbb
Merge tzcode1999h.
1999-11-10 20:32:30 +00:00
erh
20678a0621
PR 5057 - fix %k to print a 0, not just spaces. (%e too). Patch from NAKAJIMA Yoshihiro.
1999-11-05 19:21:12 +00:00
kleink
76c34aa87f
Add documentation for asctime_r(), ctime_r(), gmtime_r() and localtime_r().
1999-05-04 15:34:50 +00:00
tv
d6b5fedecb
Use correct number of digits as described in lib/7001. This brings us
...
pretty close to UNIX98, but %U and %W still don't work.
1999-04-29 02:58:30 +00:00
kleink
317455d895
Merge tzcode1999b.
1999-02-08 18:00:19 +00:00
augustss
32482e1058
Compute week number right. Fixes PR 6961, from
...
Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
1999-02-07 17:33:30 +00:00
sommerfe
322be18c08
Fix pr6517: strftime %s returns unterminated string
1998-12-01 16:07:11 +00:00
christos
f4c1479174
delint
1998-11-15 17:10:30 +00:00
kleink
d898f65fdd
Need an internal name for tzname.
1998-10-16 12:56:44 +00:00
kleink
b0d97e66b2
Oops, also needs "namespace.h".
1998-10-08 12:18:18 +00:00
kleink
eaf4c8b985
Converts an extracted tzcode distribution into the format suitable for
...
importing it into the NetBSD source tree.
1998-10-05 19:44:53 +00:00
kleink
be296d891c
Merge tzcode1998h.
1998-10-04 19:27:55 +00:00
kleink
4761eb87c0
Frob internal state keeping to make strftime() reentrant.
1998-09-27 16:41:20 +00:00
kleink
38876f6260
Protect local time state and GMT data initialization with a readers/writer lock
...
and a mutex, respectively.
1998-09-13 16:26:14 +00:00
kleink
1fd2228f99
Restore `elsieid' accidently clobbered during merge.
1998-09-11 11:35:21 +00:00
kleink
645061225a
Replace `unix' in two feature tests (slid through my test machine's compiler
...
update window).
1998-09-11 10:55:55 +00:00
kleink
91e1adbe6e
Merge tzcode1998f.
1998-09-10 15:58:38 +00:00
kleink
0e8ab3112e
Fix the approximation of log10(2.0) used in INT_STRLEN_MAXIMUM; this resulted
...
in a fair amount of space wasted in the static result buffer used in
asctime(). Noticed by Randy Thelen <rthelen@netapp.com> on tz@elsie.
1998-09-09 11:32:13 +00:00
kleink
16afbbecd6
Cosmetical changes, and squash some lint.
1998-09-07 14:11:37 +00:00
veego
13e0e871f8
Fix new egcs warnings (might be used uninitialized).
1998-08-20 13:36:25 +00:00
mycroft
4794fc63fe
Slight adjustment needed for previous.
1998-07-28 20:28:04 +00:00
mycroft
7d3593c1e4
Add -DALL_STATE, to allocate localtime() data structures dynamically.
1998-07-28 20:26:01 +00:00
mycroft
131e747015
Make these compile without __AUDIT__.
1998-07-27 09:47:44 +00:00
mycroft
3d7514132e
const poisoning.
1998-07-26 16:01:12 +00:00
mycroft
f4a2a13036
const poisoning.
1998-07-26 13:00:41 +00:00
tv
74e388d273
Fubar: XPG4 (SUS'98) _does_ specify two digit year behavior without %C.
...
Change text back to "conforms to."
1998-05-05 14:24:00 +00:00
tv
db7189d433
As inspired by PR #5268 from jpo@easterngraphics.com:
...
- make string comparisons case-insensitive
- add description of whitespace in the format string
- note that %t and %n match no whitespace as well as some whitespace
- change wording of standard to say "includes all requirements of"
instead of "conforms to" XPG4 as our %y is extended beyond XPG4
1998-05-05 14:15:32 +00:00
tv
c7e3d05330
Correct doc for tm.tm_sec to document range 0..61, not 0..60 (strptime(3)
...
legally assigns 61 here if specified by the user)
1998-03-19 16:26:35 +00:00
tv
3c5e426d70
Fixes from PRs 5056 and 5161, partly rethought:
...
- %C and %y can be used in conjunction properly, though %y can have its
old behaviour if used without %C
- %I formats hous 0..11 with 0 representing "12"; this is correct both
with and without am/pm (%p rule fixed to compensate)
- %j fixed for range [0..365] in struct tm
- %m fixed for range [0..11] in struct tm
- %S fixed for range [0..61] in struct tm
1998-03-19 16:21:35 +00:00
kleink
59ea4930e2
Change interval specification style from (a-b) to [a,b] where appropriate.
1998-02-11 18:52:24 +00:00
perry
312aca536f
add LIBRARY section to man page
1998-02-05 18:45:17 +00:00
jtc
c9f8519040
sync with tzcode1998b
1998-01-22 07:17:18 +00:00