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:
@@ -3,19 +3,20 @@ SubDir OBOS_TOP src kernel libroot posix ;
|
|||||||
UsePrivateHeaders [ FDirName syslog_daemon ] ;
|
UsePrivateHeaders [ FDirName syslog_daemon ] ;
|
||||||
|
|
||||||
KernelMergeObject posix_main.o :
|
KernelMergeObject posix_main.o :
|
||||||
<$(SOURCE_GRIST)>assert.c
|
assert.c
|
||||||
<$(SOURCE_GRIST)>dlfcn.c
|
dlfcn.c
|
||||||
<$(SOURCE_GRIST)>errno.c
|
errno.c
|
||||||
<$(SOURCE_GRIST)>fnmatch.c
|
fnmatch.c
|
||||||
<$(SOURCE_GRIST)>glob.c
|
glob.c
|
||||||
<$(SOURCE_GRIST)>poll.c
|
poll.c
|
||||||
<$(SOURCE_GRIST)>pwd.c
|
pwd.c
|
||||||
<$(SOURCE_GRIST)>rlimit.c
|
syslog.cpp
|
||||||
<$(SOURCE_GRIST)>syslog.cpp
|
utime.c
|
||||||
<$(SOURCE_GRIST)>utime.c
|
|
||||||
: -fPIC -DPIC
|
: -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 locale ;
|
||||||
SubInclude OBOS_TOP src kernel libroot posix malloc ;
|
SubInclude OBOS_TOP src kernel libroot posix malloc ;
|
||||||
SubInclude OBOS_TOP src kernel libroot posix math ;
|
SubInclude OBOS_TOP src kernel libroot posix math ;
|
||||||
|
|||||||
@@ -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);
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user