summaryrefslogtreecommitdiff
path: root/cpukit/posix/src/waitpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/posix/src/waitpid.c')
-rw-r--r--cpukit/posix/src/waitpid.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpukit/posix/src/waitpid.c b/cpukit/posix/src/waitpid.c
index 5201f56a05..b3c3918f4e 100644
--- a/cpukit/posix/src/waitpid.c
+++ b/cpukit/posix/src/waitpid.c
@@ -1,6 +1,13 @@
/*
* waitpid() - POSIX 1003.1 3.2.1
*
+ * COPYRIGHT (c) 1989-2007.
+ * On-Line Applications Research Corporation (OAR).
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ * http://www.rtems.com/license/LICENSE.
+ *
* $Id$
*/
@@ -11,6 +18,7 @@
#include <sys/types.h>
#include <sys/wait.h>
#include <errno.h>
+#include <rtems/seterr.h>
int waitpid(
pid_t pid,
@@ -18,6 +26,5 @@ int waitpid(
int options
)
{
- errno = ENOSYS;
- return -1;
+ rtems_set_errno_and_return_minus_one( ENOSYS );
}