1
0
mirror of https://github.com/cahirwpz/amigaos-gcc-2.95.3.git synced 2025-12-08 14:58:59 +00:00
Files
amigaos-gcc-2.95.3/libiberty/waitpid.c
Krystian Bacławski 698c99a82a Import original sources.
2016-04-17 14:54:11 +02:00

12 lines
178 B
C

int
waitpid (pid, stat_loc, options)
int pid, *stat_loc, options;
{
for (;;)
{
int wpid = wait(stat_loc);
if (wpid == pid || wpid == -1)
return wpid;
}
}