]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix stub setrlimit implementation.
authorRoland McGrath <roland@hack.frob.com>
Mon, 6 May 2013 21:58:00 +0000 (14:58 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 6 May 2013 21:58:00 +0000 (14:58 -0700)
ChangeLog
resource/setrlimit.c

index 9d2a25d5828620be90ba6724f9d870f8dae5799d..6da92f39db904fc6c53e095a192be187bc8b8d33 100644 (file)
--- 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.
index e7924ff96fa097246e759c0056d15e0e58336cb7..b8496b1548d05c42ca2bb226e25263a936a2212a 100644 (file)
@@ -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
    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)