From 34fa6b663f720c41b1937e118bae650ab745ed14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 7 Jul 2004 12:44:43 +0000 Subject: [PATCH] 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 --- src/kernel/libroot/posix/sys/Jamfile | 1 + src/kernel/libroot/posix/sys/wait.c | 39 ++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 src/kernel/libroot/posix/sys/wait.c 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; +} +