diff --git a/src/kernel/libroot/posix/sys/Jamfile b/src/kernel/libroot/posix/sys/Jamfile index ecff55749f..65d7e4882f 100644 --- a/src/kernel/libroot/posix/sys/Jamfile +++ b/src/kernel/libroot/posix/sys/Jamfile @@ -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 ; diff --git a/src/kernel/libroot/posix/sys/wait.c b/src/kernel/libroot/posix/sys/wait.c new file mode 100644 index 0000000000..cb62f89896 --- /dev/null +++ b/src/kernel/libroot/posix/sys/wait.c @@ -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 + +#include +#include +#include + + +// 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; +} +