[kernel] refresh generic-2.4 patches
[openwrt.git] / target / linux / generic-2.4 / patches / 225-string_lib_useful_exports.patch
index b89f765..0d6d1fa 100644 (file)
@@ -1,7 +1,8 @@
-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 @@
+Index: linux-2.4.35.4/lib/string.c
+===================================================================
+--- linux-2.4.35.4.orig/lib/string.c
++++ linux-2.4.35.4/lib/string.c
+@@ -50,6 +50,7 @@ int strnicmp(const char *s1, const char 
        }
        return (int)c1 - (int)c2;
  }
@@ -9,7 +10,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 +18,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 +26,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 +34,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 +42,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 +50,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 +58,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 +66,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 +74,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 +82,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 +90,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 +98,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 +106,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 +114,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 +122,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 +130,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 +138,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 @@
+@@ -458,6 +475,7 @@ int memcmp(const void * cs,const void * 
                        break;
        return res;
  }
@@ -145,7 +146,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 @@
+@@ -482,6 +500,7 @@ void * memscan(void * addr, int c, size_
        }
        return (void *) p;
  }
@@ -153,7 +154,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 @@
+@@ -506,6 +525,7 @@ char * strstr(const char * s1,const char
        }
        return NULL;
  }
@@ -161,7 +162,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 @@
+@@ -528,5 +548,5 @@ void *memchr(const void *s, int c, size_
        }
        return NULL;
  }