From 6914fa8c77fd83181f19401d9672460d49574906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 1 Sep 2004 10:18:36 +0000 Subject: [PATCH] Removed rlimit.c - we now have one in sys/ where it belongs to. Added new "arch" subdirectory to the build. Removed unnecessary grist from source files. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8760 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/Jamfile | 21 ++++++++-------- src/kernel/libroot/posix/rlimit.c | 40 ------------------------------- 2 files changed, 11 insertions(+), 50 deletions(-) delete mode 100644 src/kernel/libroot/posix/rlimit.c 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); -}