svn commit: trunk/uClibc/libc: misc/ctype misc/error misc/intl misc/reg etc...

psm at uclibc.org psm at uclibc.org
Mon Jan 16 18:29:58 UTC 2006


Author: psm
Date: 2006-01-16 10:29:52 -0800 (Mon, 16 Jan 2006)
New Revision: 13362

Log:
s/weak_alias/strong_alias/, only what I knew as needed are kept. We will now see what libpthread will do ...

Modified:
   trunk/uClibc/libc/misc/ctype/ctype.c
   trunk/uClibc/libc/misc/error/error.c
   trunk/uClibc/libc/misc/intl/intl.c
   trunk/uClibc/libc/misc/regex/regcomp.c
   trunk/uClibc/libc/misc/regex/regex_old.c
   trunk/uClibc/libc/misc/regex/regexec.c
   trunk/uClibc/libc/misc/search/hsearch.c
   trunk/uClibc/libc/misc/time/time.c
   trunk/uClibc/libc/sysdeps/linux/common/lstat.c
   trunk/uClibc/libc/sysdeps/linux/common/stat.c
   trunk/uClibc/libc/termios/tcdrain.c


Changeset:
Modified: trunk/uClibc/libc/misc/ctype/ctype.c
===================================================================
--- trunk/uClibc/libc/misc/ctype/ctype.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/ctype/ctype.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -93,7 +93,7 @@
 #ifdef __UCLIBC_DO_XLOCALE
 #define CTYPE_NAME(X)  __is ## X ## _l
 #define ISCTYPE(C,F)   __isctype_l( C, F, locale_arg)
-#define CTYPE_ALIAS(NAME)    weak_alias( __is ## NAME ## _l , is ## NAME ## _l)
+#define CTYPE_ALIAS(NAME)    strong_alias( __is ## NAME ## _l , is ## NAME ## _l)
 #else
 #define CTYPE_NAME(X)  is ## X
 #define ISCTYPE(C,F)   __isctype( C, F )

Modified: trunk/uClibc/libc/misc/error/error.c
===================================================================
--- trunk/uClibc/libc/misc/error/error.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/error/error.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -52,7 +52,7 @@
 void (*error_print_progname) (void) = NULL;
 
 
-void __error (int status, int errnum, const char *message, ...)
+attribute_hidden void __error (int status, int errnum, const char *message, ...)
 {
     va_list args;
 
@@ -70,7 +70,7 @@
 	exit (status);
 }
 
-void __error_at_line (int status, int errnum, const char *file_name,
+attribute_hidden void __error_at_line (int status, int errnum, const char *file_name,
 	       unsigned int line_number, const char *message, ...)
 {
     va_list args;
@@ -106,8 +106,7 @@
 	exit (status);
 }
 
-/* Use the weaks here in an effort at controlling namespace pollution */
 #undef error
 #undef error_at_line
-weak_alias (__error, error)
-weak_alias (__error_at_line, error_at_line)
+strong_alias(__error,error)
+strong_alias(__error_at_line,error_at_line)

Modified: trunk/uClibc/libc/misc/intl/intl.c
===================================================================
--- trunk/uClibc/libc/misc/intl/intl.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/intl/intl.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -16,7 +16,7 @@
  */
 
 /*
- *  Supply some weaks for use by strerror*(), etc.
+ *  Supply some strongs for use by strerror*(), etc.
  *
  *  Aug 30, 2003
  *  Add some hidden names to support locale-enabled libstd++.
@@ -40,7 +40,7 @@
 	return (char *) msgid;
 }
 
-weak_alias(__uClibc_dgettext, __dgettext)
+strong_alias(__uClibc_dgettext, __dgettext)
 
 #endif
 /**********************************************************************/
@@ -52,7 +52,7 @@
 	return (char *) msgid;
 }
 
-weak_alias(__uClibc_dcgettext, __dcgettext)
+strong_alias(__uClibc_dcgettext, __dcgettext)
 
 #endif
 /**********************************************************************/
@@ -69,7 +69,7 @@
 	return (char *) default_str;
 }
 
-weak_alias(__uClibc_textdomain, __textdomain)
+strong_alias(__uClibc_textdomain, __textdomain)
 
 #endif
 /**********************************************************************/
