|
|
147e83 |
Related upstream commit:
|
|
|
147e83 |
|
|
|
147e83 |
commit c5c2b7c3fd823fc5c4a52506292a90eba60b0c62
|
|
|
147e83 |
Author: Joseph Myers <joseph@codesourcery.com>
|
|
|
147e83 |
Date: Sat Dec 6 23:40:48 2014 +0000
|
|
|
147e83 |
|
|
|
147e83 |
Fix pthreads getrlimit, gettimeofday namespace (bug 17682).
|
|
|
147e83 |
|
|
|
147e83 |
The uname call is again present in Fedora because UTS namespaces can
|
|
|
147e83 |
be used nowadays to change the uname result.
|
|
|
147e83 |
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/Version
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/Versions
|
|
|
147e83 |
@@ -30,6 +30,7 @@ libc {
|
|
|
147e83 |
__libc_alloca_cutoff;
|
|
|
147e83 |
# Internal libc interface to libpthread
|
|
|
147e83 |
__libc_dl_error_tsd;
|
|
|
147e83 |
+ __getrlimit;
|
|
|
147e83 |
}
|
|
|
147e83 |
}
|
|
|
147e83 |
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/nptl-init.c
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/nptl-init.c
|
|
|
147e83 |
@@ -414,7 +414,7 @@ __pthread_initialize_minimal_internal (void)
|
|
|
147e83 |
/* Determine the default allowed stack size. This is the size used
|
|
|
147e83 |
in case the user does not specify one. */
|
|
|
147e83 |
struct rlimit limit;
|
|
|
147e83 |
- if (getrlimit (RLIMIT_STACK, &limit) != 0
|
|
|
147e83 |
+ if (__getrlimit (RLIMIT_STACK, &limit) != 0
|
|
|
147e83 |
|| limit.rlim_cur == RLIM_INFINITY)
|
|
|
147e83 |
/* The system limit is not usable. Use an architecture-specific
|
|
|
147e83 |
default. */
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/Versions
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/Versions
|
|
|
147e83 |
@@ -0,0 +1,6 @@
|
|
|
147e83 |
+libc {
|
|
|
147e83 |
+ GLIBC_PRIVATE {
|
|
|
147e83 |
+ # Internal libc interface to libpthread
|
|
|
147e83 |
+ __uname;
|
|
|
147e83 |
+ }
|
|
|
147e83 |
+}
|
|
|
147e83 |
--- glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/smp.h
|
|
|
147e83 |
+++ glibc-2.17-c758a686/nptl/sysdeps/unix/sysv/linux/i386/smp.h
|
|
|
147e83 |
@@ -36,7 +36,7 @@ is_smp_system (void)
|
|
|
147e83 |
char *cp;
|
|
|
147e83 |
|
|
|
147e83 |
/* Try reading the number using `sysctl' first. */
|
|
|
147e83 |
- if (uname (&u.uts) == 0)
|
|
|
147e83 |
+ if (__uname (&u.uts) == 0)
|
|
|
147e83 |
cp = u.uts.version;
|
|
|
147e83 |
else
|
|
|
147e83 |
{
|