2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
7 #include <sys/resource.h>
11 #include <errno_private.h>
14 #define RETURN_AND_SET_ERRNO(err) \
23 getrlimit(int resource
, struct rlimit
*rlimit
)
25 int status
= _kern_getrlimit(resource
, rlimit
);
27 RETURN_AND_SET_ERRNO(status
);
32 setrlimit(int resource
, const struct rlimit
*rlimit
)
34 int status
= _kern_setrlimit(resource
, rlimit
);
36 RETURN_AND_SET_ERRNO(status
);