@@ -95,7 +95,7 @@
 	return (char *) dir;
 }
 
-weak_alias(__uClibc_bindtextdomain, __bindtextdomain)
+strong_alias(__uClibc_bindtextdomain, __bindtextdomain)
 
 #endif
 /**********************************************************************/

Modified: trunk/uClibc/libc/misc/regex/regcomp.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regcomp.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/regex/regcomp.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -233,7 +233,7 @@
   return gettext (__re_error_msgid + __re_error_msgid_idx[(int) ret]);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_compile_pattern, re_compile_pattern)
+strong_alias(__re_compile_pattern, re_compile_pattern)
 #endif
 
 /* Set by `re_set_syntax' to the current regexp syntax to recognize.  Can
@@ -261,7 +261,7 @@
   return ret;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_set_syntax, re_set_syntax)
+strong_alias(__re_set_syntax, re_set_syntax)
 #endif
 
 int
@@ -283,7 +283,7 @@
   return 0;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_compile_fastmap, re_compile_fastmap)
+strong_alias(__re_compile_fastmap, re_compile_fastmap)
 #endif
 
 static inline void
@@ -499,7 +499,7 @@
   return (int) ret;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regcomp, regcomp)
+strong_alias(__regcomp, regcomp)
 #endif
 
 /* Returns a message corresponding to an error code, ERRCODE, returned
@@ -546,7 +546,7 @@
   return msg_size;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regerror, regerror)
+strong_alias(__regerror, regerror)
 #endif
 
 
@@ -630,7 +630,7 @@
   preg->translate = NULL;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regfree, regfree)
+strong_alias(__regfree, regfree)
 #endif
 
 /* Entry points compatible with 4.2 BSD regex library.  We don't define

Modified: trunk/uClibc/libc/misc/regex/regex_old.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regex_old.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/regex/regex_old.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -1390,7 +1390,7 @@
   return ret;
 }
 # if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_set_syntax, re_set_syntax)
+strong_alias(__re_set_syntax, re_set_syntax)
 # endif
 
 /* This table gives an error message for each of the error codes listed
@@ -5010,7 +5010,7 @@
     return byte_re_compile_fastmap(bufp);
 } /* re_compile_fastmap */
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_compile_fastmap, re_compile_fastmap)
+strong_alias(__re_compile_fastmap, re_compile_fastmap)
 #endif
 
 
@@ -5049,7 +5049,7 @@
     }
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_set_registers, re_set_registers)
+strong_alias(__re_set_registers, re_set_registers)
 #endif
 
 /* Searching routines.  */
@@ -5068,7 +5068,7 @@
 		      regs, size);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_search, re_search)
+strong_alias(__re_search, re_search)
 #endif
 
 
@@ -5113,7 +5113,7 @@
 			     range, regs, stop);
 } /* re_search_2 */
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_search_2, re_search_2)
+strong_alias(__re_search_2, re_search_2)
 #endif
 
 #endif /* not INSIDE_RECURSION */
@@ -5572,7 +5572,7 @@
   return result;
 }
 # if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_match, re_match)
+strong_alias(__re_match, re_match)
 # endif
 #endif /* not emacs */
 
@@ -5633,7 +5633,7 @@
   return result;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_match_2, re_match_2)
+strong_alias(__re_match_2, re_match_2)
 #endif
 
 #endif /* not INSIDE_RECURSION */
@@ -7972,7 +7972,7 @@
   return gettext (re_error_msgid + re_error_msgid_idx[(int) ret]);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_compile_pattern, re_compile_pattern)
+strong_alias(__re_compile_pattern, re_compile_pattern)
 #endif
 
 /* Entry points compatible with 4.2 BSD regex library.  We don't define
@@ -8168,7 +8168,7 @@
   return (int) ret;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regcomp, regcomp)
+strong_alias(__regcomp, regcomp)
 #endif
 
 
@@ -8246,7 +8246,7 @@
   return ret >= 0 ? (int) REG_NOERROR : (int) REG_NOMATCH;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regexec, regexec)
+strong_alias(__regexec, regexec)
 #endif
 
 
@@ -8294,7 +8294,7 @@
   return msg_size;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regerror, regerror)
+strong_alias(__regerror, regerror)
 #endif
 
 
@@ -8321,7 +8321,7 @@
   preg->translate = NULL;
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__regfree, regfree)
+strong_alias(__regfree, regfree)
 #endif
 
 #endif /* not emacs  */

