2012-05-25 22:30:06 +00:00
|
|
|
/* Copyright (C) 1999-2012 Free Software Foundation, Inc.
|
1999-12-02 08:21:38 +00:00
|
|
|
This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 04:58:11 +00:00
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 2.1 of the License, or (at your option) any later version.
|
1999-12-02 08:21:38 +00:00
|
|
|
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
2001-07-06 04:58:11 +00:00
|
|
|
Lesser General Public License for more details.
|
1999-12-02 08:21:38 +00:00
|
|
|
|
2001-07-06 04:58:11 +00:00
|
|
|
You should have received a copy of the GNU Lesser General Public
|
2012-02-09 23:18:22 +00:00
|
|
|
License along with the GNU C Library; if not, see
|
|
|
|
<http://www.gnu.org/licenses/>. */
|
1999-12-02 08:21:38 +00:00
|
|
|
|
|
|
|
#include <errno.h>
|
|
|
|
#include <sys/resource.h>
|
|
|
|
|
|
|
|
#include <sysdep.h>
|
|
|
|
#include <sys/syscall.h>
|
2000-03-31 05:50:02 +00:00
|
|
|
#include <shlib-compat.h>
|
2000-07-07 02:19:06 +00:00
|
|
|
#include <bp-checks.h>
|
|
|
|
|
2000-12-28 14:22:22 +00:00
|
|
|
extern int __new_getrlimit (enum __rlimit_resource resource,
|
|
|
|
struct rlimit *__unbounded rlimits);
|
|
|
|
|
2012-05-25 22:30:06 +00:00
|
|
|
/* Consider moving to syscalls.list. */
|
1999-12-02 08:21:38 +00:00
|
|
|
|
|
|
|
int
|
|
|
|
__new_getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
|
|
|
|
{
|
2000-07-07 02:19:06 +00:00
|
|
|
return INLINE_SYSCALL (ugetrlimit, 2, resource, CHECK_1 (rlimits));
|
1999-12-02 08:21:38 +00:00
|
|
|
}
|
|
|
|
|
1999-12-08 07:38:14 +00:00
|
|
|
weak_alias (__new_getrlimit, __getrlimit);
|
2000-03-31 05:50:02 +00:00
|
|
|
versioned_symbol (libc, __new_getrlimit, getrlimit, GLIBC_2_2);
|