mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
LibC: Implement wait()
This is a simple convenience wrapper over waitpid().
This commit is contained in:
parent
fde8f7f538
commit
bec646c0bb
2 changed files with 6 additions and 0 deletions
|
@ -236,6 +236,11 @@ pid_t waitpid(pid_t waitee, int* wstatus, int options)
|
|||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
||||
pid_t wait(int* wstatus)
|
||||
{
|
||||
return waitpid(-1, wstatus, 0);
|
||||
}
|
||||
|
||||
int lstat(const char* path, struct stat* statbuf)
|
||||
{
|
||||
int rc = syscall(SC_lstat, path, statbuf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue