]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/patches/glibc/glibc-rh916986.patch
glibc: Backport hotfixes from RHEL6.
[people/teissler/ipfire-2.x.git] / src / patches / glibc / glibc-rh916986.patch
1 commit cf7c9078a5acdbb435498ace92cd81009637a971
2 Author: Ulrich Drepper <drepper@redhat.com>
3 Date: Fri Nov 19 09:35:39 2010 -0500
4
5 Define MAP_HUGETLB.
6
7 * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
8 * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
9
10 commit dd62fda6cc83b3afa150a4be7d273ab118bf9825
11 Author: Anton Blanchard <anton@samba.org>
12 Date: Tue Mar 27 18:37:16 2012 -0700
13
14 Define MAP_STACK and MAP_HUGETLB on powerpc, s390, sh and sparc.
15
16 * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
17 MAP_HUGETLB.
18 * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
19 * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
20 * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21
22 commit 7e4fc5890e07549e5ad98b4244e3e0ed5c709e6a
23 Author: Mike Frysinger <vapier@gentoo.org>
24 Date: Mon Apr 16 22:44:23 2012 -0400
25
26 ia64: add MAP_{STACK,HUGETLB} to bits/mman.h
27
28 Just adding new bit flags that newer kernels define.
29
30 Signed-off-by: Mike Frysinger <vapier@gentoo.org>
31
32 * sysdeps/unix/sysv/linux/ia64/bits/mman.h (MAP_STACK): Define.
33 (MAP_HUGETLB): Likewise.
34
35 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/powerpc/bits/mman.h
36 ===================================================================
37 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/powerpc/bits/mman.h 2013-07-23 04:01:42.440052942 -0300
38 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/powerpc/bits/mman.h 2013-07-23 22:26:42.317789260 -0300
39 @@ -65,6 +65,8 @@
40 # define MAP_NORESERVE 0x00040 /* Don't check for reservations. */
41 # define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
42 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
43 +# define MAP_STACK 0x20000 /* Allocation is for a stack. */
44 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
45 #endif
46
47 /* Flags to `msync'. */
48 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/s390/bits/mman.h
49 ===================================================================
50 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/s390/bits/mman.h 2013-07-23 04:01:42.447052393 -0300
51 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/s390/bits/mman.h 2013-07-23 22:26:42.335787833 -0300
52 @@ -64,6 +64,8 @@
53 # define MAP_NORESERVE 0x04000 /* Don't check for reservations. */
54 # define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
55 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
56 +# define MAP_STACK 0x20000 /* Allocation is for a stack. */
57 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
58 #endif
59
60 /* Flags to `msync'. */
61 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/sh/bits/mman.h
62 ===================================================================
63 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/sh/bits/mman.h 2010-05-04 08:27:23.000000000 -0300
64 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/sh/bits/mman.h 2013-07-23 22:26:42.336787753 -0300
65 @@ -64,6 +64,8 @@
66 # define MAP_NORESERVE 0x4000 /* Don't check for reservations. */
67 # define MAP_POPULATE 0x8000 /* Populate (prefault) pagetables. */
68 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
69 +# define MAP_STACK 0x20000 /* Allocation is for a stack. */
70 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
71 #endif
72
73 /* Flags to `msync'. */
74 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/sparc/bits/mman.h
75 ===================================================================
76 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/sparc/bits/mman.h 2010-05-04 08:27:23.000000000 -0300
77 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/sparc/bits/mman.h 2013-07-23 22:26:42.337787674 -0300
78 @@ -66,6 +66,8 @@
79 # define _MAP_NEW 0x80000000 /* Binary compatibility with SunOS. */
80 # define MAP_POPULATE 0x8000 /* Populate (prefault) pagetables. */
81 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
82 +# define MAP_STACK 0x20000 /* Allocation is for a stack. */
83 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
84 #endif
85
86 /* Flags to `msync'. */
87 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/i386/bits/mman.h
88 ===================================================================
89 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/i386/bits/mman.h 2013-07-23 04:01:42.406055607 -0300
90 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/i386/bits/mman.h 2013-07-23 22:32:37.407630135 -0300
91 @@ -64,6 +64,7 @@
92 # define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
93 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
94 # define MAP_STACK 0x20000 /* Allocation is for a stack. */
95 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
96 #endif
97
98 /* Flags to `msync'. */
99 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/x86_64/bits/mman.h
100 ===================================================================
101 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/x86_64/bits/mman.h 2013-07-23 04:01:42.493048788 -0300
102 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/x86_64/bits/mman.h 2013-07-23 22:32:37.433628073 -0300
103 @@ -65,6 +65,7 @@
104 # define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
105 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
106 # define MAP_STACK 0x20000 /* Allocation is for a stack. */
107 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
108 #endif
109
110 /* Flags to `msync'. */
111 Index: glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/ia64/bits/mman.h
112 ===================================================================
113 --- glibc-2.12-2-gc4ccff1.orig/sysdeps/unix/sysv/linux/ia64/bits/mman.h 2010-05-04 08:27:23.000000000 -0300
114 +++ glibc-2.12-2-gc4ccff1/sysdeps/unix/sysv/linux/ia64/bits/mman.h 2013-07-23 22:37:28.643530951 -0300
115 @@ -65,6 +65,8 @@
116 # define MAP_NORESERVE 0x04000 /* Don't check for reservations. */
117 # define MAP_POPULATE 0x08000 /* Populate (prefault) pagetables. */
118 # define MAP_NONBLOCK 0x10000 /* Do not block on IO. */
119 +# define MAP_STACK 0x20000 /* Allocation is for a stack. */
120 +# define MAP_HUGETLB 0x40000 /* Create huge page mapping. */
121 #endif
122
123 /* Flags to `msync'. */