mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
fix idtype definition
This commit is contained in:
@@ -124,11 +124,11 @@ WIFCONTINUED :: #force_inline proc "contextless" (x: c.int) -> bool {
|
|||||||
|
|
||||||
idtype_t :: enum c.int {
|
idtype_t :: enum c.int {
|
||||||
// Wait for any children and `id` is ignored.
|
// Wait for any children and `id` is ignored.
|
||||||
P_ALL,
|
P_ALL = _P_ALL,
|
||||||
// Wait for any child wiith a process group ID equal to `id`.
|
// Wait for any child wiith a process group ID equal to `id`.
|
||||||
P_PID,
|
P_PID = _P_PID,
|
||||||
// Wait for any child with a process group ID equal to `id`.
|
// Wait for any child with a process group ID equal to `id`.
|
||||||
P_PGID,
|
P_PGID = _P_PGID,
|
||||||
}
|
}
|
||||||
|
|
||||||
Wait_Flag_Bits :: enum c.int {
|
Wait_Flag_Bits :: enum c.int {
|
||||||
@@ -166,6 +166,10 @@ when ODIN_OS == .Darwin {
|
|||||||
WNOWAIT :: 0x00000020
|
WNOWAIT :: 0x00000020
|
||||||
WSTOPPED :: 0x00000008
|
WSTOPPED :: 0x00000008
|
||||||
|
|
||||||
|
_P_ALL :: 0
|
||||||
|
_P_PID :: 1
|
||||||
|
_P_PGID :: 2
|
||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
||||||
return x & 0o177
|
return x & 0o177
|
||||||
@@ -221,6 +225,10 @@ when ODIN_OS == .Darwin {
|
|||||||
WNOWAIT :: 8
|
WNOWAIT :: 8
|
||||||
WSTOPPED :: 2
|
WSTOPPED :: 2
|
||||||
|
|
||||||
|
_P_ALL :: 7
|
||||||
|
_P_PID :: 0
|
||||||
|
_P_PGID :: 2
|
||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
||||||
return x & 0o177
|
return x & 0o177
|
||||||
@@ -275,6 +283,10 @@ when ODIN_OS == .Darwin {
|
|||||||
WNOWAIT :: 0x00010000
|
WNOWAIT :: 0x00010000
|
||||||
WSTOPPED :: 0x00000002
|
WSTOPPED :: 0x00000002
|
||||||
|
|
||||||
|
_P_ALL :: 0
|
||||||
|
_P_PID :: 1
|
||||||
|
_P_PGID :: 2
|
||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
||||||
return x & 0o177
|
return x & 0o177
|
||||||
@@ -330,6 +342,10 @@ when ODIN_OS == .Darwin {
|
|||||||
WNOWAIT :: 0x00010000
|
WNOWAIT :: 0x00010000
|
||||||
WSTOPPED :: 0x00000002
|
WSTOPPED :: 0x00000002
|
||||||
|
|
||||||
|
_P_ALL :: 0
|
||||||
|
_P_PID :: 2
|
||||||
|
_P_PGID :: 1
|
||||||
|
|
||||||
@(private)
|
@(private)
|
||||||
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
_WSTATUS :: #force_inline proc "contextless" (x: c.int) -> c.int {
|
||||||
return x & 0o177
|
return x & 0o177
|
||||||
|
|||||||
Reference in New Issue
Block a user