[kernel] refresh generic-2.4 patches
[openwrt/svn-archive/archive.git] / target / linux / generic-2.4 / patches / 225-string_lib_useful_exports.patch
index 0a4bd10065a89c04e41954c9d13973b9d0e7536a..0d6d1fadb116a45a3f12c5992ace9f615b11dbf1 100644 (file)
@@ -1,8 +1,8 @@
 Index: linux-2.4.35.4/lib/string.c
 ===================================================================
---- linux-2.4.35.4.orig/lib/string.c   2007-12-15 05:19:38.866635920 +0100
-+++ linux-2.4.35.4/lib/string.c        2007-12-15 05:20:03.080015763 +0100
-@@ -50,6 +50,7 @@
+--- 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;
  }
@@ -10,7 +10,7 @@ Index: linux-2.4.35.4/lib/string.c
  #endif
  
  char * ___strtok;
-@@ -68,6 +69,7 @@
+@@ -68,6 +69,7 @@ char * strcpy(char * dest,const char *sr
                /* nothing */;
        return tmp;
  }
@@ -18,7 +18,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -26,7 +26,7 @@ Index: linux-2.4.35.4/lib/string.c
  #endif
  
  #ifndef __HAVE_ARCH_STRCAT
-@@ -109,6 +112,7 @@
+@@ -109,6 +112,7 @@ char * strcat(char * dest, const char * 
  
        return tmp;
  }
@@ -34,7 +34,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -42,7 +42,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -50,7 +50,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -58,7 +58,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -66,7 +66,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -74,7 +74,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -82,7 +82,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -90,7 +90,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -98,7 +98,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -106,7 +106,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -114,7 +114,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -122,7 +122,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -130,7 +130,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -138,7 +138,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -146,7 +146,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -154,7 +154,7 @@ Index: linux-2.4.35.4/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;
  }
@@ -162,7 +162,7 @@ Index: linux-2.4.35.4/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;
  }