diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/gmtime.c | 10 | ||||
-rw-r--r-- | time/localtime.c | 7 | ||||
-rw-r--r-- | time/offtime.c | 5 | ||||
-rw-r--r-- | time/tzfile.c | 4 | ||||
-rw-r--r-- | time/tzset.c | 14 |
5 files changed, 3 insertions, 37 deletions
diff --git a/time/gmtime.c b/time/gmtime.c index 2b388be..2de58ee 100644 --- a/time/gmtime.c +++ b/time/gmtime.c @@ -1,5 +1,5 @@ /* Convert `time_t' to `struct tm' in UTC. - Copyright (C) 1991, 1993, 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1991, 93, 95, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,14 +19,6 @@ #include <time.h> -/* Defined in localtime.c. */ -extern struct tm _tmbuf; - -/* Prototype for the internal function to get information based on TZ. */ -extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime, - struct tm *tp)); - - /* Return the `struct tm' representation of *T in UTC, using *TP to store the result. */ struct tm * diff --git a/time/localtime.c b/time/localtime.c index 3d8d8fb..1488792 100644 --- a/time/localtime.c +++ b/time/localtime.c @@ -1,5 +1,5 @@ /* Convert `time_t' to `struct tm' in local time zone. - Copyright (C) 1991, 92, 93, 95, 96, 97 Free Software Foundation, Inc. + Copyright (C) 1991, 92, 93, 95, 96, 97, 98 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,11 +22,6 @@ /* The C Standard says that localtime and gmtime return the same pointer. */ struct tm _tmbuf; -/* Prototype for the internal function to get information based on TZ. */ -extern struct tm *__tz_convert __P ((const time_t *t, int use_localtime, - struct tm *tp)); - - /* Return the `struct tm' representation of *T in local time, using *TP to store the result. */ diff --git a/time/offtime.c b/time/offtime.c index 52e4070..f858790 100644 --- a/time/offtime.c +++ b/time/offtime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1993, 1997 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1993, 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -18,9 +18,6 @@ #include <time.h> -/* Defined in mktime.c. */ -extern const unsigned short int __mon_yday[2][13]; - #define SECS_PER_HOUR (60 * 60) #define SECS_PER_DAY (SECS_PER_HOUR * 24) diff --git a/time/tzfile.c b/time/tzfile.c index 497fe3f..e723892 100644 --- a/time/tzfile.c +++ b/time/tzfile.c @@ -44,8 +44,6 @@ struct leap long int change; /* Seconds of correction to apply. */ }; -extern char * __tzstring (const char *); /* Defined in tzset.c. */ - static struct ttinfo *find_transition (time_t timer) internal_function; static void compute_tzname_max (size_t) internal_function; @@ -530,8 +528,6 @@ static void internal_function compute_tzname_max (size_t chars) { - extern size_t __tzname_cur_max; /* Defined in tzset.c. */ - const char *p; p = zone_names; diff --git a/time/tzset.c b/time/tzset.c index 60188c2..d6d1b20 100644 --- a/time/tzset.c +++ b/time/tzset.c @@ -25,24 +25,10 @@ #include <string.h> #include <time.h> -/* Defined in mktime.c. */ -extern const unsigned short int __mon_yday[2][13]; - -/* Defined in localtime.c. */ -extern struct tm _tmbuf; #define NOID #include <timezone/tzfile.h> -extern int __use_tzfile; -extern void __tzfile_read __P ((const char *file)); -extern int __tzfile_compute __P ((time_t timer, int use_localtime, - long int *leap_correct, int *leap_hit, - struct tm *tp)); -extern void __tzfile_default __P ((const char *std, const char *dst, - long int stdoff, long int dstoff)); -extern char *__tzstring __P ((const char *string)); - char *__tzname[2] = { (char *) "GMT", (char *) "GMT" }; int __daylight = 0; long int __timezone = 0L; |