[uClibc-cvs] uClibc/libc/string/i386 string.c,1.1,1.2

Erik Andersen andersen at uclibc.org
Thu Nov 6 20:29:38 UTC 2003


Update of /var/cvs/uClibc/libc/string/i386
In directory winder:/tmp/cvs-serv4479

Modified Files:
	string.c 
Log Message:
Add in aliases provided by the non arch specific implementations


Index: string.c
===================================================================
RCS file: /var/cvs/uClibc/libc/string/i386/string.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- string.c	6 Nov 2003 09:14:26 -0000	1.1
+++ string.c	6 Nov 2003 20:29:35 -0000	1.2
@@ -25,6 +25,7 @@
 #define _STDIO_UTILITY
 #define _GNU_SOURCE
 #include <string.h>
+#include <locale.h> /* for __LOCALE_C_ONLY */
 
 #ifdef L_strcpy
 char * strcpy(char * dest, const char * src)
@@ -128,6 +129,9 @@
 	    :"1" (cs),"2" (ct));
     return __res;
 }
+#ifdef __LOCALE_C_ONLY
+weak_alias(strcmp,strcoll);
+#endif /* __LOCALE_C_ONLY */
 #endif
 
 
@@ -174,6 +178,7 @@
 	    :"=a" (__res), "=&S" (d0) : "1" (s),"0" (c));
     return __res;
 }
+weak_alias(strchr,index);
 #endif
 
 
@@ -193,6 +198,7 @@
 	    :"=g" (__res), "=&S" (d0), "=&a" (d1) :"0" (0),"1" (s),"2" (c));
     return __res;
 }
+weak_alias(strrchr,rindex);
 #endif
 
 




More information about the uClibc-cvs mailing list