Commit Graph

22 Commits

Author SHA1 Message Date
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
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
mycroft 605490369c Delint.
Remove trailing ; from uses of __weak_alias().  The macro inserts this if
needed.
2000-01-22 22:19:07 +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
christos f4c1479174 delint 1998-11-15 17:10:30 +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
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 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