]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Clean up PLT use for getrlimit64.
authorUlrich Drepper <drepper@gmail.com>
Thu, 13 Jan 2011 21:21:04 +0000 (16:21 -0500)
committerUlrich Drepper <drepper@gmail.com>
Thu, 13 Jan 2011 21:21:04 +0000 (16:21 -0500)
ChangeLog
include/sys/resource.h
sysdeps/unix/sysv/linux/getrlimit64.c
sysdeps/unix/sysv/linux/i386/getrlimit64.c

index ea9b1cc75e2dc74b2875854ea8a789c01bcd8218..0c22abd775a02a31ee6c555db5e24de57676b832 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,9 @@
 
        * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
        in child fails because the descriptor is already closed.
+       * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
+       * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
+       * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
 
        [BZ #12397]
        * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
index 9fd59dde0cd9f9ec7460287e829073ea8df57f9a..b4ea1ae592c179831a55c46d3b85013fa9e0829a 100644 (file)
@@ -3,6 +3,7 @@
 
 libc_hidden_proto (getpriority)
 libc_hidden_proto (setpriority)
+libc_hidden_proto (getrlimit64)
 
 /* Now define the internal interfaces.  */
 extern int __getrlimit (enum __rlimit_resource __resource,
index 19e991166f07fd9efc66be97f54afdfeb1851507..419e324274c3538fda6875587859829fbef5028d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2010, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -52,3 +52,4 @@ getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits)
   return 0;
 #endif
 }
+libc_hidden_def (getrlimit64)
index 00be3d61447e0b8008efebe61fca52c06d7ee72d..91dadab07340da2b27fab7fe0168cb9aea39c4d0 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000, 2005, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2000, 2005, 2010, 2011 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -23,3 +23,4 @@
 #undef getrlimit64
 #include <shlib-compat.h>
 versioned_symbol (libc, __new_getrlimit64, getrlimit64, GLIBC_2_2);
+strong_alias (__new_getrlimit64, __GI_getrlimit64)