2020-01-18 09:38:21 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
|
|
|
|
*
|
2021-04-22 01:24:48 -07:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
2020-01-18 09:38:21 +01:00
|
|
|
*/
|
|
|
|
|
|
2019-02-24 15:19:32 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
2023-07-15 15:22:45 +02:00
|
|
|
// Includes essentially mandated by POSIX:
|
|
|
|
|
// https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html
|
|
|
|
|
#include <signal.h>
|
|
|
|
|
|
2021-08-14 18:18:30 +02:00
|
|
|
#include <Kernel/API/POSIX/signal.h>
|
|
|
|
|
#include <Kernel/API/POSIX/sys/wait.h>
|
2022-08-16 01:57:43 +10:00
|
|
|
#include <sys/cdefs.h>
|
2019-02-24 15:19:32 +01:00
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
|
|
2020-02-03 18:51:48 +03:00
|
|
|
pid_t waitpid(pid_t, int* wstatus, int options);
|
2019-02-24 15:19:32 +01:00
|
|
|
pid_t wait(int* wstatus);
|
2020-02-05 19:42:43 +03:00
|
|
|
int waitid(idtype_t idtype, id_t id, siginfo_t* infop, int options);
|
2019-02-24 15:19:32 +01:00
|
|
|
|
|
|
|
|
__END_DECLS
|