Implement wait4 already exist in header

1. Implement wait4 by calling __wait4 exists in libc.so
2. Add wait4 to libc.a

Change-Id: I08b6555cc50ee88358cd2ec63f9d8d2d4482305a
This commit is contained in:
Andrew Hsieh
2013-04-13 08:43:19 +08:00
parent 7c35de7f0a
commit 7e25851a68
4 changed files with 14 additions and 0 deletions

View File

@@ -32,6 +32,9 @@
#include <sys/types.h>
#include <sys/resource.h>
#include <linux/wait.h>
#include <asm/unistd.h>
#include <sys/syscall.h>
__BEGIN_DECLS
@@ -47,6 +50,10 @@ __BEGIN_DECLS
extern pid_t wait(int *);
extern pid_t waitpid(pid_t, int *, int);
extern pid_t wait3(int *, int, struct rusage *);
static __inline__ pid_t wait4(pid_t pid, int *status, int options, struct rusage *rusage)
{
return (pid_t)syscall(__NR_wait4, pid, status, options, rusage);
}
__END_DECLS