fix config file path
[AROS.git] / compiler / clib / setrlimit.c
blobb26455a41518946564d6aaf2dda122623c6d55f0
1 /*
2 Copyright © 1995-2012, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function setrlimit().
6 */
8 #include <errno.h>
9 #include <sys/resource.h>
11 /*****************************************************************************
13 NAME */
15 int setrlimit (
17 /* SYNOPSIS */
18 int resource,
19 const struct rlimit *rlp)
21 /* FUNCTION
22 Get the limits of certain system resources
24 INPUTS
25 resource - the resource type to get
26 rlp - resource information to update
28 RESULT
29 On success, returns 0. -1 and errno on error.
31 NOTES
33 EXAMPLE
35 BUGS
37 SEE ALSO
38 getrlimit()
40 INTERNALS
42 ******************************************************************************/
44 int retval = 0;
46 /* As of yet, no resource can be updated on AROS */
48 switch (resource) {
49 default:
50 retval = -1;
51 errno = EINVAL;
52 break;
55 return retval;