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:
Axel Dörfler 2004-07-07 12:44:43 +00:00
parent d871284db8
commit 34fa6b663f
2 changed files with 40 additions and 0 deletions

View File

@ -7,6 +7,7 @@ KernelMergeObject posix_sys.o :
<$(SOURCE_GRIST)>select.c
<$(SOURCE_GRIST)>sysctl.c
<$(SOURCE_GRIST)>gettimeofday.c
<$(SOURCE_GRIST)>wait.c
:
-fPIC -DPIC
;

View File

@ -0,0 +1,39 @@
/*
** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. 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;
}