This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.17-609-gb99b892


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, master has been updated
       via  b99b892f6854b98bac5a581cbd20a6a7ed2e2470 (commit)
      from  c74058300c76d7afa316453c03e5776b3a9155a8 (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=b99b892f6854b98bac5a581cbd20a6a7ed2e2470

commit b99b892f6854b98bac5a581cbd20a6a7ed2e2470
Author: Roland McGrath <roland@hack.frob.com>
Date:   Mon May 6 14:58:00 2013 -0700

    Fix stub setrlimit implementation.

diff --git a/ChangeLog b/ChangeLog
index 9d2a25d..6da92f3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2013-05-06  Roland McGrath  <roland@hack.frob.com>
 
+	* resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
+	(setrlimit): Define as weak alias.
+
 	* sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
 	Call __ names for open, ftruncate, and close.
 	For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
diff --git a/resource/setrlimit.c b/resource/setrlimit.c
index e7924ff..b8496b1 100644
--- a/resource/setrlimit.c
+++ b/resource/setrlimit.c
@@ -1,4 +1,5 @@
-/* Copyright (C) 1991-2013 Free Software Foundation, Inc.
+/* Set process resource limits.  Stub version.
+   Copyright (C) 1991-2013 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,13 +24,11 @@
    Only the super-user can increase hard limits.
    Return 0 if successful, -1 if not (and sets errno).  */
 int
-setrlimit (resource, rlimits)
-     enum __rlimit_resource resource;
-     const struct rlimit *rlimits;
+__setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
 {
   __set_errno (ENOSYS);
   return -1;
 }
-
+weak_alias (__setrlimit, setrlimit)
 
 stub_warning (setrlimit)

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog            |    3 +++
 resource/setrlimit.c |    9 ++++-----
 2 files changed, 7 insertions(+), 5 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]