X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/f52d66ff00b24111f87c274d3d7085ef2e1d27b1..5b74d557fa51ff9aa9e3e33883328798a96b1eed:/target/linux/generic-2.4/patches/225-string_lib_useful_exports.patch diff --git a/target/linux/generic-2.4/patches/225-string_lib_useful_exports.patch b/target/linux/generic-2.4/patches/225-string_lib_useful_exports.patch index b89f76517..51ec27fba 100644 --- a/target/linux/generic-2.4/patches/225-string_lib_useful_exports.patch +++ b/target/linux/generic-2.4/patches/225-string_lib_useful_exports.patch @@ -1,7 +1,6 @@ -diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c ---- linux-2.4.32-old/lib/string.c 2004-11-17 12:54:22.000000000 +0100 -+++ linux-2.4.32-new/lib/string.c 2006-01-17 14:41:17.000000000 +0100 -@@ -50,6 +50,7 @@ +--- a/lib/string.c ++++ b/lib/string.c +@@ -50,6 +50,7 @@ int strnicmp(const char *s1, const char } return (int)c1 - (int)c2; } @@ -9,7 +8,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif char * ___strtok; -@@ -68,6 +69,7 @@ +@@ -68,6 +69,7 @@ char * strcpy(char * dest,const char *sr /* nothing */; return tmp; } @@ -17,7 +16,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRNCPY -@@ -90,6 +92,7 @@ +@@ -90,6 +92,7 @@ char * strncpy(char * dest,const char *s return tmp; } @@ -25,7 +24,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRCAT -@@ -109,6 +112,7 @@ +@@ -109,6 +112,7 @@ char * strcat(char * dest, const char * return tmp; } @@ -33,7 +32,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRNCAT -@@ -138,6 +142,7 @@ +@@ -138,6 +142,7 @@ char * strncat(char *dest, const char *s return tmp; } @@ -41,7 +40,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRCMP -@@ -157,6 +162,7 @@ +@@ -157,6 +162,7 @@ int strcmp(const char * cs,const char * return __res; } @@ -49,7 +48,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRNCMP -@@ -178,6 +184,7 @@ +@@ -178,6 +184,7 @@ int strncmp(const char * cs,const char * return __res; } @@ -57,7 +56,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRCHR -@@ -193,6 +200,7 @@ +@@ -193,6 +200,7 @@ char * strchr(const char * s, int c) return NULL; return (char *) s; } @@ -65,7 +64,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRRCHR -@@ -210,6 +218,7 @@ +@@ -210,6 +218,7 @@ char * strrchr(const char * s, int c) } while (--p >= s); return NULL; } @@ -73,7 +72,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRLEN -@@ -225,6 +234,7 @@ +@@ -225,6 +234,7 @@ size_t strlen(const char * s) /* nothing */; return sc - s; } @@ -81,7 +80,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRNLEN -@@ -241,6 +251,7 @@ +@@ -241,6 +251,7 @@ size_t strnlen(const char * s, size_t co /* nothing */; return sc - s; } @@ -89,7 +88,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRSPN -@@ -268,6 +279,7 @@ +@@ -268,6 +279,7 @@ size_t strspn(const char *s, const char return count; } @@ -97,7 +96,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRPBRK -@@ -288,6 +300,7 @@ +@@ -288,6 +300,7 @@ char * strpbrk(const char * cs,const cha } return NULL; } @@ -105,7 +104,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRTOK -@@ -345,6 +358,7 @@ +@@ -345,6 +358,7 @@ char * strsep(char **s, const char *ct) return sbegin; } @@ -113,7 +112,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_MEMSET -@@ -365,6 +379,7 @@ +@@ -365,6 +379,7 @@ void * memset(void * s,int c,size_t coun return s; } @@ -121,7 +120,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_BCOPY -@@ -409,6 +424,7 @@ +@@ -409,6 +424,7 @@ void * memcpy(void * dest,const void *sr return dest; } @@ -129,7 +128,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_MEMMOVE -@@ -439,6 +455,7 @@ +@@ -439,6 +455,7 @@ void * memmove(void * dest,const void *s return dest; } @@ -137,7 +136,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_MEMCMP -@@ -458,6 +475,7 @@ +@@ -459,6 +476,7 @@ int memcmp(const void * cs,const void * break; return res; } @@ -145,7 +144,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_MEMSCAN -@@ -482,6 +500,7 @@ +@@ -483,6 +501,7 @@ void * memscan(void * addr, int c, size_ } return (void *) p; } @@ -153,7 +152,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_STRSTR -@@ -506,6 +525,7 @@ +@@ -507,6 +526,7 @@ char * strstr(const char * s1,const char } return NULL; } @@ -161,7 +160,7 @@ diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c #endif #ifndef __HAVE_ARCH_MEMCHR -@@ -528,5 +548,5 @@ +@@ -529,5 +549,5 @@ void *memchr(const void *s, int c, size_ } return NULL; }