finally move buildroot-ng to trunk
[openwrt/staging/jogo.git] / target / linux / generic-2.4 / patches / 225-string_lib_useful_exports.patch
1 diff -ruN linux-2.4.32-old/lib/string.c linux-2.4.32-new/lib/string.c
2 --- linux-2.4.32-old/lib/string.c 2004-11-17 12:54:22.000000000 +0100
3 +++ linux-2.4.32-new/lib/string.c 2006-01-17 14:41:17.000000000 +0100
4 @@ -50,6 +50,7 @@
5 }
6 return (int)c1 - (int)c2;
7 }
8 +EXPORT_SYMBOL(strnicmp);
9 #endif
10
11 char * ___strtok;
12 @@ -68,6 +69,7 @@
13 /* nothing */;
14 return tmp;
15 }
16 +EXPORT_SYMBOL(strcpy);
17 #endif
18
19 #ifndef __HAVE_ARCH_STRNCPY
20 @@ -90,6 +92,7 @@
21
22 return tmp;
23 }
24 +EXPORT_SYMBOL(strncpy);
25 #endif
26
27 #ifndef __HAVE_ARCH_STRCAT
28 @@ -109,6 +112,7 @@
29
30 return tmp;
31 }
32 +EXPORT_SYMBOL(strcat);
33 #endif
34
35 #ifndef __HAVE_ARCH_STRNCAT
36 @@ -138,6 +142,7 @@
37
38 return tmp;
39 }
40 +EXPORT_SYMBOL(strncat);
41 #endif
42
43 #ifndef __HAVE_ARCH_STRCMP
44 @@ -157,6 +162,7 @@
45
46 return __res;
47 }
48 +EXPORT_SYMBOL(strcmp);
49 #endif
50
51 #ifndef __HAVE_ARCH_STRNCMP
52 @@ -178,6 +184,7 @@
53
54 return __res;
55 }
56 +EXPORT_SYMBOL(strncmp);
57 #endif
58
59 #ifndef __HAVE_ARCH_STRCHR
60 @@ -193,6 +200,7 @@
61 return NULL;
62 return (char *) s;
63 }
64 +EXPORT_SYMBOL(strchr);
65 #endif
66
67 #ifndef __HAVE_ARCH_STRRCHR
68 @@ -210,6 +218,7 @@
69 } while (--p >= s);
70 return NULL;
71 }
72 +EXPORT_SYMBOL(strrchr);
73 #endif
74
75 #ifndef __HAVE_ARCH_STRLEN
76 @@ -225,6 +234,7 @@
77 /* nothing */;
78 return sc - s;
79 }
80 +EXPORT_SYMBOL(strlen);
81 #endif
82
83 #ifndef __HAVE_ARCH_STRNLEN
84 @@ -241,6 +251,7 @@
85 /* nothing */;
86 return sc - s;
87 }
88 +EXPORT_SYMBOL(strnlen);
89 #endif
90
91 #ifndef __HAVE_ARCH_STRSPN
92 @@ -268,6 +279,7 @@
93
94 return count;
95 }
96 +EXPORT_SYMBOL(strspn);
97 #endif
98
99 #ifndef __HAVE_ARCH_STRPBRK
100 @@ -288,6 +300,7 @@
101 }
102 return NULL;
103 }
104 +EXPORT_SYMBOL(strpbrk);
105 #endif
106
107 #ifndef __HAVE_ARCH_STRTOK
108 @@ -345,6 +358,7 @@
109
110 return sbegin;
111 }
112 +EXPORT_SYMBOL(strsep);
113 #endif
114
115 #ifndef __HAVE_ARCH_MEMSET
116 @@ -365,6 +379,7 @@
117
118 return s;
119 }
120 +EXPORT_SYMBOL(memset);
121 #endif
122
123 #ifndef __HAVE_ARCH_BCOPY
124 @@ -409,6 +424,7 @@
125
126 return dest;
127 }
128 +EXPORT_SYMBOL(memcpy);
129 #endif
130
131 #ifndef __HAVE_ARCH_MEMMOVE
132 @@ -439,6 +455,7 @@
133
134 return dest;
135 }
136 +EXPORT_SYMBOL(memmove);
137 #endif
138
139 #ifndef __HAVE_ARCH_MEMCMP
140 @@ -458,6 +475,7 @@
141 break;
142 return res;
143 }
144 +EXPORT_SYMBOL(memcmp);
145 #endif
146
147 #ifndef __HAVE_ARCH_MEMSCAN
148 @@ -482,6 +500,7 @@
149 }
150 return (void *) p;
151 }
152 +EXPORT_SYMBOL(memscan);
153 #endif
154
155 #ifndef __HAVE_ARCH_STRSTR
156 @@ -506,6 +525,7 @@
157 }
158 return NULL;
159 }
160 +EXPORT_SYMBOL(strstr);
161 #endif
162
163 #ifndef __HAVE_ARCH_MEMCHR
164 @@ -528,5 +548,5 @@
165 }
166 return NULL;
167 }
168 -
169 +EXPORT_SYMBOL(memchr);
170 #endif