forked from Imagelibrary/rtems
2009-12-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/Makefile.am: Add wait. * POSIX/wait.c: New.
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
20
testsuites/libtests/POSIX/wait.c
Normal file
20
testsuites/libtests/POSIX/wait.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user