diff --git a/src/kernel/libroot/posix/Jamfile b/src/kernel/libroot/posix/Jamfile index aa48c8ee9a..8bb51eb6e1 100644 --- a/src/kernel/libroot/posix/Jamfile +++ b/src/kernel/libroot/posix/Jamfile @@ -3,19 +3,20 @@ SubDir OBOS_TOP src kernel libroot posix ; UsePrivateHeaders [ FDirName syslog_daemon ] ; KernelMergeObject posix_main.o : - <$(SOURCE_GRIST)>assert.c - <$(SOURCE_GRIST)>dlfcn.c - <$(SOURCE_GRIST)>errno.c - <$(SOURCE_GRIST)>fnmatch.c - <$(SOURCE_GRIST)>glob.c - <$(SOURCE_GRIST)>poll.c - <$(SOURCE_GRIST)>pwd.c - <$(SOURCE_GRIST)>rlimit.c - <$(SOURCE_GRIST)>syslog.cpp - <$(SOURCE_GRIST)>utime.c + assert.c + dlfcn.c + errno.c + fnmatch.c + glob.c + poll.c + pwd.c + syslog.cpp + utime.c : -fPIC -DPIC ; +SubInclude OBOS_TOP src kernel libroot posix arch ; + SubInclude OBOS_TOP src kernel libroot posix locale ; SubInclude OBOS_TOP src kernel libroot posix malloc ; SubInclude OBOS_TOP src kernel libroot posix math ; diff --git a/src/kernel/libroot/posix/rlimit.c b/src/kernel/libroot/posix/rlimit.c deleted file mode 100644 index e05a97450d..0000000000 --- a/src/kernel/libroot/posix/rlimit.c +++ /dev/null @@ -1,40 +0,0 @@ -/* -** Copyright 2002-2004, The OpenBeOS Team. All rights reserved. -** Distributed under the terms of the OpenBeOS License. -*/ - -/* -** Copyright 2002, Jeff Hamilton. All rights reserved. -** Distributed under the terms of the NewOS License. -*/ - - -#include -#include -#include - - -#define RETURN_AND_SET_ERRNO(err) \ - if (err < 0) { \ - errno = err; \ - return -1; \ - } \ - return err; - - -int -getrlimit(int resource, struct rlimit *rlp) -{ - int status = _kern_getrlimit(resource, rlp); - - RETURN_AND_SET_ERRNO(status); -} - - -int -setrlimit(int resource, const struct rlimit *rlp) -{ - int status = _kern_setrlimit(resource, rlp); - - RETURN_AND_SET_ERRNO(status); -}