diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | include/sys/resource.h | 1 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/getrlimit64.c | 3 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/i386/getrlimit64.c | 3 |
4 files changed, 8 insertions, 2 deletions
@@ -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 diff --git a/include/sys/resource.h b/include/sys/resource.h index 9fd59dd..b4ea1ae 100644 --- a/include/sys/resource.h +++ b/include/sys/resource.h @@ -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, diff --git a/sysdeps/unix/sysv/linux/getrlimit64.c b/sysdeps/unix/sysv/linux/getrlimit64.c index 19e9911..419e324 100644 --- a/sysdeps/unix/sysv/linux/getrlimit64.c +++ b/sysdeps/unix/sysv/linux/getrlimit64.c @@ -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) diff --git a/sysdeps/unix/sysv/linux/i386/getrlimit64.c b/sysdeps/unix/sysv/linux/i386/getrlimit64.c index 00be3d6..91dadab 100644 --- a/sysdeps/unix/sysv/linux/i386/getrlimit64.c +++ b/sysdeps/unix/sysv/linux/i386/getrlimit64.c @@ -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) |