OSDN Git Service

Remove all non-constant libc_hidden_data_def(), it is too unreliable, sorry, most...
authorPeter S. Mazinger <ps.m@gmx.net>
Fri, 10 Mar 2006 16:20:23 +0000 (16:20 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Fri, 10 Mar 2006 16:20:23 +0000 (16:20 -0000)
81 files changed:
libc/inet/herror.c
libc/inet/resolv.c
libc/inet/rpc/auth_unix.c
libc/inet/rpc/clnt_tcp.c
libc/inet/rpc/clnt_udp.c
libc/inet/rpc/clnt_unix.c
libc/inet/rpc/rcmd.c
libc/inet/rpc/rpc_private.h
libc/inet/rpc/svc_tcp.c
libc/inet/rpc/svc_udp.c
libc/inet/rpc/svc_unix.c
libc/inet/rpc/xdr.c
libc/inet/rpc/xdr_array.c
libc/inet/rpc/xdr_rec.c
libc/inet/rpc/xdr_reference.c
libc/misc/assert/__assert.c
libc/misc/error/err.c
libc/misc/error/error.c
libc/misc/gnu/obstack.c
libc/misc/internals/__uClibc_main.c
libc/misc/locale/locale.c
libc/misc/time/time.c
libc/misc/wchar/wchar.c
libc/misc/wctype/_wctype.c
libc/misc/wordexp/wordexp.c
libc/stdio/__fsetlocking.c
libc/stdio/_fopen.c
libc/stdio/_fpmaxtostr.c
libc/stdio/_scanf.c
libc/stdio/_stdio.c
libc/stdio/_stdio.h
libc/stdio/_uintmaxtostr.c
libc/stdio/_vfprintf.c
libc/stdio/fflush.c
libc/stdio/gets.c
libc/stdio/perror.c
libc/stdlib/_atexit.c
libc/stdlib/_strtod.c
libc/stdlib/getenv.c
libc/stdlib/malloc-standard/mallinfo.c
libc/stdlib/malloc-standard/malloc.c
libc/stdlib/malloc-standard/malloc.h
libc/stdlib/malloc/malloc.h
libc/stdlib/setenv.c
libc/stdlib/stdlib.c
libc/string/_collate.c
libc/string/psignal.c
libc/sysdeps/linux/alpha/brk.S
libc/sysdeps/linux/arm/brk.c
libc/sysdeps/linux/bfin/brk.c
libc/sysdeps/linux/common/getpagesize.c
libc/sysdeps/linux/common/sbrk.c
libc/sysdeps/linux/cris/__init_brk.c
libc/sysdeps/linux/cris/brk.c
libc/sysdeps/linux/cris/sbrk.c
libc/sysdeps/linux/frv/__init_brk.c
libc/sysdeps/linux/frv/brk.c
libc/sysdeps/linux/frv/sbrk.c
libc/sysdeps/linux/h8300/brk.c
libc/sysdeps/linux/hppa/brk.c
libc/sysdeps/linux/i386/brk.c
libc/sysdeps/linux/ia64/brk.S
libc/sysdeps/linux/m68k/brk.c
libc/sysdeps/linux/mips/brk.c
libc/sysdeps/linux/nios/brk.c
libc/sysdeps/linux/nios2/brk.c
libc/sysdeps/linux/powerpc/brk.S
libc/sysdeps/linux/sh/__init_brk.c
libc/sysdeps/linux/sh/brk.c
libc/sysdeps/linux/sh/sbrk.c
libc/sysdeps/linux/sh64/__init_brk.c
libc/sysdeps/linux/sh64/brk.c
libc/sysdeps/linux/sh64/sbrk.c
libc/sysdeps/linux/sparc/brk.c
libc/sysdeps/linux/vax/brk.c
libc/sysdeps/linux/x86_64/brk.c
libc/unistd/exec.c
libc/unistd/getopt.c
libc/unistd/getpass.c
libm/k_standard.c
libm/s_lib_version.c

index 66626c0..063f6e9 100644 (file)
@@ -25,7 +25,6 @@
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
 
 static const char *error_msg = "Resolver error";
 static const char *const h_errlist[] = {
index 9b9a42a..885413d 100644 (file)
@@ -237,7 +237,6 @@ extern char * __searchdomain[MAX_SEARCH] attribute_hidden;
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 extern pthread_mutex_t __resolv_lock;
-libc_hidden_proto(__resolv_lock)
 #endif
 #define BIGLOCK        __pthread_mutex_lock(&__resolv_lock)
 #define BIGUNLOCK      __pthread_mutex_unlock(&__resolv_lock)
@@ -1022,7 +1021,6 @@ char * __searchdomain[MAX_SEARCH];
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 pthread_mutex_t __resolv_lock = PTHREAD_MUTEX_INITIALIZER;
-libc_hidden_data_def(__resolv_lock)
 #endif
 
 /*
index 7644ab2..80b60b5 100644 (file)
@@ -69,7 +69,6 @@ libc_hidden_proto(gettimeofday)
 libc_hidden_proto(fputs)
 libc_hidden_proto(perror)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 #ifdef USE_IN_LIBIO
 libc_hidden_proto(fwprintf)
 #endif
index 6d19df3..23e4ca8 100644 (file)
@@ -85,7 +85,6 @@ libc_hidden_proto(bindresvport)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 #ifdef USE_IN_LIBIO
 libc_hidden_proto(fwprintf)
 #endif
index 9b01d27..9e34440 100644 (file)
@@ -84,7 +84,6 @@ libc_hidden_proto(recvmsg)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 extern u_long _create_xid (void) attribute_hidden;
 
index c5e949d..82f994e 100644 (file)
@@ -87,7 +87,6 @@ libc_hidden_proto(sendmsg)
 libc_hidden_proto(poll)
 libc_hidden_proto(fputs)
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 extern u_long _create_xid (void) attribute_hidden;
 
index b4fe8cf..ee47cf4 100644 (file)
@@ -132,7 +132,6 @@ libc_hidden_proto(fopen)
 libc_hidden_proto(fclose)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__h_errno_location)
-libc_hidden_proto(stderr)
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 libc_hidden_proto(__ctype_tolower_loc)
index 4826d36..1525005 100644 (file)
@@ -5,7 +5,6 @@
 extern u_long _create_xid (void) attribute_hidden;
 
 libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(stderr)
 
 /*
  * Multi-threaded support
index c94f2de..035119d 100644 (file)
@@ -83,7 +83,6 @@ libc_hidden_proto(listen)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fclose)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 /*
  * Ops vector for TCP/IP based rpc service handle
index 53ef7ab..d2ed68d 100644 (file)
@@ -81,7 +81,6 @@ libc_hidden_proto(recvmsg)
 libc_hidden_proto(sendmsg)
 libc_hidden_proto(fputs)
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 #define rpc_buffer(xprt) ((xprt)->xp_p1)
 #ifndef MAX
index d91a9ac..1683bd3 100644 (file)
@@ -82,7 +82,6 @@ libc_hidden_proto(accept)
 libc_hidden_proto(listen)
 libc_hidden_proto(fputs)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 /*
  * Ops vector for AF_UNIX based rpc service handle
index 34787a8..e800991 100644 (file)
@@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf)
 
 libc_hidden_proto(strlen)
 libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
 
 /*
  * constants specific to the xdr "protocol"
index ddafc63..5f21fb2 100644 (file)
@@ -57,7 +57,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memset)
 libc_hidden_proto(fputs)
 libc_hidden_proto(xdr_u_int)
-libc_hidden_proto(stderr)
 
 #define LASTUNSIGNED   ((u_int)0-1)
 
index 99e6fe9..5f9e2b1 100644 (file)
@@ -63,7 +63,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memcpy)
 libc_hidden_proto(fputs)
 libc_hidden_proto(lseek)
-libc_hidden_proto(stderr)
 
 static bool_t xdrrec_getlong (XDR *, long *);
 static bool_t xdrrec_putlong (XDR *, const long *);
index 842d544..7201def 100644 (file)
@@ -58,7 +58,6 @@ libc_hidden_proto(fwprintf)
 libc_hidden_proto(memset)
 libc_hidden_proto(xdr_bool)
 libc_hidden_proto(fputs)
-libc_hidden_proto(stderr)
 
 #define LASTUNSIGNED   ((u_int)0-1)
 
index 4282812..1ab84fc 100644 (file)
@@ -35,7 +35,6 @@
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 
 /* Get the prototype from assert.h as a double-check. */
 #undef NDEBUG
index 00e74ce..cd33150 100644 (file)
@@ -29,7 +29,6 @@ libc_hidden_proto(vfprintf)
 libc_hidden_proto(__xpg_strerror_r)
 libc_hidden_proto(exit)
 libc_hidden_proto(vfprintf)
-libc_hidden_proto(stderr)
 
 static void vwarn_work(const char *format, va_list args, int showerr)
 {
index 3e44a01..bad1843 100644 (file)
@@ -35,8 +35,6 @@ libc_hidden_proto(vfprintf)
 libc_hidden_proto(fflush)
 libc_hidden_proto(fputc)
 libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdout)
-libc_hidden_proto(stderr)
 
 /* This variable is incremented each time `error' is called.  */
 unsigned int error_message_count = 0;
index 9931118..5fc0315 100644 (file)
@@ -89,7 +89,6 @@ union fooround {long x; double d;};
    abort gracefully or use longjump - but shouldn't return.  This
    variable by default points to the internal function
    `print_and_abort'.  */
-libc_hidden_proto(obstack_alloc_failed_handler)
 # if defined __STDC__ && __STDC__
 static void print_and_abort (void);
 void (*obstack_alloc_failed_handler) (void) = print_and_abort;
@@ -97,7 +96,6 @@ void (*obstack_alloc_failed_handler) (void) = print_and_abort;
 static void print_and_abort ();
 void (*obstack_alloc_failed_handler) () = print_and_abort;
 # endif
-libc_hidden_data_def(obstack_alloc_failed_handler)
 
 
 /* Exit value used when `print_and_abort' is used.  */
@@ -111,14 +109,11 @@ libc_hidden_data_def(obstack_alloc_failed_handler)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
 libc_hidden_proto(exit)
-libc_hidden_proto(stderr)
 #ifdef __UCLIBC_HAS_WCHAR__
 libc_hidden_proto(fwprintf)
 #endif
 
-libc_hidden_proto(obstack_exit_failure)
 int obstack_exit_failure = EXIT_FAILURE;
-libc_hidden_data_def(obstack_exit_failure)
 
 /* The non-GNU-C macros copy the obstack into this global variable
    to avoid multiple evaluation.  */
index a63345d..869c9e1 100644 (file)
@@ -113,23 +113,15 @@ strong_alias (__progname_full, program_invocation_name)
 #endif
 
 /*
- * Declare the __environ global variable and create a weak alias environ.
- * Note: Apparently we must initialize __environ to ensure that the weak
+ * Declare the __environ global variable and create a strong alias environ.
+ * Note: Apparently we must initialize __environ to ensure that the strong
  * environ symbol is also included.
  */
-libc_hidden_proto(__environ)
 char **__environ = 0;
-libc_hidden_data_def(__environ)
-#ifdef __USE_GNU
-/* psm: arm segfaults with strong_alias, although defined */
-weak_alias(__environ,environ)
-#endif
+strong_alias(__environ,environ)
 
 /* TODO: don't export __pagesize; we cant now because libpthread uses it */
-extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 size_t __pagesize = 0;
-libc_hidden_data_def(__pagesize)
 
 #ifndef O_NOFOLLOW
 # define O_NOFOLLOW    0
index e53731e..95b0917 100644 (file)
@@ -148,10 +148,6 @@ extern void _locale_init_l(__locale_t base) attribute_hidden;
 #include <langinfo.h>
 #include <nl_types.h>
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 /**********************************************************************/
 #ifdef L_setlocale
 
@@ -377,12 +373,9 @@ libc_hidden_proto(__ctype_toupper)
 __uclibc_locale_t __global_locale_data;
 
 __locale_t __global_locale = &__global_locale_data;
-libc_hidden_data_def(__global_locale)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__curlocale_var)
 __locale_t __curlocale_var = &__global_locale_data;
-libc_hidden_data_def(__curlocale_var)
 #endif
 
 /*----------------------------------------------------------------------*/
@@ -1386,8 +1379,6 @@ void freelocale(__locale_t dataset)
 /**********************************************************************/
 #ifdef L_uselocale
 
-libc_hidden_proto(__curlocale_var)
-
 libc_hidden_proto(uselocale)
 __locale_t uselocale(__locale_t dataset)
 {
@@ -1420,8 +1411,6 @@ libc_hidden_def(uselocale)
 
 #ifdef __UCLIBC_HAS_THREADS__
 
-libc_hidden_proto(__curlocale_var)
-
 __locale_t weak_const_function __curlocale(void)
 {
     return __curlocale_var; /* This is overriden by the thread version. */
index 9cc59d0..f95ad23 100644 (file)
@@ -1715,15 +1715,9 @@ static const char vals[] = {
 #define DEFAULT_RULES (vals + 22)
 
 /* Initialize to UTC. */
-libc_hidden_proto(daylight)
 int daylight = 0;
-libc_hidden_data_def(daylight)
-libc_hidden_proto(timezone)
 long timezone = 0;
-libc_hidden_data_def(timezone)
-libc_hidden_proto(tzname)
 char *tzname[2] = { (char *) UTC, (char *) (UTC-1) };
-libc_hidden_data_def(tzname)
 
 #ifdef __UCLIBC_HAS_THREADS__
 attribute_hidden pthread_mutex_t _time_tzlock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
index a795986..91a78fb 100644 (file)
 #include <wchar.h>
 #include <bits/uClibc_uwchar.h>
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 /**********************************************************************/
 #ifdef __UCLIBC_HAS_LOCALE__
 #ifdef __UCLIBC_MJN3_ONLY__
index a7d1110..84c308a 100644 (file)
@@ -60,9 +60,6 @@ libc_hidden_proto(iswctype_l)
 #else
 libc_hidden_proto(__ctype_b)
 #endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 /* We know wide char support is enabled.  We wouldn't be here otherwise. */
 
index 1693d8b..8d2e6e0 100644 (file)
@@ -44,7 +44,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strndup)
 libc_hidden_proto(strspn)
 libc_hidden_proto(strcspn)
-libc_hidden_proto(__environ)
 libc_hidden_proto(setenv)
 libc_hidden_proto(unsetenv)
 libc_hidden_proto(waitpid)
@@ -66,7 +65,6 @@ libc_hidden_proto(getpid)
 libc_hidden_proto(sprintf)
 libc_hidden_proto(fprintf)
 libc_hidden_proto(abort)
-libc_hidden_proto(stderr)
 libc_hidden_proto(glob)
 libc_hidden_proto(globfree)
 libc_hidden_proto(wordfree)
index 746a098..2e87100 100644 (file)
@@ -9,9 +9,6 @@
 #include <stdio_ext.h>
 
 libc_hidden_proto(__fsetlocking)
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
 
 /* Not threadsafe. */
 
index 4ca0282..02051ef 100644 (file)
@@ -11,10 +11,6 @@ libc_hidden_proto(isatty)
 libc_hidden_proto(open)
 libc_hidden_proto(fcntl)
 
-#ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
-#endif
-
 /*
  * Cases:
  *  fopen64  : filename != NULL, stream == NULL, filedes == -2
index 9b87f64..f563233 100644 (file)
@@ -12,9 +12,6 @@
 #include <bits/uClibc_fpmax.h>
 
 libc_hidden_proto(memset)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 typedef size_t (__fp_outfunc_t)(FILE *fp, intptr_t type, intptr_t len,
                                                                intptr_t buf);
index df78e7a..bbbcdcc 100644 (file)
@@ -101,9 +101,6 @@ libc_hidden_proto(fgetwc_unlocked)
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 #else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 libc_hidden_proto(__ctype_b)
 #endif
 
index 63fc370..6c96d86 100644 (file)
@@ -125,19 +125,12 @@ static FILE _stdio_streams[] = {
                                                         0 )
 };
 
-/* psm: moved to _stdio.h: libc_hidden_proto(stdin/stdout) */
 FILE *stdin  = _stdio_streams;
-libc_hidden_data_def(stdin)
 FILE *stdout = _stdio_streams + 1;
-libc_hidden_data_def(stdout)
-libc_hidden_proto(stderr)
 FILE *stderr = _stdio_streams + 2;
-libc_hidden_data_def(stderr)
 
 #ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
 FILE *__stdin = _stdio_streams;                 /* For getchar() macro. */
-libc_hidden_data_def(__stdin)
 #endif
 #ifdef __STDIO_PUTC_MACRO
 FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
@@ -159,11 +152,9 @@ FILE *__stdout = _stdio_streams + 1; /* For putchar() macro. */
  */
 
 FILE *_stdio_openlist = _stdio_streams;
-libc_hidden_data_def(_stdio_openlist)
 
 # ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t _stdio_openlist_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(_stdio_openlist_lock)
 int _stdio_openlist_delflag = 0;
 # endif
 
@@ -172,9 +163,7 @@ int _stdio_openlist_delflag = 0;
 #ifdef __UCLIBC_HAS_THREADS__
 
 /* 2 if threading not initialized and 0 otherwise; */
-libc_hidden_proto(_stdio_user_locking)
 int _stdio_user_locking = 2;
-libc_hidden_data_def(_stdio_user_locking)
 
 void attribute_hidden __stdio_init_mutex(pthread_mutex_t *m)
 {
index 83d4335..348f5ec 100644 (file)
 #include <wchar.h>
 #endif
 
-libc_hidden_proto(stdin)
-libc_hidden_proto(stdout)
-
-libc_hidden_proto(_stdio_openlist)
-
 #ifdef __UCLIBC_HAS_THREADS__
 #include <pthread.h>
-libc_hidden_proto(_stdio_openlist_lock)
 
 #define __STDIO_THREADLOCK_OPENLIST \
        __pthread_mutex_lock(&_stdio_openlist_lock)
index f9c8350..4310d64 100644 (file)
@@ -12,9 +12,6 @@
 #include <bits/uClibc_uintmaxtostr.h>
 
 libc_hidden_proto(memcpy)
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 /* Avoid using long long / and % operations to cut down dependencies on
  * libgcc.a.  Definitely helps on i386 at least. */
index a32960f..d6965ca 100644 (file)
@@ -512,10 +512,6 @@ size_t parse_printf_format(register const char *template,
 /**********************************************************************/
 #ifdef L__ppfs_init
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 int attribute_hidden _ppfs_init(register ppfs_t *ppfs, const char *fmt0)
 {
        int r;
@@ -1254,10 +1250,6 @@ static size_t _fp_out_narrow(FILE *fp, intptr_t type, intptr_t len, intptr_t buf
 #define _outnwcs(stream, wstring, len) _wstdio_fwrite(wstring, len, stream)
 #define FP_OUT _fp_out_wide
 
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
-
 static size_t _outnstr(FILE *stream, const char *s, size_t wclen)
 {
        /* NOTE!!! len here is the number of wchars we want to generate!!! */
index a2e1cf9..c0f58d8 100644 (file)
@@ -16,7 +16,6 @@ libc_hidden_proto(fflush_unlocked)
 #endif /* __UCLIBC_MJN3_ONLY__ */
 
 #ifdef __UCLIBC_HAS_THREADS__
-libc_hidden_proto(_stdio_user_locking)
 /* Even if the stream is set to user-locking, we still need to lock
  * when all (lbf) writing streams are flushed. */
 #define MY_STDIO_THREADLOCK(STREAM) \
index 5ff7869..dc54133 100644 (file)
@@ -13,9 +13,7 @@ link_warning(gets, "the 'gets' function is dangerous and should not be used.")
 
 libc_hidden_proto(getchar_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
-#ifdef __STDIO_GETC_MACRO
-libc_hidden_proto(__stdin)
-#else
+#ifndef __STDIO_GETC_MACRO
 #define __stdin stdin
 #endif
 
index 2c3cbbd..993fcf4 100644 (file)
@@ -9,7 +9,6 @@
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(__glibc_strerror_r)
-libc_hidden_proto(stderr)
 
 #ifdef __UCLIBC_MJN3_ONLY__
 #warning CONSIDER: Increase buffer size for error message (non-%m case)?
index bf35ab2..2361560 100644 (file)
@@ -49,7 +49,6 @@ libc_hidden_proto(_exit)
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 extern pthread_mutex_t mylock;
-libc_hidden_proto(mylock)
 #endif
 #define LOCK   __pthread_mutex_lock(&mylock)
 #define UNLOCK __pthread_mutex_unlock(&mylock)
@@ -315,7 +314,6 @@ extern void weak_function _stdio_term(void) attribute_hidden;
 attribute_hidden void (*__exit_cleanup) (int) = 0;
 #ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t mylock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(mylock)
 #endif
 
 extern void __uClibc_fini(void);
index c4447d9..f2cd5e8 100644 (file)
@@ -178,9 +178,6 @@ extern void __fp_range_check(__fpmax_t y, __fpmax_t x) attribute_hidden;
 #ifdef __UCLIBC_HAS_XLOCALE__
 libc_hidden_proto(__ctype_b_loc)
 #else
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 libc_hidden_proto(__ctype_b)
 libc_hidden_proto(__ctype_tolower)
 #endif
index 4f4c4f1..c7940f3 100644 (file)
@@ -11,7 +11,6 @@
 libc_hidden_proto(getenv)
 libc_hidden_proto(memcmp)
 libc_hidden_proto(strlen)
-libc_hidden_proto(__environ)
 
 /* IEEE Std 1003.1-2001 says getenv need not be thread safe, so 
  * don't bother locking access to __environ */
index 89c9a6e..4f274ed 100644 (file)
@@ -17,7 +17,6 @@
 #include "malloc.h"
 
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 /* ------------------------------ mallinfo ------------------------------ */
 libc_hidden_proto(mallinfo)
index 10d4213..b4b1216 100644 (file)
@@ -19,7 +19,6 @@
 
 #ifdef __UCLIBC_HAS_THREADS__
 pthread_mutex_t __malloc_lock = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
-libc_hidden_data_def(__malloc_lock)
 #endif
 
 /*
index a3fabb0..453d697 100644 (file)
@@ -31,7 +31,6 @@ libc_hidden_proto(abort)
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
 extern pthread_mutex_t __malloc_lock;
-libc_hidden_proto(__malloc_lock)
 #endif
 #define LOCK   __pthread_mutex_lock(&__malloc_lock)
 #define UNLOCK __pthread_mutex_unlock(&__malloc_lock)
index 7532054..e722bc8 100644 (file)
@@ -16,7 +16,6 @@
 
 /* The system pagesize... */
 extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 #define MALLOC_PAGE_SIZE       __pagesize
 
 /* The minimum size of block we request from the the system to extend the
index e7dc260..fa61675 100644 (file)
@@ -31,7 +31,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(strndup)
 libc_hidden_proto(unsetenv)
-libc_hidden_proto(__environ)
 
 #ifdef __UCLIBC_HAS_THREADS__
 # include <pthread.h>
index f9ec755..61a6da0 100644 (file)
 #ifdef __UCLIBC_HAS_XLOCALE__
 #include <xlocale.h>
 #endif /* __UCLIBC_HAS_XLOCALE__ */
-#ifdef __UCLIBC_HAS_LOCALE__
-libc_hidden_proto(__global_locale)
-#endif
 
 /* TODO: clean up the following... */
 
index 42216e9..3009e4e 100644 (file)
@@ -57,8 +57,6 @@ libc_hidden_proto(wcscmp)
 
 #endif /* defined(L_strxfrm) || defined(L_strxfrm_l) */
 
-libc_hidden_proto(__global_locale)
-
 #if defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE)
 
 libc_hidden_proto(wcscoll_l)
index a852e60..467e3bc 100644 (file)
@@ -12,7 +12,6 @@
 
 libc_hidden_proto(fprintf)
 libc_hidden_proto(strsignal)
-libc_hidden_proto(stderr)
 
 /* TODO: make this threadsafe with a reentrant version of strsignal? */
 
index a108c0d..05c3b2c 100644 (file)
@@ -68,7 +68,7 @@ brk:
 
        /* Update __curbrk and return cleanly.  */
        mov     $31, $0
-$ok:   stq     $16, HIDDEN_JUMPTARGET(__curbrk)
+$ok:   stq     $16, __curbrk
        addq    $30, 8, $30
        ret
 
index 185d9b4..3d606e5 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 1df3ae5..3b26169 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 4a35d07..efb5fcb 100644 (file)
@@ -21,7 +21,6 @@
 #include <sys/param.h>
 
 extern size_t __pagesize;
-libc_hidden_proto(__pagesize)
 
 /* Return the system page size.  */
 /* couldn't make __getpagesize hidden, because shm.h uses it in a macro */
index d9a4d68..f8b5682 100644 (file)
@@ -13,7 +13,6 @@ libc_hidden_proto(brk)
 
 /* Defined in brk.c.  */
 extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 
 /* Extend the process's data space by INCREMENT.
    If INCREMENT is negative, shrink data space by - INCREMENT.
index 8e6591a..df41f9b 100644 (file)
@@ -5,10 +5,7 @@
 #include <errno.h>
 #include "sysdep.h"
 
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index 6c518f5..8183aab 100644 (file)
@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index 15f506c..934dc90 100644 (file)
@@ -13,7 +13,6 @@
 libc_hidden_proto(sbrk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index 507902f..b688f98 100644 (file)
@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
index 9e33830..b26f74f 100644 (file)
@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index bb66f01..fd76098 100644 (file)
@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index 52ba1ac..0da4286 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 52d0b4c..b57c332 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int
 brk (void *addr)
index 6a654f0..fcf7f3b 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 35547b7..82a962d 100644 (file)
@@ -31,7 +31,6 @@
        .align  8
 __curbrk:
        data8   0
-libc_hidden_data_def(__curbrk)
 
 weak_alias (__curbrk, ___brk_addr)
 
@@ -39,7 +38,7 @@ LEAF(brk)
        .regstk 1, 0, 0, 0
        DO_CALL(__NR_brk)
        cmp.ltu p6, p0 = ret0, in0
-       addl r9 = @ltoff(HIDDEN_JUMPTARGET(__curbrk)), gp
+       addl r9 = @ltoff(__curbrk), gp
        ;;
        ld8 r9 = [r9]
 (p6)   mov ret0 = ENOMEM
index b627f64..cad5976 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 8d2b4ed..cf48288 100644 (file)
 
 libc_hidden_proto(brk)
 
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 69f60d3..2c252f9 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 2d7bf44..1711e60 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
-
 
 int brk (void *addr)
 {
index 95b4dfd..b06dc0c 100644 (file)
@@ -35,7 +35,6 @@ __curbrk: .skip 4
 #else
 .comm __curbrk, 4,4
 #endif
-libc_hidden_data_def(__curbrk)
 
        .text
        .globl  brk
@@ -52,12 +51,12 @@ brk:
        mflr    r4
        bl      _GLOBAL_OFFSET_TABLE_@local-4
        mflr    r5
-       lwz     r5,HIDDEN_JUMPTARGET(__curbrk)@got(r5)
+       lwz     r5,__curbrk@got(r5)
        mtlr    r4
        stw     r3,0(r5)
 #else
-       lis     r4,HIDDEN_JUMPTARGET(__curbrk)@ha
-       stw     r3,HIDDEN_JUMPTARGET(__curbrk)@l(r4)
+       lis     r4,__curbrk@ha
+       stw     r3,__curbrk@l(r4)
 #endif
        cmplw   r6,r3
        addi    r1,r1,16
index c14180a..9f5ee86 100644 (file)
@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
index 9e33830..b26f74f 100644 (file)
@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index bb66f01..fd76098 100644 (file)
@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index c14180a..9f5ee86 100644 (file)
@@ -4,10 +4,7 @@
 #include <unistd.h>
 #include <sys/syscall.h>
 
-extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 void * __curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 #define __NR__brk __NR_brk
 attribute_hidden _syscall1(void *, _brk, void *, ptr);
index 9e33830..b26f74f 100644 (file)
@@ -12,7 +12,6 @@
 libc_hidden_proto(brk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index bb66f01..fd76098 100644 (file)
@@ -7,7 +7,6 @@
 libc_hidden_proto(sbrk)
 
 extern void * __curbrk;
-libc_hidden_proto(__curbrk)
 
 extern int __init_brk (void);
 libc_hidden_proto(__init_brk)
index a855ef0..f6d5281 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index c8105b6..5b23f60 100644 (file)
 #include <sys/syscall.h>
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = NULL;
-libc_hidden_data_def(__curbrk)
 
 libc_hidden_proto(brk)
 int
index e0f9637..09d9110 100644 (file)
 libc_hidden_proto(brk)
 
 /* This must be initialized data because commons can't have aliases.  */
-extern void *__curbrk;
-libc_hidden_proto(__curbrk)
 void *__curbrk = 0;
-libc_hidden_data_def(__curbrk)
 
 int brk (void *addr)
 {
index 3563723..eaf6a40 100644 (file)
@@ -50,7 +50,6 @@ libc_hidden_proto(execve)
 libc_hidden_proto(mmap)
 libc_hidden_proto(munmap)
 libc_hidden_proto(getenv)
-libc_hidden_proto(__environ)
 
 /**********************************************************************/
 #if defined(__ARCH_USE_MMU__) || defined(__UCLIBC_UCLINUX_BROKEN_MUNMAP__)
index cffde47..0c30032 100644 (file)
@@ -127,7 +127,6 @@ libc_hidden_proto(strlen)
 libc_hidden_proto(strncmp)
 libc_hidden_proto(getenv)
 libc_hidden_proto(fprintf)
-libc_hidden_proto(stderr)
 
 /* For communication from `getopt' to the caller.
    When `getopt' finds an option that takes an argument,
index 455838c..5833bc3 100644 (file)
@@ -35,8 +35,6 @@ libc_hidden_proto(fputs)
 libc_hidden_proto(fputc)
 libc_hidden_proto(putc)
 libc_hidden_proto(__fputc_unlocked)
-libc_hidden_proto(stdin)
-libc_hidden_proto(stderr)
 
 /* It is desirable to use this bit on systems that have it.
    The only bit of terminal state we want to twiddle is echoing, which is
index 11df7bb..30d83e3 100644 (file)
@@ -21,7 +21,6 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $
 libm_hidden_proto(copysign)
 libm_hidden_proto(matherr)
 libm_hidden_proto(rint)
-libm_hidden_proto(_LIB_VERSION)
 
 #ifndef _USE_WRITE
 #include <stdio.h>                     /* fputs(), stderr */
index 4028dfd..fde8e3b 100644 (file)
@@ -24,7 +24,6 @@ static char rcsid[] = "$NetBSD: s_lib_version.c,v 1.6 1995/05/10 20:47:44 jtc Ex
 /*
  * define and initialize _LIB_VERSION
  */
-libm_hidden_proto(_LIB_VERSION)
 #ifdef _POSIX_MODE
 _LIB_VERSION_TYPE _LIB_VERSION = _POSIX_;
 #else
@@ -38,4 +37,3 @@ _LIB_VERSION_TYPE _LIB_VERSION = _IEEE_;
 #endif
 #endif
 #endif
-libm_hidden_data_def(_LIB_VERSION)