git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git]
/
lib
/
string.c
diff --git
a/lib/string.c
b/lib/string.c
index
603c717
..
c1b1b58
100644
(file)
--- a/
lib/string.c
+++ b/
lib/string.c
@@
-75,6
+75,7
@@
char * strcpy(char * dest,const char *src)
/* nothing */;
return tmp;
}
/* nothing */;
return tmp;
}
+EXPORT_SYMBOL(strcpy);
#endif
#ifndef __HAVE_ARCH_STRNCPY
#endif
#ifndef __HAVE_ARCH_STRNCPY
@@
-98,6
+99,7
@@
char * strncpy(char * dest,const char *src,size_t count)
}
return dest;
}
}
return dest;
}
+EXPORT_SYMBOL(strncpy);
#endif
#ifndef __HAVE_ARCH_STRLCPY
#endif
#ifndef __HAVE_ARCH_STRLCPY
@@
-143,6
+145,7
@@
char * strcat(char * dest, const char * src)
return tmp;
}
return tmp;
}
+EXPORT_SYMBOL(strcat);
#endif
#ifndef __HAVE_ARCH_STRNCAT
#endif
#ifndef __HAVE_ARCH_STRNCAT
@@
-162,7
+165,7
@@
char * strncat(char *dest, const char *src, size_t count)
if (count) {
while (*dest)
dest++;
if (count) {
while (*dest)
dest++;
- while ((*dest++ = *src++)) {
+ while ((*dest++ = *src++)
!= 0
) {
if (--count == 0) {
*dest = '\0';
break;
if (--count == 0) {
*dest = '\0';
break;
@@
-172,6
+175,7
@@
char * strncat(char *dest, const char *src, size_t count)
return tmp;
}
return tmp;
}
+EXPORT_SYMBOL(strncat);
#endif
#ifndef __HAVE_ARCH_STRLCAT
#endif
#ifndef __HAVE_ARCH_STRLCAT
@@
-218,6
+222,7
@@
int strcmp(const char * cs,const char * ct)
return __res;
}
return __res;
}
+EXPORT_SYMBOL(strcmp);
#endif
#ifndef __HAVE_ARCH_STRNCMP
#endif
#ifndef __HAVE_ARCH_STRNCMP
@@
-239,6
+244,7
@@
int strncmp(const char * cs,const char * ct,size_t count)
return __res;
}
return __res;
}
+EXPORT_SYMBOL(strncmp);
#endif
#ifndef __HAVE_ARCH_STRCHR
#endif
#ifndef __HAVE_ARCH_STRCHR
@@
-254,6
+260,7
@@
char * strchr(const char * s, int c)
return NULL;
return (char *) s;
}
return NULL;
return (char *) s;
}
+EXPORT_SYMBOL(strchr);
#endif
#ifndef __HAVE_ARCH_STRRCHR
#endif
#ifndef __HAVE_ARCH_STRRCHR
@@
-271,6
+278,7
@@
char * strrchr(const char * s, int c)
} while (--p >= s);
return NULL;
}
} while (--p >= s);
return NULL;
}
+EXPORT_SYMBOL(strrchr);
#endif
#ifndef __HAVE_ARCH_STRNCHR
#endif
#ifndef __HAVE_ARCH_STRNCHR
@@
-287,6
+295,7
@@
char *strnchr(const char *s, size_t count, int c)
return (char *) s;
return NULL;
}
return (char *) s;
return NULL;
}
+EXPORT_SYMBOL(strnchr);
#endif
#ifndef __HAVE_ARCH_STRLEN
#endif
#ifndef __HAVE_ARCH_STRLEN
@@
-302,6
+311,7
@@
size_t strlen(const char * s)
/* nothing */;
return sc - s;
}
/* nothing */;
return sc - s;
}
+EXPORT_SYMBOL(strlen);
#endif
#ifndef __HAVE_ARCH_STRNLEN
#endif
#ifndef __HAVE_ARCH_STRNLEN
@@
-318,6
+328,7
@@
size_t strnlen(const char * s, size_t count)
/* nothing */;
return sc - s;
}
/* nothing */;
return sc - s;
}
+EXPORT_SYMBOL(strnlen);
#endif
#ifndef __HAVE_ARCH_STRSPN
#endif
#ifndef __HAVE_ARCH_STRSPN
@@
-371,6
+382,7
@@
size_t strcspn(const char *s, const char *reject)
return count;
}
return count;
}
+EXPORT_SYMBOL(strcspn);
#ifndef __HAVE_ARCH_STRPBRK
/**
#ifndef __HAVE_ARCH_STRPBRK
/**
@@
-390,6
+402,7
@@
char * strpbrk(const char * cs,const char * ct)
}
return NULL;
}
}
return NULL;
}
+EXPORT_SYMBOL(strpbrk);
#endif
#ifndef __HAVE_ARCH_STRSEP
#endif
#ifndef __HAVE_ARCH_STRSEP
@@
-440,6
+453,7
@@
void * memset(void * s,int c,size_t count)
return s;
}
return s;
}
+EXPORT_SYMBOL(memset);
#endif
#ifndef __HAVE_ARCH_BCOPY
#endif
#ifndef __HAVE_ARCH_BCOPY
@@
-463,6
+477,7
@@
void bcopy(const void * srcp, void * destp, size_t count)
while (count--)
*dest++ = *src++;
}
while (count--)
*dest++ = *src++;
}
+EXPORT_SYMBOL(bcopy);
#endif
#ifndef __HAVE_ARCH_MEMCPY
#endif
#ifndef __HAVE_ARCH_MEMCPY
@@
-484,6
+499,7
@@
void * memcpy(void * dest,const void *src,size_t count)
return dest;
}
return dest;
}
+EXPORT_SYMBOL(memcpy);
#endif
#ifndef __HAVE_ARCH_MEMMOVE
#endif
#ifndef __HAVE_ARCH_MEMMOVE
@@
-514,6
+530,7
@@
void * memmove(void * dest,const void *src,size_t count)
return dest;
}
return dest;
}
+EXPORT_SYMBOL(memmove);
#endif
#ifndef __HAVE_ARCH_MEMCMP
#endif
#ifndef __HAVE_ARCH_MEMCMP
@@
-533,6
+550,7
@@
int memcmp(const void * cs,const void * ct,size_t count)
break;
return res;
}
break;
return res;
}
+EXPORT_SYMBOL(memcmp);
#endif
#ifndef __HAVE_ARCH_MEMSCAN
#endif
#ifndef __HAVE_ARCH_MEMSCAN
@@
-557,6
+575,7
@@
void * memscan(void * addr, int c, size_t size)
}
return (void *) p;
}
}
return (void *) p;
}
+EXPORT_SYMBOL(memscan);
#endif
#ifndef __HAVE_ARCH_STRSTR
#endif
#ifndef __HAVE_ARCH_STRSTR
@@
-581,6
+600,7
@@
char * strstr(const char * s1,const char * s2)
}
return NULL;
}
}
return NULL;
}
+EXPORT_SYMBOL(strstr);
#endif
#ifndef __HAVE_ARCH_MEMCHR
#endif
#ifndef __HAVE_ARCH_MEMCHR
@@
-603,5
+623,5
@@
void *memchr(const void *s, int c, size_t n)
}
return NULL;
}
}
return NULL;
}
-
+EXPORT_SYMBOL(memchr);
#endif
#endif