Commit Graph

13 Commits

Author SHA1 Message Date
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
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 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
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
christos 3ad08ca2f9 Fix RCSID's 1997-07-13 20:25:30 +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 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
mrg cbf5ef7c50 move str[fp]time into libc/time. 1997-04-23 01:17:59 +00:00