olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-fedora-getrlimit-PLT.patch

51f0aa
Related upstream commit:
ce426f
51f0aa
commit c5c2b7c3fd823fc5c4a52506292a90eba60b0c62
51f0aa
Author: Joseph Myers <joseph@codesourcery.com>
51f0aa
Date:   Sat Dec 6 23:40:48 2014 +0000
ce426f
51f0aa
    Fix pthreads getrlimit, gettimeofday namespace (bug 17682).
ce426f
ce426f
--- glibc-2.17-c758a686/include/sys/resource.h
ce426f
+++ glibc-2.17-c758a686/include/sys/resource.h
ce426f
@@ -14,5 +14,6 @@ extern int __getrusage (enum __rusage_who __who, struct rusage *__usage)
ce426f
 
ce426f
 extern int __setrlimit (enum __rlimit_resource __resource,
ce426f
 			const struct rlimit *__rlimits);
ce426f
+libc_hidden_proto (__getrlimit)
ce426f
 #endif
ce426f
 #endif
ce426f
--- glibc-2.17-c758a686/resource/getrlimit.c
ce426f
+++ glibc-2.17-c758a686/resource/getrlimit.c
ce426f
@@ -27,6 +27,7 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
ce426f
   __set_errno (ENOSYS);
ce426f
   return -1;
ce426f
 }
ce426f
+libc_hidden_def (__getrlimit)
ce426f
 weak_alias (__getrlimit, getrlimit)
ce426f
 
ce426f
 stub_warning (getrlimit)
ce426f
--- glibc-2.17-c758a686/sysdeps/mach/hurd/getrlimit.c
ce426f
+++ glibc-2.17-c758a686/sysdeps/mach/hurd/getrlimit.c
ce426f
@@ -43,4 +43,5 @@ __getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
ce426f
 
ce426f
   return 0;
ce426f
 }
ce426f
+libc_hidden_def (__getrlimit)
ce426f
 weak_alias (__getrlimit, getrlimit)