Sun Sep 17 08:22:12 1995 Paul Eggert <eggert@twinsun.com>
authorroland <roland>
Mon, 18 Sep 1995 18:50:41 +0000 (18:50 +0000)
committerroland <roland>
Mon, 18 Sep 1995 18:50:41 +0000 (18:50 +0000)
commit122b48e877f5b87c87ee8b5a1b65ef3ad97fc676
tree34999adf43c49b555202b67d558b5863a992d7af
parent796d7d1658909745f807f1ffadd91d68218bace5
Sun Sep 17 08:22:12 1995  Paul Eggert  <eggert@twinsun.com>

Fix mktime so that it does not write over localtime's returned value.
* localtime.c (__localtime_r): New function, with extra arg
specifying where to store result.
(localtime): Use it.
(_tmbuf): New var.
* gmtime.c (__gmtime_r, gmtime, _tmbuf): Likewise.
* mktime.c (__mktime_internal): Conversion function is now
__localtime_r style, not localtime style.
(mktime): Pass __localtime_r, not localtime.
* timegm.c (timegm): Pass __gmtime_r, not gmtime.
* offtime.c (__offtime): New arg specifying where to store result.
* time.h (__mktime_internal, __offtime): Adjust decls accordingly.
(__gmtime_r, __localtime_r): New decls.
time/gmtime.c
time/localtime.c
time/mktime.c
time/offtime.c
time/time.h
time/timegm.c