1 |
vapier 13/03/02 02:15:22 |
2 |
|
3 |
Added: |
4 |
00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch |
5 |
00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch |
6 |
00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch |
7 |
00_all_0004-netfilter-pull-in-limits.h.patch |
8 |
00_all_0005-convert-PAGE_SIZE-usage.patch |
9 |
00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch |
10 |
00_all_0007-unifdef-drop-unused-errno.h-include.patch |
11 |
Log: |
12 |
initial 3.8 patchset based on last 3.7 patchset |
13 |
|
14 |
Revision Changes Path |
15 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch |
16 |
|
17 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch?rev=1.1&view=markup |
18 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch?rev=1.1&content-type=text/plain |
19 |
|
20 |
Index: 00_all_0001-kbuild-auto-convert-size-types-in-userspace-headers.patch |
21 |
=================================================================== |
22 |
From 001e7c1c8b5332ef33b990de211842a4535170bc Mon Sep 17 00:00:00 2001 |
23 |
From: Mike Frysinger <vapier@g.o> |
24 |
Date: Mon, 29 Dec 2008 06:07:47 -0500 |
25 |
Subject: [PATCH] kbuild: auto-convert size types in userspace headers |
26 |
|
27 |
Rather than constantly fixing up size type breakage in userspace headers, |
28 |
auto convert the types u_intXX_t, uintXX_t, intXX_t, uXX, and sXX to the |
29 |
appropriate __uXX or __sXX type. |
30 |
|
31 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
32 |
--- |
33 |
scripts/headers_install.pl | 3 +++ |
34 |
1 file changed, 3 insertions(+) |
35 |
|
36 |
diff --git a/scripts/headers_install.pl b/scripts/headers_install.pl |
37 |
index 581ca99..1c801a5 100644 |
38 |
--- a/scripts/headers_install.pl |
39 |
+++ b/scripts/headers_install.pl |
40 |
@@ -42,6 +42,9 @@ foreach my $filename (@files) { |
41 |
$line =~ s/(^|\s)(inline)\b/$1__$2__/g; |
42 |
$line =~ s/(^|\s)(asm)\b(\s|[(]|$)/$1__$2__$3/g; |
43 |
$line =~ s/(^|\s|[(])(volatile)\b(\s|[(]|$)/$1__$2__$3/g; |
44 |
+ $line =~ s/\b([us](8|16|32|64))\b/__$1/g; |
45 |
+ $line =~ s/\b(u_?int(8|16|32|64)_t)\b/__u$2/g; |
46 |
+ $line =~ s/\b(int(8|16|32|64)_t)\b/__s$2/g; |
47 |
$line =~ s/#ifndef\s+_UAPI/#ifndef /; |
48 |
$line =~ s/#define\s+_UAPI/#define /; |
49 |
$line =~ s!#endif\s+/[*]\s*_UAPI!#endif /* !; |
50 |
-- |
51 |
1.8.1.2 |
52 |
|
53 |
|
54 |
|
55 |
|
56 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch |
57 |
|
58 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&view=markup |
59 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch?rev=1.1&content-type=text/plain |
60 |
|
61 |
Index: 00_all_0002-linux-stat.h-remove-__GLIBC__-checks.patch |
62 |
=================================================================== |
63 |
From 2bf774549fd6339961dbde7e8ee52deca79ee52b Mon Sep 17 00:00:00 2001 |
64 |
From: Mike Frysinger <vapier@g.o> |
65 |
Date: Mon, 29 Dec 2008 06:52:59 -0500 |
66 |
Subject: [PATCH] linux/stat.h: remove __GLIBC__ checks |
67 |
|
68 |
Only check __KERNEL__ so we don't assume the C library is glibc. |
69 |
|
70 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
71 |
--- |
72 |
include/uapi/linux/stat.h | 2 +- |
73 |
1 file changed, 1 insertion(+), 1 deletion(-) |
74 |
|
75 |
diff --git a/include/uapi/linux/stat.h b/include/uapi/linux/stat.h |
76 |
index 7fec7e3..256ad24 100644 |
77 |
--- a/include/uapi/linux/stat.h |
78 |
+++ b/include/uapi/linux/stat.h |
79 |
@@ -2,7 +2,7 @@ |
80 |
#define _UAPI_LINUX_STAT_H |
81 |
|
82 |
|
83 |
-#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2) |
84 |
+#if defined(__KERNEL__) |
85 |
|
86 |
#define S_IFMT 00170000 |
87 |
#define S_IFSOCK 0140000 |
88 |
-- |
89 |
1.8.1.2 |
90 |
|
91 |
|
92 |
|
93 |
|
94 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch |
95 |
|
96 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch?rev=1.1&view=markup |
97 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch?rev=1.1&content-type=text/plain |
98 |
|
99 |
Index: 00_all_0003-linux-pull-in-other-needed-headers-for-userspace.patch |
100 |
=================================================================== |
101 |
From 54a163ca58793169e47fda55d232e0a00c65c966 Mon Sep 17 00:00:00 2001 |
102 |
From: Mike Frysinger <vapier@g.o> |
103 |
Date: Mon, 29 Dec 2008 07:41:01 -0500 |
104 |
Subject: [PATCH] linux/*: pull in other needed headers for userspace |
105 |
|
106 |
mondo patch |
107 |
|
108 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
109 |
--- |
110 |
include/uapi/linux/cm4000_cs.h | 1 + |
111 |
include/uapi/linux/dn.h | 1 + |
112 |
include/uapi/linux/ppp-ioctl.h | 1 + |
113 |
3 files changed, 3 insertions(+) |
114 |
|
115 |
diff --git a/include/uapi/linux/cm4000_cs.h b/include/uapi/linux/cm4000_cs.h |
116 |
index bc51f77..1217f75 100644 |
117 |
--- a/include/uapi/linux/cm4000_cs.h |
118 |
+++ b/include/uapi/linux/cm4000_cs.h |
119 |
@@ -2,6 +2,7 @@ |
120 |
#define _UAPI_CM4000_H_ |
121 |
|
122 |
#include <linux/types.h> |
123 |
+#include <linux/ioctl.h> |
124 |
|
125 |
#define MAX_ATR 33 |
126 |
|
127 |
diff --git a/include/uapi/linux/dn.h b/include/uapi/linux/dn.h |
128 |
index 9c50445..dc9f005 100644 |
129 |
--- a/include/uapi/linux/dn.h |
130 |
+++ b/include/uapi/linux/dn.h |
131 |
@@ -1,6 +1,7 @@ |
132 |
#ifndef _LINUX_DN_H |
133 |
#define _LINUX_DN_H |
134 |
|
135 |
+#include <linux/ioctl.h> |
136 |
#include <linux/types.h> |
137 |
|
138 |
/* |
139 |
diff --git a/include/uapi/linux/ppp-ioctl.h b/include/uapi/linux/ppp-ioctl.h |
140 |
index 2d9a885..63a23a3 100644 |
141 |
--- a/include/uapi/linux/ppp-ioctl.h |
142 |
+++ b/include/uapi/linux/ppp-ioctl.h |
143 |
@@ -12,6 +12,7 @@ |
144 |
|
145 |
#include <linux/types.h> |
146 |
#include <linux/compiler.h> |
147 |
+#include <linux/ppp_defs.h> |
148 |
|
149 |
/* |
150 |
* Bit definitions for flags argument to PPPIOCGFLAGS/PPPIOCSFLAGS. |
151 |
-- |
152 |
1.8.1.2 |
153 |
|
154 |
|
155 |
|
156 |
|
157 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0004-netfilter-pull-in-limits.h.patch |
158 |
|
159 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0004-netfilter-pull-in-limits.h.patch?rev=1.1&view=markup |
160 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0004-netfilter-pull-in-limits.h.patch?rev=1.1&content-type=text/plain |
161 |
|
162 |
Index: 00_all_0004-netfilter-pull-in-limits.h.patch |
163 |
=================================================================== |
164 |
From ccdebef86f059de3af31374f3a9e87fd6f6b77bb Mon Sep 17 00:00:00 2001 |
165 |
From: Mike Frysinger <vapier@g.o> |
166 |
Date: Sat, 9 May 2009 17:30:35 -0400 |
167 |
Subject: [PATCH] netfilter: pull in limits.h |
168 |
|
169 |
A few netfilter sub-headers use INT_MAX which is in limits.h. |
170 |
|
171 |
URL: http://bugs.gentoo.org/246160 |
172 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
173 |
--- |
174 |
include/uapi/linux/netfilter.h | 1 + |
175 |
1 file changed, 1 insertion(+) |
176 |
|
177 |
diff --git a/include/uapi/linux/netfilter.h b/include/uapi/linux/netfilter.h |
178 |
index f7dc0eb..fcb9748 100644 |
179 |
--- a/include/uapi/linux/netfilter.h |
180 |
+++ b/include/uapi/linux/netfilter.h |
181 |
@@ -4,6 +4,7 @@ |
182 |
#include <linux/types.h> |
183 |
#include <linux/compiler.h> |
184 |
#include <linux/sysctl.h> |
185 |
+#include <limits.h> |
186 |
|
187 |
|
188 |
/* Responses from hook functions. */ |
189 |
-- |
190 |
1.8.1.2 |
191 |
|
192 |
|
193 |
|
194 |
|
195 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch |
196 |
|
197 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch?rev=1.1&view=markup |
198 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0005-convert-PAGE_SIZE-usage.patch?rev=1.1&content-type=text/plain |
199 |
|
200 |
Index: 00_all_0005-convert-PAGE_SIZE-usage.patch |
201 |
=================================================================== |
202 |
From f4f1cf93422b8991912d9fe44b663e666153ce03 Mon Sep 17 00:00:00 2001 |
203 |
From: Mike Frysinger <vapier@g.o> |
204 |
Date: Sat, 13 Feb 2010 03:09:23 -0500 |
205 |
Subject: [PATCH] convert PAGE_SIZE usage |
206 |
|
207 |
The size of a page may change at runtime or based on kernel settings, so |
208 |
a static value at compile time doesn't work. More importantly, no one |
209 |
exports PAGE_SIZE to user space anymore. |
210 |
|
211 |
URL: http://bugs.gentoo.org/301431 |
212 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
213 |
--- |
214 |
include/uapi/linux/binfmts.h | 3 ++- |
215 |
include/uapi/linux/resource.h | 3 ++- |
216 |
2 files changed, 4 insertions(+), 2 deletions(-) |
217 |
|
218 |
diff --git a/include/uapi/linux/binfmts.h b/include/uapi/linux/binfmts.h |
219 |
index 4eb5972..516bfcf 100644 |
220 |
--- a/include/uapi/linux/binfmts.h |
221 |
+++ b/include/uapi/linux/binfmts.h |
222 |
@@ -1,6 +1,7 @@ |
223 |
#ifndef _UAPI_LINUX_BINFMTS_H |
224 |
#define _UAPI_LINUX_BINFMTS_H |
225 |
|
226 |
+#include <unistd.h> |
227 |
#include <linux/capability.h> |
228 |
|
229 |
struct pt_regs; |
230 |
@@ -11,7 +12,7 @@ struct pt_regs; |
231 |
* prevent the kernel from being unduly impacted by misaddressed pointers. |
232 |
* MAX_ARG_STRINGS is chosen to fit in a signed 32-bit integer. |
233 |
*/ |
234 |
-#define MAX_ARG_STRLEN (PAGE_SIZE * 32) |
235 |
+#define MAX_ARG_STRLEN (sysconf(_SC_PAGESIZE) * 32) |
236 |
#define MAX_ARG_STRINGS 0x7FFFFFFF |
237 |
|
238 |
/* sizeof(linux_binprm->buf) */ |
239 |
diff --git a/include/uapi/linux/resource.h b/include/uapi/linux/resource.h |
240 |
index e0ed284..db8acf3 100644 |
241 |
--- a/include/uapi/linux/resource.h |
242 |
+++ b/include/uapi/linux/resource.h |
243 |
@@ -68,7 +68,8 @@ struct rlimit64 { |
244 |
* GPG2 wants 64kB of mlocked memory, to make sure pass phrases |
245 |
* and other sensitive information are never written to disk. |
246 |
*/ |
247 |
-#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) |
248 |
+/* No one currently defines PAGE_SIZE bigger than 64kB */ |
249 |
+#define MLOCK_LIMIT (64 * 1024) |
250 |
|
251 |
/* |
252 |
* Due to binary compatibility, the actual resource numbers |
253 |
-- |
254 |
1.8.1.2 |
255 |
|
256 |
|
257 |
|
258 |
|
259 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch |
260 |
|
261 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&view=markup |
262 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch?rev=1.1&content-type=text/plain |
263 |
|
264 |
Index: 00_all_0006-asm-generic-fcntl.h-namespace-kernel-file-structs.patch |
265 |
=================================================================== |
266 |
From 925b1d9ec924021f34d23c633eb66a7c0fa8ce05 Mon Sep 17 00:00:00 2001 |
267 |
From: Mike Frysinger <vapier@g.o> |
268 |
Date: Mon, 29 Dec 2008 07:39:14 -0500 |
269 |
Subject: [PATCH] asm-generic/fcntl.h: namespace kernel file structs |
270 |
|
271 |
No one should be using these structs, but just in case they are, |
272 |
keep them available in the __kernel_ namespace. |
273 |
|
274 |
Otherwise, trying to include something like: |
275 |
#include <fcntl.h> |
276 |
#include <linux/inotify.h> |
277 |
leads to horrible failure. |
278 |
|
279 |
URL: http://bugs.gentoo.org/244470 |
280 |
URL: http://bugs.gentoo.org/388633 |
281 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
282 |
--- |
283 |
include/uapi/asm-generic/fcntl.h | 6 +++--- |
284 |
1 file changed, 3 insertions(+), 3 deletions(-) |
285 |
|
286 |
diff --git a/include/uapi/asm-generic/fcntl.h b/include/uapi/asm-generic/fcntl.h |
287 |
index a48937d..43a6e03 100644 |
288 |
--- a/include/uapi/asm-generic/fcntl.h |
289 |
+++ b/include/uapi/asm-generic/fcntl.h |
290 |
@@ -128,7 +128,7 @@ |
291 |
#define F_OWNER_PID 1 |
292 |
#define F_OWNER_PGRP 2 |
293 |
|
294 |
-struct f_owner_ex { |
295 |
+struct __kernel_f_owner_ex { |
296 |
int type; |
297 |
__kernel_pid_t pid; |
298 |
}; |
299 |
@@ -168,7 +168,7 @@ struct f_owner_ex { |
300 |
#define __ARCH_FLOCK_PAD |
301 |
#endif |
302 |
|
303 |
-struct flock { |
304 |
+struct __kernel_flock { |
305 |
short l_type; |
306 |
short l_whence; |
307 |
__kernel_off_t l_start; |
308 |
@@ -185,7 +185,7 @@ struct flock { |
309 |
#define __ARCH_FLOCK64_PAD |
310 |
#endif |
311 |
|
312 |
-struct flock64 { |
313 |
+struct __kernel_flock64 { |
314 |
short l_type; |
315 |
short l_whence; |
316 |
__kernel_loff_t l_start; |
317 |
-- |
318 |
1.8.1.2 |
319 |
|
320 |
|
321 |
|
322 |
|
323 |
1.1 src/patchsets/gentoo-headers/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch |
324 |
|
325 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch?rev=1.1&view=markup |
326 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/gentoo-headers/3.8/00_all_0007-unifdef-drop-unused-errno.h-include.patch?rev=1.1&content-type=text/plain |
327 |
|
328 |
Index: 00_all_0007-unifdef-drop-unused-errno.h-include.patch |
329 |
=================================================================== |
330 |
From c5450410787576651c53d7db441b1229023c58d1 Mon Sep 17 00:00:00 2001 |
331 |
From: Mike Frysinger <vapier@g.o> |
332 |
Date: Tue, 6 Dec 2011 17:22:42 -0500 |
333 |
Subject: [PATCH] unifdef: drop unused errno.h include |
334 |
|
335 |
This is the only header on my system that ends up requiring kernel |
336 |
headers, so if the kernel headers aren't available, we end up being |
337 |
unable to install kernel headers :). |
338 |
|
339 |
Since this file doesn't actually use anything from errno.h, drop |
340 |
the include so it at least makes us a bit more robust on glibc. |
341 |
|
342 |
Signed-off-by: Mike Frysinger <vapier@g.o> |
343 |
--- |
344 |
scripts/unifdef.c | 1 - |
345 |
1 file changed, 1 deletion(-) |
346 |
|
347 |
diff --git a/scripts/unifdef.c b/scripts/unifdef.c |
348 |
index 7493c0e..c5dfae5 100644 |
349 |
--- a/scripts/unifdef.c |
350 |
+++ b/scripts/unifdef.c |
351 |
@@ -48,7 +48,6 @@ |
352 |
|
353 |
#include <ctype.h> |
354 |
#include <err.h> |
355 |
-#include <errno.h> |
356 |
#include <stdarg.h> |
357 |
#include <stdbool.h> |
358 |
#include <stdio.h> |
359 |
-- |
360 |
1.8.1.2 |