This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch release/2.18/master updated. glibc-2.18-19-gd56700d
- From: aurel32 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 15 May 2014 22:19:35 -0000
- Subject: GNU C Library master sources branch release/2.18/master updated. glibc-2.18-19-gd56700d
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, release/2.18/master has been updated
via d56700df46977b14e9fe54201132fed04475cd03 (commit)
from 3ce4555d432282fcfe963cc8809163e85ee0f71c (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d56700df46977b14e9fe54201132fed04475cd03
commit d56700df46977b14e9fe54201132fed04475cd03
Author: Aurelien Jarno <aurelien@aurel32.net>
Date: Fri May 16 00:04:41 2014 +0200
SPARC: add prlimit and prlimit64 in <bits/resource.h> (BZ #16943)
prlimit and prlimit64 have been added in the main <bits/resource.h>, but
not in the SPARC specific version. Fix that.
Note: this is Debian bug#703559, reported by Emilio Pozuelo Monfort
<pochu@debian.org>
(cherry picked from commit d16e6ec7ca2c861ba681e3a2fbd431725774292e)
diff --git a/ChangeLog b/ChangeLog
index 961f0dd..f008fb4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2014-05-16 Aurelien Jarno <aurelien@aurel32.net>
+
+ [BZ #16943]
+ * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Declare prlimit
+ and prlimit64.
+
2014-05-06 Aurelien Jarno <aurelien@aurel32.net>
[BZ# 16916]
diff --git a/NEWS b/NEWS
index 93175e1..4825617 100644
--- a/NEWS
+++ b/NEWS
@@ -9,7 +9,8 @@ Version 2.18.1
* The following bugs are resolved with this release:
- 15073, 15128, 15909, 15996, 16150, 16169, 16387, 16510, 16885, 16916.
+ 15073, 15128, 15909, 15996, 16150, 16169, 16387, 16510, 16885, 16916,
+ 16943.
Version 2.18
diff --git a/sysdeps/unix/sysv/linux/sparc/bits/resource.h b/sysdeps/unix/sysv/linux/sparc/bits/resource.h
index 14c2b70..cee1c0f 100644
--- a/sysdeps/unix/sysv/linux/sparc/bits/resource.h
+++ b/sysdeps/unix/sysv/linux/sparc/bits/resource.h
@@ -252,3 +252,30 @@ enum __priority_which
PRIO_USER = 2 /* WHO is a user ID. */
#define PRIO_USER PRIO_USER
};
+
+__BEGIN_DECLS
+
+#ifdef __USE_GNU
+/* Modify and return resource limits of a process atomically. */
+# ifndef __USE_FILE_OFFSET64
+extern int prlimit (__pid_t __pid, enum __rlimit_resource __resource,
+ const struct rlimit *__new_limit,
+ struct rlimit *__old_limit) __THROW;
+# else
+# ifdef __REDIRECT_NTH
+extern int __REDIRECT_NTH (prlimit, (__pid_t __pid,
+ enum __rlimit_resource __resource,
+ const struct rlimit *__new_limit,
+ struct rlimit *__old_limit), prlimit64);
+# else
+# define prlimit prlimit64
+# endif
+# endif
+# ifdef __USE_LARGEFILE64
+extern int prlimit64 (__pid_t __pid, enum __rlimit_resource __resource,
+ const struct rlimit64 *__new_limit,
+ struct rlimit64 *__old_limit) __THROW;
+# endif
+#endif
+
+__END_DECLS
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 +++++
NEWS | 3 +-
sysdeps/unix/sysv/linux/sparc/bits/resource.h | 27 +++++++++++++++++++++++++
3 files changed, 35 insertions(+), 1 deletions(-)
hooks/post-receive
--
GNU C Library master sources