From a709dd439a010a88e6e8ae94583e71296008b89e Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 20 May 1998 10:50:03 +0000 Subject: Update. 1998-05-20 Andreas Jaeger * Makeconfig (rpath-link): Add resolvobjdir. (resolvobjdir): New variable. Reported by Peter Breitenlohner [fixes PR libc/633]. 1998-05-20 09:36 Ulrich Drepper * elf/dl-close.c: Call shared object terminators at the right time. Patch by Philippe Troin . 1998-05-20 Andreas Schwab * Make-dist (+tsrcs): Also add *.map for every member of $(extra-libs). * Makefile (distribute): Don't distribute scripts/printsources and scripts/=__ify. Distribute FAQ.in. (rpm/%): Don't pass subdirs to sub-make. * timezone/Makefile: Protect inclusion of z.* by $(avoid-generated) instead of $(no_deps). 1998-05-19 Andreas Schwab * sysdeps/generic/setenv.c: Protect against GNU C extension. (KNOWN_VALUE, STORE_VALUE): Do it right. (setenv): Remove unused variable. 1998-05-18 Andreas Schwab * timezone/Makefile (tz-cflags): Define TM_GMTOFF and TM_ZONE. (CFLAGS-zdump.c): Add $(tz-cflags). * timezone/zdump.c (abbr): Use TM_ZONE if defined. Add const to return type. 1998-05-18 Andreas Schwab * time/tzfile.c (__tzfile_compute): Undo last change. Instead take struct tm parameter and set tm_isdst, tm_zone and tm_offset if use_localtime. * time/tzset.c: Update prototype of __tzfile_compute. (__tz_convert): Pass tp to __tzfile_compute. Don't set tm_isdst, tm_zone and tm_offset here if __use_tzfile. 1998-05-19 Andreas Schwab * Makerules: Install libc.a even if there are no object file. 1998-05-18 Andreas Schwab * Makerules (do-makelib): Don't force creating library from scratch, to avoid wasting time and space and to get correct behaviour if $(subdirs) is incomplete. 1998-05-19 Andreas Schwab * Makerules (do-stamp): Make it work when building in source directory. --- time/tzfile.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'time/tzfile.c') diff --git a/time/tzfile.c b/time/tzfile.c index 9fab857ecc..1d51a695ff 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -415,13 +415,13 @@ find_transition (time_t timer) int __tzfile_compute (time_t timer, int use_localtime, long int *leap_correct, int *leap_hit, - int *isdst, long int *offset) + struct tm *tp) { - struct ttinfo *info = find_transition (timer); register size_t i; if (use_localtime) { + struct ttinfo *info = find_transition (timer); __daylight = rule_stdoff != rule_dstoff; __timezone = -rule_stdoff; __tzname[1] = NULL; @@ -432,11 +432,11 @@ __tzfile_compute (time_t timer, int use_localtime, if (__tzname[1] == NULL) /* There is no daylight saving time. */ __tzname[1] = __tzname[0]; + tp->tm_isdst = info->isdst; + tp->tm_zone = &zone_names[info->idx]; + tp->tm_gmtoff = info->offset; } - *isdst = info->isdst; - *offset = info->offset; - *leap_correct = 0L; *leap_hit = 0; -- cgit v1.2.1