BuildSystem: Move all userpace libraries under the userspace directory
As the number of libraries is increasing, root directory starts to expand. This adds better organization for libraries
This commit is contained in:
13
userspace/libraries/LibC/sys/wait.cpp
Normal file
13
userspace/libraries/LibC/sys/wait.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <sys/syscall.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
||||
pid_t wait(int* stat_loc)
|
||||
{
|
||||
return waitpid(-1, stat_loc, 0);
|
||||
}
|
||||
|
||||
pid_t waitpid(pid_t pid, int* stat_loc, int options)
|
||||
{
|
||||
return (pid_t)syscall(SYS_WAIT, pid, stat_loc, options);
|
||||
}
|
||||
Reference in New Issue
Block a user