2009-05-15 10:36:04 +00:00
|
|
|
--- a/lib/string.c
|
|
|
|
+++ b/lib/string.c
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -50,6 +50,7 @@ int strnicmp(const char *s1, const char
|
2006-01-17 15:45:36 +00:00
|
|
|
}
|
|
|
|
return (int)c1 - (int)c2;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strnicmp);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
char * ___strtok;
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -68,6 +69,7 @@ char * strcpy(char * dest,const char *sr
|
2006-01-17 15:45:36 +00:00
|
|
|
/* nothing */;
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strcpy);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRNCPY
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -90,6 +92,7 @@ char * strncpy(char * dest,const char *s
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strncpy);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRCAT
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -109,6 +112,7 @@ char * strcat(char * dest, const char *
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strcat);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRNCAT
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -138,6 +142,7 @@ char * strncat(char *dest, const char *s
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return tmp;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strncat);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRCMP
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -157,6 +162,7 @@ int strcmp(const char * cs,const char *
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return __res;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strcmp);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRNCMP
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -178,6 +184,7 @@ int strncmp(const char * cs,const char *
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return __res;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strncmp);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRCHR
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -193,6 +200,7 @@ char * strchr(const char * s, int c)
|
2006-01-17 15:45:36 +00:00
|
|
|
return NULL;
|
|
|
|
return (char *) s;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strchr);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRRCHR
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -210,6 +218,7 @@ char * strrchr(const char * s, int c)
|
2006-01-17 15:45:36 +00:00
|
|
|
} while (--p >= s);
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strrchr);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRLEN
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -225,6 +234,7 @@ size_t strlen(const char * s)
|
2006-01-17 15:45:36 +00:00
|
|
|
/* nothing */;
|
|
|
|
return sc - s;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strlen);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRNLEN
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -241,6 +251,7 @@ size_t strnlen(const char * s, size_t co
|
2006-01-17 15:45:36 +00:00
|
|
|
/* nothing */;
|
|
|
|
return sc - s;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strnlen);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRSPN
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -268,6 +279,7 @@ size_t strspn(const char *s, const char
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return count;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strspn);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRPBRK
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -288,6 +300,7 @@ char * strpbrk(const char * cs,const cha
|
2006-01-17 15:45:36 +00:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strpbrk);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRTOK
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -345,6 +358,7 @@ char * strsep(char **s, const char *ct)
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return sbegin;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strsep);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_MEMSET
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -365,6 +379,7 @@ void * memset(void * s,int c,size_t coun
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(memset);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_BCOPY
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -409,6 +424,7 @@ void * memcpy(void * dest,const void *sr
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return dest;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(memcpy);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_MEMMOVE
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -439,6 +455,7 @@ void * memmove(void * dest,const void *s
|
2006-01-17 15:45:36 +00:00
|
|
|
|
|
|
|
return dest;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(memmove);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_MEMCMP
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -458,6 +475,7 @@ int memcmp(const void * cs,const void *
|
2006-01-17 15:45:36 +00:00
|
|
|
break;
|
|
|
|
return res;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(memcmp);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_MEMSCAN
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -482,6 +500,7 @@ void * memscan(void * addr, int c, size_
|
2006-01-17 15:45:36 +00:00
|
|
|
}
|
|
|
|
return (void *) p;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(memscan);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_STRSTR
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -506,6 +525,7 @@ char * strstr(const char * s1,const char
|
2006-01-17 15:45:36 +00:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
+EXPORT_SYMBOL(strstr);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef __HAVE_ARCH_MEMCHR
|
2008-05-19 13:44:11 +00:00
|
|
|
@@ -528,5 +548,5 @@ void *memchr(const void *s, int c, size_
|
2006-01-17 15:45:36 +00:00
|
|
|
}
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+EXPORT_SYMBOL(memchr);
|
|
|
|
#endif
|