2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
5 POSIX.1-2008 function getrlimit().
9 #include <sys/resource.h>
13 /*****************************************************************************
24 Get the limits of certain system resources
27 resource - the resource type to get
28 rlp - returned resource information
31 On success, returns 0. -1 and errno on error.
44 ******************************************************************************/
49 case RLIMIT_NOFILE
: /* needed for getdtablesize() */
50 rlp
->rlim_cur
= rlp
->rlim_max
= __getfdslots();