From 9821a6af983f07bf146b19ca9993e37b88339bf2 Mon Sep 17 00:00:00 2001 From: camthesaxman Date: Wed, 29 Jan 2020 18:32:13 -0600 Subject: add some more files --- libiberty/waitpid.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 libiberty/waitpid.c (limited to 'libiberty/waitpid.c') diff --git a/libiberty/waitpid.c b/libiberty/waitpid.c new file mode 100755 index 0000000..23db0b9 --- /dev/null +++ b/libiberty/waitpid.c @@ -0,0 +1,11 @@ +int +waitpid (pid, stat_loc, options) + int pid, *stat_loc, options; +{ + for (;;) + { + int wpid = wait(stat_loc); + if (wpid == pid || wpid == -1) + return wpid; + } +} -- cgit v1.2.3