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
This commit is contained in:
Axel Dörfler
2004-09-01 10:18:36 +00:00
parent 866a87e2b5
commit 6914fa8c77
2 changed files with 11 additions and 50 deletions
+11 -10
View File
@@ -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 ;
-40
View File
@@ -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 <sys/resource.h>
#include <syscalls.h>
#include <errno.h>
#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);
}