Commit Graph

379 Commits

Author SHA1 Message Date
dholland
2264536172 Note briefly how to avoid the problem where 0 can be a valid successful
return as well as an error. Suggested by Robert Elz in follow up to PR 39392.
2010-05-29 20:32:18 +00:00
pgoyette
c795d9ed89 Remove repeated text "After filling..."
XXX Someone else can decide whether we should refer to "U.S.A." or to
XXX "the United States" in the parenthetical.
2010-05-15 13:54:52 +00:00
jruoho
61564b38a1 Note the ambiguity of the return value in the BUGS section.
From Christian Biere <christianbiere@gmx.de> in PR #39392.
2010-04-29 10:03:12 +00:00
drochner
ebfe3c0a28 remove some stray __weak_aliases, where the target functions were
__RENAMEd due to the time_t/dev_t type changes, which caused bogus
references to compat functions
now a libc built with BUILDCOLD is usable
2010-03-23 20:28:58 +00:00
christos
48bf0eec29 Fix a bug reported by Gene, and debugged by Robert Elz. fsck_ffs can coredump
if the timezone file fails to load, due to late initialization of sp->goahead
to false in tzload, causing localsub to return NULL in the "cannot happen"
case. The fix is belt and suspenders:
	- initialize sp->goback and sp->goahead very early in tzload
	- replace all malloc calls with callocs, and remove the bogus
	  casts (it is not the 70's anymore!)
2010-02-17 17:25:55 +00:00
wiz
368f216930 Remove trailing whitespace. Use Fn when referencing functions. Sort sections.
New sentence, new line.
2010-02-03 08:47:40 +00:00
christos
e89ba73a47 According to TOG:
- asctime{,_r}, ctime{,_r} may return NULL; document that, and avoid coredumps.
- gmtime{,_r}, localtime{,_r} may return NULL and set EOVERFLOW, document and
  set errno.
- when mktime returns (time_t)-1, make it set EOVERFLOW and document it.

XXX: Should be pulled up to 5.x
2010-02-02 19:04:37 +00:00
joerg
635076e0b1 Fix mdoc(7)/man(7) mix up. 2010-01-08 23:14:13 +00:00
joerg
69ebc5167f Fix up mix of man(7)/mdoc(7). 2010-01-08 19:20:21 +00:00
joerg
71f3cc8605 Try to fixup the mess of mdoc(7)/man(7) mixture as created by the merge. 2010-01-08 17:16:56 +00:00
tsutsui
47ef4e54e9 Include "nbtool_config.h" for src/tools/zic/ and
remove bogus -DNOID to disable __RCSID().

XXX: should we also remove #ifndef lint from scheck.c and zic.c?
2010-01-02 10:42:49 +00:00
mlelstv
86162a51cc Import tzcode2009k.
- now understands 64bit time_t and 64bit data in timezone files.
- localtime(), gmtime(), asctime() and ctime() may now fail with
  a NULL result if time_t cannot be represented by struct tm.
2009-12-31 22:49:15 +00:00
matt
f3848e2eb2 Back errant change due to botched merge. 2009-12-14 20:45:02 +00:00
matt
c7af27854b Suppress a warning if time_t is __int64_t 2009-12-14 05:51:56 +00:00
mbalmer
4c993ba354 one more the 2009-11-22 18:07:39 +00:00
mlelstv
7aea3a0d0a import tzcode2009k 2009-10-25 16:20:16 +00:00
mlelstv
df0cec4903 With 64bit time_t years can be negative and lapyear computation
requires rounding down. This avoids an infinite loop in localtime().
2009-10-24 17:01:04 +00:00
ginsbach
48dc241150 Crank date for previous. 2009-05-24 02:30:17 +00:00
ginsbach
98fa92ea04 Add %s to strptime(3) to make symmetric with strftime(3). 2009-05-24 02:25:43 +00:00
jakllsch
6a0e3cf139 Update MLINKS to match the flist. 2009-05-15 02:23:42 +00:00
ginsbach
c8da0e5fef Add the getdate(3) function and getdate_err value, conforming to IEEE
Std 1003.1 (``POSIX.1'') and the Open Group Base Specifications X/Open
System Interfaces extension (``XSI'').
2009-05-14 02:37:35 +00:00
wiz
15dfd8155b Drop trailing whitespace. 2009-05-01 21:34:45 +00:00
ginsbach
8f7e60d3bc Extend %z to support all RFC-2822 timezone formats. 2009-05-01 20:15:05 +00:00
lukem
b129d71a05 Fix -Wcast-qual issue 2009-04-23 01:39:47 +00:00
joerg
868fe66e65 Add missing quotes. 2009-04-11 16:29:09 +00:00
joerg
71c479831e Fix markup. 2009-04-11 16:13:49 +00:00
joerg
a7d7c3857f Remove redundant .IP. Remove use of .Xo/Xc to workaround ancient macro
argument limit.
2009-03-10 23:25:32 +00:00
joerg
997634fe14 Fix preamble to match order set out by mdoc(7). Discussed with wiz. 2009-03-09 19:24:26 +00:00
drochner
fb535ac77e Make mktime(3) work with 64-bit time_t.
The problem is that the tm_year field of "struct tm" is just an "int"
(per POSIX), and thus time_t values >  2^31*60*60*24*365 cannot
be converted. This made mktime(3) fail even if no such large time values
were passed in by user code because the algorithm does a binary search
over the time_t range which fails if a probe value cannot be converted.
To fix this, limit the time_t range to be scanned to 55 bits (which
is a bit on the safe side, but still good until y570855533).
This is more a stopgap fix, the overflow should be checked for
at other places as well (eg localtime(3)), and there are some more
limitations in timezone parsing code.
2009-01-18 10:57:15 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
christos
9f012c8aed don't forget to use neg. 2008-11-04 21:08:33 +00:00
christos
2844d6eadc we don't need * 2008-11-04 20:17:56 +00:00
christos
b4be570207 Our new syslogd seems to want to depend on %z which is a gnu extension.
- While here, add all the rest of gnu extensions: %g, %G, %u.
- Fix long standing bug where %Z would not work because "private.h" was
  not included. (Hi Brian!)
2008-11-04 18:37:28 +00:00
christos
40d362f8e0 malloc(3) and getenv(3) affect errno; make sure we save and restore it
Reported by Andy Shevchenko
2008-08-27 08:49:03 +00:00
dholland
d617ea4585 Fix handling of legacy global variable timezone outputs. PR misc/22221. 2008-05-25 06:18:06 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ginsbach
b876d7a7df Add %F the ISO 8601 date format which is equivalent to %Y-%m-%d. This
format character is supported for reasons of symmetry with strftime(3).
FreeBSD and GNU versions of strptime(3) both support %F.
2008-04-25 20:51:10 +00:00
ginsbach
52de4d6274 Change date for previous change (addition of %Z). 2008-04-25 14:37:00 +00:00
ginsbach
43e9d46aab Add support for %Z ala FreeBSD and some other strptime(3) implementations.
Reviewed by christos.
2008-04-24 21:34:48 +00:00
ginsbach
f5f9bb5739 Make sure that %r honors the LC_TIME t_fmt_ampm. This restores
functionality lost at revision 1.12!
2007-07-31 20:19:16 +00:00
kleink
b290748021 Restore i18n wrapping removed in previous. 2006-12-04 17:24:40 +00:00
christos
1d83cc5b6c nuke perror. 2006-11-03 20:21:16 +00:00
perry
35a6eb4807 Make the declarations of wday_name and mon_name less eccentric. I
suppose they were legal before, but lint was unhappy about them. It
was probably unhappy for the wrong reasons, but I think it certainly
wasn't something one would want anyway. Declaring a string of length
three to have storage of length three without room for the nul is
asking for trouble even if it does work in context, and there was no
reason not to state how many days there are in a week or months in a
year -- they aren't onerous and aren't going to change.

NOTE: If this code isn't being synced with the central TZCODE stuff,
it probably should be KNFed etc. It is full of K&R declarations,
register, lots of eccentricities, etc.
2006-10-15 15:32:42 +00:00
reed
5fe28dc7e5 Fix typo or mispelling. 2006-06-17 04:58:14 +00:00
christos
1324bf1ab1 Remove a variable that became set-and-not-used after the dead code removal. 2006-03-22 14:01:30 +00:00
christos
e5d3e31596 Coverity CID 578: remove dead code 2006-03-22 00:14:18 +00:00
christos
ee43724903 Coverity CID 580: fix 'c' handling to match 'x' ('c' used the wrong variable) 2006-03-22 00:11:28 +00:00
christos
03256c6e55 WARNS=4 2005-11-29 03:11:58 +00:00
christos
5b84b3983f compat core reorg. 2005-09-13 01:44:08 +00:00
christos
86741d79ab - Fix the remaining indr_references so that they define lint symbols.
- Add an internal symbol for strerror_r (thanks klaus for noticing)
- Remove internal __strerror
2005-07-30 15:21:20 +00:00
christos
ed7ae36357 Fix linted comments and use __UNCONST. 2005-07-16 19:48:09 +00:00
christos
aeec445c81 Use CPPFLAGS for -D flags otherwise lint does not get it. 2005-07-16 19:36:25 +00:00
lukem
88c3eadbfa Add missing __RCSID() 2005-06-12 05:21:25 +00:00
dsl
8476342d19 Some more optimisations - I must stop looking at this file!
Update copyright to include 2005
(I have a compleetly different version, but it is only a few 100 bytes
smaller due to a 560 byte data area.)
2005-03-05 14:07:15 +00:00
dsl
3fa8666b4f A going-over with the optimiser, save over 500 bytes.
I think this is enough to get rescue_tiny to fit again.
While there fix some bugs:
- %y failed to subtract 1900 from tm_year
- %p (am/pm) only worked at the end of the string
- %E% was treated at %% (ie match a % character)
regression test being added....
2005-03-04 21:41:42 +00:00
christos
13c63648cb PR/28324: Takayoshi Kochi: localtime_r(3) returns GMT
Add missing tzset_unlocked(); as suggested.
2004-11-16 04:15:28 +00:00
kleink
8bd97363d6 Merge tzcode2004a. 2004-05-27 20:39:49 +00:00
kleink
0e5c1261b9 Update for tzcode2004a. 2004-05-27 20:33:31 +00:00
kleink
15a5f3876a Don't use tm_gmtoff for %z: a strictly conforming ISO C application won't
initialize it.  However, instead of using what is suggested in this code
path, attempt get it right for DST as well.  Addresses PR standards/21722
from Richard Earnshaw.
2004-05-12 23:03:11 +00:00
kleink
4c5383c22f Don't use tm_zone for %Z: a strictly conforming ISO C application won't
initialize it.  Addresses PR standards/21722 from Richard Earnshaw.
2004-05-11 09:32:02 +00:00
kleink
f52f2d3dfe Add a manual page for the standard-inspired offtime(3) and friends;
requested by Thomas Klausner.
2004-05-10 02:02:00 +00:00
kleink
84c861c7a5 Add documentation for %v. Noted by Havard Eidnes in PR bin/25180. 2004-04-14 21:59:39 +00:00
kleink
78a2369a15 Make casing in previous consistent. 2004-03-19 19:30:23 +00:00
kleink
ddfc3e5143 %% doesn't write anything; a literal % is matched. Noted by Hubert Feyrer. 2004-03-19 19:28:08 +00:00
kleink
a2c17b5c1e One merge-o missed in previous. 2003-12-20 00:21:00 +00:00
kleink
84a2a5ca6e Merge tzcode2003e. 2003-12-20 00:12:05 +00:00
kleink
b717391e1a Note: the previous revision was an update for tzcode2003_e_. 2003-12-19 23:52:44 +00:00
kleink
4a2741cba1 Update for tzcode2003d. 2003-12-19 22:25:42 +00:00
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
jtc
1c631d03ad sync with tzcode1998a 1998-01-22 07:06:56 +00:00
mycroft
b7728ce9c9 Pull in tzfile.h. 1998-01-20 21:39:40 +00:00
mycroft
a5f873989a Update dates. 1998-01-20 21:10:08 +00:00
mycroft
bfec060b83 Update documentation of %y to reflect y2k change. 1998-01-20 20:48:56 +00:00
mycroft
7f0df00dd7 The rollover for the previous is 1969, not 1970. 1998-01-20 20:47:46 +00:00
mycroft
13156da2e5 Fix an old comment 1998-01-20 20:41:49 +00:00
mycroft
fc6492b391 Treat 2-digit year < 70 as year - 2000, per XPG. 1998-01-20 20:39:06 +00:00
perry
b51ed80fd5 RCS Id Police. 1998-01-09 04:11:49 +00:00
lukem
14e91f97ec WARNSify 1997-10-17 14:26:43 +00:00
lukem
35e2907fec warnsify 1997-10-17 14:23:45 +00:00
lukem
2a55b0f192 rcsid police 1997-10-09 10:07:40 +00:00
jtc
0f031182c5 sync with tzcode1997g 1997-09-05 02:11:55 +00:00
jtc
2080f3c806 Music has been expanded and renamed Arts.htm 1997-09-05 02:11:27 +00:00
jtc
5bd15d6468 import tzcode1997g 1997-09-05 02:07:13 +00:00
jtc
990a11b9c6 Fix files using old TNF copyright notice 1997-07-30 23:53:32 +00:00
jtc
43fa6fe319 If port provides __weak_alias(), provide an Standard C and POSIX pure
identifier namespace by renaming non standard functions and variables
such that they have a leading underscore.  The library will use those
names internally.  Weak aliases are used to provide the original names
to the API.

This is only the first part of this change.  It is most of the functions
which are implemented in C for all NetBSD ports.  Subsequent changes are
to add the same support to the remaining C files, to assembly files, and
to the automagically generated assembly source used for system calls.
When all of the above is done, ports with weak alias support should add
a definition for __weak_alias to <sys/cdefs.h>.
1997-07-21 14:06:24 +00:00
kleink
0d71e88959 Add standards conformance statement. 1997-07-14 23:35:02 +00:00
christos
3ad08ca2f9 Fix RCSID's 1997-07-13 20:25:30 +00:00
cjs
420dff88f0 Remove bogus `#ifdef unix'. 1997-06-21 21:26:23 +00:00
jtc
359f61a781 Sync with tzcode1997e 1997-06-18 01:12:39 +00:00
jtc
ef16fd639e import tzcode1997e 1997-06-18 00:41:05 +00:00
kleink
0e1fa19edf Nuke a spurious (but under !__STDC__ fatal) space from last commit. 1997-06-03 10:19:45 +00:00
kleink
c9e453859c Replace some hand-crafted concatenation with the __CONCAT() macro. 1997-06-03 10:04:20 +00:00
kleink
2f11ceb63c Add a reference to the strptime(3) manual page. 1997-05-25 19:34:44 +00:00
kleink
d5ab17a222 Add a strptime(3) manual page. 1997-05-25 19:29:36 +00:00
kleink
2eaf62bf51 Rewritten from scratch. Implement missing conversions and provide support
for E and O modifiers, though our locale does not support `alternate'
conversions and formats - we just stick to the unmodified rules in that case.
1997-05-25 19:26:43 +00:00
kleink
14311d9dca KNF. 1997-05-06 13:06:48 +00:00
kleink
891c1283c5 * POSIX: use tzname for the %Z conversion, not tm->tm_zone.
* KNF, RCSid police.
1997-04-29 20:00:14 +00:00
mrg
cbf5ef7c50 move str[fp]time into libc/time. 1997-04-23 01:17:59 +00:00
mrg
2d2ae90504 note possible security concerns. 1997-04-22 12:33:17 +00:00
is
2b9aa0e3fe The protoypes for ctime() and tzset() are in <time.h>. Move #include <time.h>
to the start of the SYNOPSIS so that people won't need to search them.
1997-04-18 17:32:04 +00:00