This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH COMMITTED] time: Remove the internal_function attribute

2017-08-31  Florian Weimer  <>
	* include/time.h (__tz_compute, __strptime_internal): Remove
	* time/strptime_l.c (__strptime_internal): Likewise.
	* time/tzset.c (compute_change, update_vars, __tz_compute): Likewise.

diff --git a/include/time.h b/include/time.h
index 73696082cc..324913214f 100644
--- a/include/time.h
+++ b/include/time.h
@@ -46,7 +46,7 @@ extern void __tzfile_default (const char *std, const char *dst,
 			      long int stdoff, long int dstoff);
 extern void __tzset_parse_tz (const char *tz);
 extern void __tz_compute (time_t timer, struct tm *tm, int use_localtime)
-     __THROW internal_function;
+  __THROW;
 /* Subroutine of `mktime'.  Return the `time_t' representation of TP and
    normalize TP, given that a `struct tm *' maps to a `time_t' as performed
@@ -89,8 +89,7 @@ extern int __getclktck (void);
 /* strptime support.  */
 extern char * __strptime_internal (const char *rp, const char *fmt,
 				   struct tm *tm, void *statep,
-				   locale_t locparam)
-     internal_function;
+				   locale_t locparam);
 extern double __difftime (time_t time1, time_t time0);
diff --git a/time/strptime_l.c b/time/strptime_l.c
index 185619e142..3afc33a74e 100644
--- a/time/strptime_l.c
+++ b/time/strptime_l.c
@@ -231,7 +231,6 @@ day_of_the_year (struct tm *tm)
 #ifdef _LIBC
 char *
 static char *
diff --git a/time/tzset.c b/time/tzset.c
index cf5fe969b6..b5e95204b8 100644
--- a/time/tzset.c
+++ b/time/tzset.c
@@ -63,7 +63,7 @@ typedef struct
 static tz_rule tz_rules[2];
-static void compute_change (tz_rule *rule, int year) __THROW internal_function;
+static void compute_change (tz_rule *rule, int year) __THROW;
 static void tzset_internal (int always);
 /* List of buffers containing time zone strings. */
@@ -125,7 +125,6 @@ __tzstring (const char *s)
 static char *old_tz;
 static void
 update_vars (void)
   __daylight = tz_rules[0].offset != tz_rules[1].offset;
@@ -429,7 +428,6 @@ tzset_internal (int always)
    when the change described by RULE will occur and
    put it in RULE->change, saving YEAR in RULE->computed_for.  */
 static void
 compute_change (tz_rule *rule, int year)
   time_t t;
@@ -518,7 +516,6 @@ compute_change (tz_rule *rule, int year)
 /* Figure out the correct timezone for TM and set `__tzname',
    `__timezone', and `__daylight' accordingly.  */
 __tz_compute (time_t timer, struct tm *tm, int use_localtime)
   compute_change (&tz_rules[0], 1900 + tm->tm_year);

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]