Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Fix issue 20852: core.sys.posix.sys.wait missing definitions on FreeBSD #3115

Merged
merged 3 commits into from
May 24, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions src/core/sys/posix/sys/wait.d
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,24 @@ else version (FreeBSD)
enum WEXITED = 16;
enum WTRAPPED = 32;

// Only these id types supported by waitid according to wait(2)
enum idtype_t
{
P_UID,
P_GID,
P_SID,
P_JAILID
P_JAILID,
P_PID,
P_PPID,
P_PGID,
P_CID,
P_ALL,
P_LWPID,
P_TASKID,
P_PROJID,
P_POOLID,
P_CTID,
P_CPUID,
P_PSETID
}

int waitid(idtype_t, id_t, siginfo_t*, int);
Expand Down