/* ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved. ** Distributed under the terms of the MIT License. */ #include #include #include #include #include int getrlimit(int resource, struct rlimit *rlimit) { int status = _kern_getrlimit(resource, rlimit); RETURN_AND_SET_ERRNO(status); } int setrlimit(int resource, const struct rlimit *rlimit) { int status = _kern_setrlimit(resource, rlimit); RETURN_AND_SET_ERRNO(status); }