compiler/clib: Rename IoErr2errno() to __arosc_ioerr2errno(); function is now defined...
[AROS.git] / compiler / clib / setrlimit.c
blob0c8eba9aac2da58df8e4fad08842874a39d05217
1 /*
2 Copyright © 1995-2003, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX function setrlimit().
6 */
8 #define setrlimit setrlimit
10 #include <errno.h>
11 #include <sys/resource.h>
13 /*****************************************************************************
15 NAME */
17 int setrlimit (
19 /* SYNOPSIS */
20 int resource,
21 const struct rlimit *rlp)
23 /* FUNCTION
24 Get the limits of certain system resources
26 INPUTS
27 resource - the resource type to get
28 rlp - resource information to update
30 RESULT
31 On success, returns 0. -1 and errno on error.
33 NOTES
35 EXAMPLE
37 BUGS
39 SEE ALSO
40 getrlimit()
42 INTERNALS
44 ******************************************************************************/
46 int retval = 0;
48 /* As of yet, no resource can be updated on AROS */
50 switch (resource) {
51 default:
52 retval = -1;
53 errno = EINVAL;
54 break;
57 return retval;