From 169ec09e54c032b172b1cc691196e044016eb091 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 13 Mar 2002 09:38:59 +0000 Subject: [PATCH] Update. * include/locale.h (_nl_C_locobj): Declare as hidden. * time/asctime.c (_nl_C_LC_TIME): Declare as hidden. * time/strptime.c (_nl_C_LC_TIME): Likewise. * include/netinet/in.h (in6addr_any_internal): Mark as hidden. * include/sys/gmon.h: Declare _gmonparam as hidden. * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden. (__ctype32_wctrans): Likewise. (__ctype32_width): Likewise. --- ChangeLog | 13 +++++++++++++ include/locale.h | 2 +- include/netinet/in.h | 2 +- include/sys/gmon.h | 2 +- locale/lc-ctype.c | 8 ++++---- time/asctime.c | 4 ++-- time/strptime.c | 2 +- 7 files changed, 23 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4b68663..0420d39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,18 @@ 2002-03-13 Ulrich Drepper + * include/locale.h (_nl_C_locobj): Declare as hidden. + + * time/asctime.c (_nl_C_LC_TIME): Declare as hidden. + * time/strptime.c (_nl_C_LC_TIME): Likewise. + + * include/netinet/in.h (in6addr_any_internal): Mark as hidden. + + * include/sys/gmon.h: Declare _gmonparam as hidden. + + * locale/lc-ctype.c (__ctype32_wctype): Declare as hidden. + (__ctype32_wctrans): Likewise. + (__ctype32_width): Likewise. + * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and use of __ttyname. diff --git a/include/locale.h b/include/locale.h index c821768..a798881 100644 --- a/include/locale.h +++ b/include/locale.h @@ -7,7 +7,7 @@ extern struct loaded_l10nfile *_nl_locale_file_list[] attribute_hidden; /* Locale object for C locale. */ -extern struct __locale_struct _nl_C_locobj; +extern struct __locale_struct _nl_C_locobj attribute_hidden; /* Now define the internal interfaces. */ extern struct lconv *__localeconv (void); diff --git a/include/netinet/in.h b/include/netinet/in.h index 674fc2b..b85d938 100644 --- a/include/netinet/in.h +++ b/include/netinet/in.h @@ -1,3 +1,3 @@ #include -extern const struct in6_addr in6addr_any_internal; +extern const struct in6_addr in6addr_any_internal attribute_hidden; diff --git a/include/sys/gmon.h b/include/sys/gmon.h index 49b37b2..55739cf 100644 --- a/include/sys/gmon.h +++ b/include/sys/gmon.h @@ -11,5 +11,5 @@ struct __bb; extern void __bb_init_func (struct __bb *bb); extern void __bb_exit_func (void); -extern struct gmonparam _gmonparam; +extern struct gmonparam _gmonparam attribute_hidden; #endif diff --git a/locale/lc-ctype.c b/locale/lc-ctype.c index 3f9e108..3fc2394 100644 --- a/locale/lc-ctype.c +++ b/locale/lc-ctype.c @@ -1,5 +1,5 @@ /* Define current locale data for LC_CTYPE category. - Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc. + Copyright (C) 1995-1999, 2000, 2002 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 @@ -43,9 +43,9 @@ _nl_postload_ctype (void) extern const uint32_t *__ctype32_b; extern const uint32_t *__ctype32_toupper; extern const uint32_t *__ctype32_tolower; - extern const char *__ctype32_wctype[12]; - extern const char *__ctype32_wctrans[2]; - extern const char *__ctype32_width; + extern const char *__ctype32_wctype[12] attribute_hidden; + extern const char *__ctype32_wctrans[2] attribute_hidden; + extern const char *__ctype32_width attribute_hidden; size_t offset, cnt; diff --git a/time/asctime.c b/time/asctime.c index d1e6ea3..b678ecb 100644 --- a/time/asctime.c +++ b/time/asctime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991,1993,1995,1996,1997,2000 Free Software Foundation, Inc. +/* Copyright (C) 1991,1993,1995-1997,2000,2002 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,7 +22,7 @@ #include /* This is defined in locale/C-time.c in the GNU libc. */ -extern const struct locale_data _nl_C_LC_TIME; +extern const struct locale_data _nl_C_LC_TIME attribute_hidden; #define ab_day_name(DAY) (_nl_C_LC_TIME.values[_NL_ITEM_INDEX (ABDAY_1)+(DAY)].string) #define ab_month_name(MON) (_nl_C_LC_TIME.values[_NL_ITEM_INDEX (ABMON_1)+(MON)].string) diff --git a/time/strptime.c b/time/strptime.c index e84201e..a3fd811 100644 --- a/time/strptime.c +++ b/time/strptime.c @@ -133,7 +133,7 @@ localtime_r (t, tp) #ifdef _LIBC /* This is defined in locale/C-time.c in the GNU libc. */ -extern const struct locale_data _nl_C_LC_TIME; +extern const struct locale_data _nl_C_LC_TIME attribute_hidden; # define weekday_name (&_nl_C_LC_TIME.values[_NL_ITEM_INDEX (DAY_1)].string) # define ab_weekday_name \ -- 2.7.4