alsa.audio: disable building of alsa-bridge linklib until complete driver is ready
[AROS.git] / compiler / posixc / setrlimit.c
blob84e09fb8e8ec320570d5ae32f487927a3b510bb9
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 POSIX.1-2008 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
32 Currently always returns -1 and errno is set to EINVAL
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 getrlimit()
41 INTERNALS
43 ******************************************************************************/
45 int retval = 0;
47 /* As of yet, no resource can be updated on AROS */
49 switch (resource) {
50 default:
51 retval = -1;
52 errno = EINVAL;
53 break;
56 return retval;