Modified: trunk/uClibc/libc/misc/regex/regexec.c
===================================================================
--- trunk/uClibc/libc/misc/regex/regexec.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/regex/regexec.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -275,7 +275,7 @@
 compat_symbol (libc, __compat_regexec, regexec, GLIBC_2_0);
 # endif
 #elif __UCLIBC__
-weak_alias(__regexec,regexec)
+strong_alias(__regexec,regexec)
 #endif
 
 /* Entry points for GNU code.  */
@@ -317,7 +317,7 @@
   return re_search_stub (bufp, string, length, start, 0, length, regs, 1);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_match, re_match)
+strong_alias(__re_match, re_match)
 #endif
 
 int
@@ -330,7 +330,7 @@
   return re_search_stub (bufp, string, length, start, range, length, regs, 0);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_search, re_search)
+strong_alias(__re_search, re_search)
 #endif
 
 int
@@ -344,7 +344,7 @@
 			   start, 0, regs, stop, 1);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_match_2, re_match_2)
+strong_alias(__re_match_2, re_match_2)
 #endif
 
 int
@@ -358,7 +358,7 @@
 			   start, range, regs, stop, 0);
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_search_2, re_search_2)
+strong_alias(__re_search_2, re_search_2)
 #endif
 
 static int
@@ -593,7 +593,7 @@
     }
 }
 #if defined _LIBC || defined __UCLIBC__
-weak_alias (__re_set_registers, re_set_registers)
+strong_alias(__re_set_registers, re_set_registers)
 #endif
 
 /* Entry points compatible with 4.2 BSD regex library.  We don't define

Modified: trunk/uClibc/libc/misc/search/hsearch.c
===================================================================
--- trunk/uClibc/libc/misc/search/hsearch.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/search/hsearch.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -53,7 +53,6 @@
 {
   hdestroy_r (&htab);
 }
-/* weak_alias (__hdestroy, hdestroy) */
 
 /* Make sure the table is freed if we want to free everything before
    exiting.  */

Modified: trunk/uClibc/libc/misc/time/time.c
===================================================================
--- trunk/uClibc/libc/misc/time/time.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/misc/time/time.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -756,7 +756,7 @@
 
 /* Another name for `mktime'.  */
 /* time_t timelocal(struct tm *tp) */
-weak_alias(mktime,timelocal)
+strong_alias(mktime,timelocal)
 
 #endif
 /**********************************************************************/

Modified: trunk/uClibc/libc/sysdeps/linux/common/lstat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/lstat.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/sysdeps/linux/common/lstat.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -7,7 +7,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-/* need to hide the 64bit prototype or the weak_alias()
+/* need to hide the 64bit prototype or the strong_alias()
  * will fail when __NR_lstat64 doesnt exist */
 #define lstat64 __hidelstat64
 

Modified: trunk/uClibc/libc/sysdeps/linux/common/stat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/stat.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/sysdeps/linux/common/stat.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -7,7 +7,7 @@
  * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  */
 
-/* need to hide the 64bit prototype or the weak_alias()
+/* need to hide the 64bit prototype or the strong_alias()
  * will fail when __NR_stat64 doesnt exist */
 #define stat64 __hidestat64
 

Modified: trunk/uClibc/libc/termios/tcdrain.c
===================================================================
--- trunk/uClibc/libc/termios/tcdrain.c	2006-01-16 18:27:44 UTC (rev 13361)
+++ trunk/uClibc/libc/termios/tcdrain.c	2006-01-16 18:29:52 UTC (rev 13362)
@@ -27,4 +27,4 @@
 {
       return ioctl(fd, TCSBRK, 1);
 }
-weak_alias (__libc_tcdrain, tcdrain)
+strong_alias(__libc_tcdrain,tcdrain)




More information about the uClibc-cvs mailing list