Commit Graph

112 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
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