mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
LibC: Move waitpid() to sys/wait.h
That's where POSIX says it should be.
This commit is contained in:
parent
4e79a60b78
commit
a6e7797a31
6 changed files with 10 additions and 8 deletions
|
@ -24,6 +24,7 @@
|
|||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <Kernel/Syscall.h>
|
||||
#include <assert.h>
|
||||
#include <sys/wait.h>
|
||||
#include <unistd.h>
|
||||
|
@ -35,3 +36,9 @@ pid_t wait(int* wstatus)
|
|||
return waitpid(-1, wstatus, 0);
|
||||
}
|
||||
}
|
||||
|
||||
pid_t waitpid(pid_t waitee, int* wstatus, int options)
|
||||
{
|
||||
int rc = syscall(SC_waitpid, waitee, wstatus, options);
|
||||
__RETURN_WITH_ERRNO(rc, rc, -1);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue