]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 13 Mar 2002 08:59:47 +0000 (08:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 13 Mar 2002 08:59:47 +0000 (08:59 +0000)
2002-03-13  Ulrich Drepper  <drepper@redhat.com>

* sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
use of __ttyname.

* posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
Define as hidden.
(__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
hidden.  Change all users of these variables.

* posix/regex_internal.h (__re_error_msgid): Renamed from
re_error_msgid.  Declare as hidden.
(__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
hidden.

* stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
(__printf_function_table): Likewise.
* stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
hidden.
(__printf_function_table): Likewise.

* nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
__nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.

* nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
* nss/nsswitch.c: Declare _nss_*_database as hidden.

* stdlib/wctomb.c (__no_r_state): Declare as hidden.
* stdlib/mbtowc.c (__no_r_state): Define as hidden.

ChangeLog
nscd/nscd_proto.h
nss/XXX-lookup.c
nss/nsswitch.c
posix/regcomp.c
posix/regex_internal.h
stdio-common/printf-parse.h
stdio-common/reg-printf.c
stdlib/mbtowc.c
stdlib/wctomb.c
sysdeps/unix/sysv/linux/ttyname.c

index b1596784ee556ad48e241bc4ef6cd00dc72054b0..4b6866364552f7b1fa050b4846a77c0a4502f62f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,33 @@
+2002-03-13  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/unix/sysv/linux/ttyname.c: Comment out definition and
+       use of __ttyname.
+
+       * posix/regcomp.c (__re_error_msgid): Renamed from re_error_msgid.
+       Define as hidden.
+       (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Define as
+       hidden.  Change all users of these variables.
+
+       * posix/regex_internal.h (__re_error_msgid): Renamed from
+       re_error_msgid.  Declare as hidden.
+       (__re_error_msgid_idx): Renamed from re_error_msgid_idx.  Declare as
+       hidden.
+
+       * stdio-common/reg-printf.c (__printf_arginfo_table): Define as hidden.
+       (__printf_function_table): Likewise.
+       * stdio-common/printf-parse.h (__printf_arginfo_table): Declare as
+       hidden.
+       (__printf_function_table): Likewise.
+
+       * nscd/nscd_proto.h: Declare __nss_not_use_nscd_passwd,
+       __nss_not_use_nscd_group, and __nss_not_use_nscd_hosts as hidden.
+
+       * nss/XXX-lookup.c (DATABASE_NAME_SYMBOL): Define as hidden.
+       * nss/nsswitch.c: Declare _nss_*_database as hidden.
+
+       * stdlib/wctomb.c (__no_r_state): Declare as hidden.
+       * stdlib/mbtowc.c (__no_r_state): Define as hidden.
+
 2002-03-12  Ulrich Drepper  <drepper@redhat.com>
 
        * ctype/ctype-info.c: Declare _nl_C_LC_CTYPE_class,
index 0d62d6b55788642237f086309d2f869e247a3d20..0a02938bf5efd21d8b4f74cc9a2e458d45a4555b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998.
 
@@ -25,9 +25,9 @@
 #include <pwd.h>
 
 /* Variables for communication between NSCD handler functions and NSS.  */
-extern int __nss_not_use_nscd_passwd;
-extern int __nss_not_use_nscd_group;
-extern int __nss_not_use_nscd_hosts;
+extern int __nss_not_use_nscd_passwd attribute_hidden;
+extern int __nss_not_use_nscd_group attribute_hidden;
+extern int __nss_not_use_nscd_hosts attribute_hidden;
 
 extern int __nscd_getpwnam_r (const char *name, struct passwd *resultbuf,
                              char *buffer, size_t buflen);
index c20210cf3b9546e21c3a24eed195aad59b46bfd0..79985e674d1112a9dc9a1b4a76a3b76df755867a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1999, 2000  Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
 #define DEFAULT_CONFIG NULL
 #endif
 
-service_user *DATABASE_NAME_SYMBOL;
+service_user *DATABASE_NAME_SYMBOL attribute_hidden;
 
-extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp);
+extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name,
+                         void **fctp);
 
 int
 DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp)
index 6cd3d81bb8a235c3ee444d55caa03101e8352f40..b0658e5899078946ae1134a1519c56d8613e965e 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996,1997,1998,1999,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2001,2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -51,7 +51,7 @@ static service_library *nss_new_service (name_database *database,
 
 /* Declare external database variables.  */
 #define DEFINE_DATABASE(name)                                                \
-  extern service_user *__nss_##name##_database;                                      \
+  extern service_user *__nss_##name##_database attribute_hidden;             \
   weak_extern (__nss_##name##_database)
 #include "databases.def"
 #undef DEFINE_DATABASE
index 930e8a61b53c6939ecdeef4734995b2c8a356779..7e3954fdad799a21fad474ed465cb4eed28ee671 100644 (file)
@@ -132,7 +132,7 @@ static bin_tree_t *duplicate_tree (const bin_tree_t *src, re_dfa_t *dfa);
    POSIX doesn't require that we do anything for REG_NOERROR,
    but why not be nice?  */
 
-const char re_error_msgid[] =
+const char __re_error_msgid[] attribute_hidden =
   {
 #define REG_NOERROR_IDX        0
     gettext_noop ("Success")   /* REG_NOERROR */
@@ -186,7 +186,7 @@ const char re_error_msgid[] =
     gettext_noop ("Unmatched ) or \\)") /* REG_ERPAREN */
   };
 
-const size_t re_error_msgid_idx[] =
+const size_t __re_error_msgid_idx[] attribute_hidden =
   {
     REG_NOERROR_IDX,
     REG_NOMATCH_IDX,
@@ -241,7 +241,7 @@ re_compile_pattern (pattern, length, bufp)
 
   if (!ret)
     return NULL;
-  return gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);
+  return gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]);
 }
 #ifdef _LIBC
 weak_alias (__re_compile_pattern, re_compile_pattern)
@@ -483,15 +483,15 @@ regerror (errcode, preg, errbuf, errbuf_size)
   size_t msg_size;
 
   if (BE (errcode < 0
-          || errcode >= (int) (sizeof (re_error_msgid_idx)
-                               / sizeof (re_error_msgid_idx[0])), 0))
+          || errcode >= (int) (sizeof (__re_error_msgid_idx)
+                               / sizeof (__re_error_msgid_idx[0])), 0))
     /* Only error codes returned by the rest of the code should be passed
        to this routine.  If we are given anything else, or if other regex
        code generates an invalid error code, then the program has a bug.
        Dump core so we can fix it.  */
     abort ();
 
-  msg = gettext (re_error_msgid + re_error_msgid_idx[errcode]);
+  msg = gettext (__re_error_msgid + __re_error_msgid_idx[errcode]);
 
   msg_size = strlen (msg) + 1; /* Includes the null.  */
 
@@ -623,8 +623,8 @@ re_comp (s)
     {
       re_comp_buf.fastmap = (char *) malloc (SBC_MAX);
       if (re_comp_buf.fastmap == NULL)
-       return (char *) gettext (re_error_msgid
-                                + re_error_msgid_idx[(int) REG_ESPACE]);
+       return (char *) gettext (__re_error_msgid
+                                + __re_error_msgid_idx[(int) REG_ESPACE]);
     }
 
   /* Since `re_exec' always passes NULL for the `regs' argument, we
@@ -639,7 +639,7 @@ re_comp (s)
     return NULL;
 
   /* Yes, we're discarding `const' here if !HAVE_LIBINTL.  */
-  return (char *) gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);
+  return (char *) gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]);
 }
 #endif /* _REGEX_RE_COMP */
 \f
index f3ae7e1c64eabdecf8bddd09c9dfb3e8823fbca8..bb28102cc9af7b210c8f44d5d791213c3c5a9290 100644 (file)
@@ -39,8 +39,8 @@
 # define __mempcpy memcpy
 #endif
 
-extern const char re_error_msgid[];
-extern const size_t re_error_msgid_idx[];
+extern const char __re_error_msgid[] attribute_hidden;
+extern const size_t __re_error_msgid_idx[] attribute_hidden;
 
 /* Number of bits in an unsinged int.  */
 #define UINT_BITS (sizeof (unsigned int) * BYTE_BITS)
index 4f8007121e53fb833af70c400bced758b8bee2b8..78811701bbe7613436cb69db4b1b8192b3deba61 100644 (file)
@@ -1,5 +1,5 @@
 /* Internal header for parsing printf format strings.
-   Copyright (C) 1995-1999, 2000 Free Software Foundation, Inc.
+   Copyright (C) 1995-1999, 2000, 2002 Free Software Foundation, Inc.
    This file is part of th GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -117,8 +117,8 @@ find_spec (const UCHAR_T *format, mbstate_t *ps)
 
 
 /* These are defined in reg-printf.c.  */
-extern printf_arginfo_function *__printf_arginfo_table[];
-extern printf_function **__printf_function_table;
+extern printf_arginfo_function *__printf_arginfo_table[] attribute_hidden;
+extern printf_function **__printf_function_table attribute_hidden;
 
 
 /* FORMAT must point to a '%' at the beginning of a spec.  Fills in *SPEC
index f4ddf21f429a1f6be203127cd3bf333f3d462bc1..fe496339326394f296140119626077a16cb1f030 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1996, 1997, 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
 
 /* Array of functions indexed by format character.  */
 static printf_function *printf_funcs[UCHAR_MAX + 1];
-printf_arginfo_function *__printf_arginfo_table[UCHAR_MAX + 1];
+printf_arginfo_function *__printf_arginfo_table[UCHAR_MAX + 1]
+     attribute_hidden;
 
-printf_function **__printf_function_table;
+printf_function **__printf_function_table attribute_hidden;
 
 int __register_printf_function __P ((int, printf_function,
                                      printf_arginfo_function));
index 323adcf599e8bbb6555e3b91c828c40cd3bb5c6e..51fd9ab8f22e97331576fe83626c8bca84321647 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1995-1999, 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
@@ -24,7 +24,7 @@
 
 
 /* Common state for all non-restartable conversion functions.  */
-mbstate_t __no_r_state;
+mbstate_t __no_r_state attribute_hidden;
 
 /* Convert the multibyte character at S, which is no longer
    than N characters, to its `wchar_t' representation, placing
index 61305f8f0a41ac8113b299235d8d486b5aace6b9..ae73d5f75d09bf0ac12a741400b8e3a96784ab96 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 95, 96, 97, 98, 99 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1995-1999, 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
@@ -23,7 +23,7 @@
 #include <wcsmbs/wcsmbsload.h>
 
 
-extern mbstate_t __no_r_state; /* Defined in mbtowc.c.  */
+extern mbstate_t __no_r_state attribute_hidden;        /* Defined in mbtowc.c.  */
 
 /* Convert WCHAR into its multibyte character representation,
    putting this in S and returning its length.
index 5e9c807c7730d41511f6e18b80bde9e98c3fb5d3..b5e73bf1af20b7eb1d13cb18353488f77d38e8a6 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,92,93,1996-1999,2000,2001 Free Software Foundation, Inc.
+/* Copyright (C) 1991,92,93,1996-2001,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
 
 #include <stdio-common/_itoa.h>
 
+#if 0
+/* Is this used anywhere?  It is not exported.  */
 char *__ttyname;
+#endif
 
 static char *getttyname (const char *dev, dev_t mydev,
                         ino64_t myino, int save, int *dostat)
@@ -85,7 +88,9 @@ getttyname (const char *dev, dev_t mydev, ino64_t myino, int save, int *dostat)
           )
          {
            (void) __closedir (dirstream);
+#if 0
            __ttyname = getttyname_name;
+#endif
            __set_errno (save);
            return getttyname_name;
          }