Implemented load_image() using the new _kern_load_image() syscall.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9358 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
beee70da41
commit
dc0f47e390
@ -16,10 +16,18 @@ static struct rld_export const *sRuntimeLinker;
|
|||||||
|
|
||||||
|
|
||||||
thread_id
|
thread_id
|
||||||
load_image(int32 argc, const char **argv, const char **environ)
|
load_image(int32 argCount, const char **args, const char **environ)
|
||||||
{
|
{
|
||||||
// ToDo: implement this!
|
int32 envCount = 0;
|
||||||
return B_ERROR;
|
|
||||||
|
if (argCount < 1 || environ == NULL)
|
||||||
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
|
// count environment variables
|
||||||
|
while (environ[envCount] != NULL)
|
||||||
|
envCount++;
|
||||||
|
|
||||||
|
return _kern_load_image(argCount, args, envCount, environ, B_NORMAL_PRIORITY);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user