Added empty stub implementations of wait(), waitpid(), and waitid().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8341 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -7,6 +7,7 @@ KernelMergeObject posix_sys.o :
|
|||||||
<$(SOURCE_GRIST)>select.c
|
<$(SOURCE_GRIST)>select.c
|
||||||
<$(SOURCE_GRIST)>sysctl.c
|
<$(SOURCE_GRIST)>sysctl.c
|
||||||
<$(SOURCE_GRIST)>gettimeofday.c
|
<$(SOURCE_GRIST)>gettimeofday.c
|
||||||
|
<$(SOURCE_GRIST)>wait.c
|
||||||
:
|
:
|
||||||
-fPIC -DPIC
|
-fPIC -DPIC
|
||||||
;
|
;
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
** Copyright 2004, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
|
** Distributed under the terms of the Haiku License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include <syscalls.h>
|
||||||
|
|
||||||
|
#include <sys/wait.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <errno.h>
|
||||||
|
|
||||||
|
|
||||||
|
// ToDo: properly implement wait(), waitpid(), and waitid()
|
||||||
|
|
||||||
|
|
||||||
|
pid_t
|
||||||
|
wait(int *_status)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "wait(): NOT IMPLEMENTED\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
pid_t
|
||||||
|
waitpid(pid_t pid, int *_status, int options)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "waitpid(): NOT IMPLEMENTED\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int
|
||||||
|
waitid(idtype_t idType, id_t id, siginfo_t *info, int options)
|
||||||
|
{
|
||||||
|
fprintf(stderr, "waitid(): NOT IMPLEMENTED\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user