summaryrefslogtreecommitdiff
path: root/sysdeps/mach/hurd/setrlimit.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-08-28 14:05:55 +0000
committerMark Kettenis <kettenis@gnu.org>2000-08-28 14:05:55 +0000
commitb222360c504cd4dae1966fa63c93cf8cbdedd703 (patch)
tree1c735720db77fc6e0a02a081a10b44bc374baf89 /sysdeps/mach/hurd/setrlimit.c
parentba55e591e709f2074466177f6df44caa8f0e7699 (diff)
* sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from getpeername. Use ISO C style function definition. (getpeername): Provide weak alias. * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from setrlimit. Use ISO C style function definition. (setrlimit): Provide weak alias.
2000-08-28 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/getpeername.c (__getpeername): Renamed from getpeername. Use ISO C style function definition. (getpeername): Provide weak alias. * sysdeps/mach/hurd/setrlimit.c (__setrlimit): Renamed from setrlimit. Use ISO C style function definition. (setrlimit): Provide weak alias.
Diffstat (limited to 'sysdeps/mach/hurd/setrlimit.c')
-rw-r--r--sysdeps/mach/hurd/setrlimit.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sysdeps/mach/hurd/setrlimit.c b/sysdeps/mach/hurd/setrlimit.c
index 1ae2254080..28513d97aa 100644
--- a/sysdeps/mach/hurd/setrlimit.c
+++ b/sysdeps/mach/hurd/setrlimit.c
@@ -16,20 +16,17 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <hurd.h>
-#include <hurd/resource.h>
#include <errno.h>
-#include <hurd/fd.h>
+#include <hurd.h>
+#include <hurd/fd.h>
+#include <hurd/resource.h>
/* Set the soft and hard limits for RESOURCE to *RLIMITS.
Only the super-user can increase hard limits.
Return 0 if successful, -1 if not (and sets errno). */
-/* XXX should be __setrlimit ? */
int
-setrlimit (resource, rlimits)
- enum __rlimit_resource resource;
- const struct rlimit *rlimits;
+__setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
{
struct rlimit lim;
@@ -59,3 +56,5 @@ setrlimit (resource, rlimits)
return 0;
}
+
+weak_alias (__setrlimit, setrlimit)