From b99b892f6854b98bac5a581cbd20a6a7ed2e2470 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 6 May 2013 14:58:00 -0700 Subject: Fix stub setrlimit implementation. --- resource/setrlimit.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'resource') 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) -- cgit v1.1