2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>

* POSIX/Makefile.am: Add wait.
	* POSIX/wait.c: New.
This commit is contained in:
Ralf Corsepius
2009-12-04 06:55:02 +00:00
parent 2845bd1e12
commit 0cd3878008
3 changed files with 28 additions and 0 deletions

View File

@@ -1,3 +1,8 @@
2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add wait.
* POSIX/wait.c: New.
2009-12-03 Joel Sherrill <joel.sherrill@oarcorp.com>
* bspcmdline01/test.c: Removed.

View File

@@ -94,6 +94,9 @@ unlink_SOURCES = unlink.c
check_PROGRAMS += vfork
vfork_SOURCES = vfork.c
check_PROGRAMS += wait
wait_SOURCES = wait.c
check_PROGRAMS += waitpid
waitpid_SOURCES = waitpid.c

View File

@@ -0,0 +1,20 @@
/*
* Copyright (c) 2009 by
* Ralf Corsépius, Ulm, Germany. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
*/
#include <sys/types.h>
#include <sys/wait.h>
int
main (void)
{
int status;
pid_t pid;
pid = wait(&status);
return 0;
}