Skip to content

Commit 9417b7e

Browse files
committed
netbsd,openbsd: add more waitid related constants
1 parent 66171ee commit 9417b7e

File tree

5 files changed

+28
-2
lines changed

5 files changed

+28
-2
lines changed

libc-test/semver/netbsd.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,9 +1055,14 @@ VM_PROC_MAP
10551055
VREPRINT
10561056
VSTATUS
10571057
VWERASE
1058+
WALLSIG
1059+
WALTSIG
1060+
WCONTINUED
10581061
WEXITED
10591062
WNOWAIT
1063+
WNOZOMBIE
10601064
WSTOPPED
1065+
WTRAPPED
10611066
YESEXPR
10621067
YESSTR
10631068
_IOFBF

libc-test/semver/openbsd.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ O_RSYNC
618618
O_SHLOCK
619619
O_SYNC
620620
PENDIN
621+
P_ALL
622+
P_PGID
623+
P_PID
621624
PF_APPLETALK
622625
PF_BLUETOOTH
623626
PF_BPF
@@ -835,6 +838,11 @@ UTIME_OMIT
835838
UT_HOSTSIZE
836839
UT_LINESIZE
837840
UT_NAMESIZE
841+
WCONTINUED
842+
WEXITED
843+
WNOWAIT
844+
WSTOPPED
845+
WTRAPPED
838846
VDISCARD
839847
VDSUSP
840848
VLNEXT

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ pub type speed_t = ::c_uint;
99
pub type tcflag_t = ::c_uint;
1010
pub type nl_item = c_long;
1111
pub type clockid_t = ::c_int;
12+
pub type idtype_t = ::c_int;
1213
pub type id_t = u32;
1314
pub type sem_t = *mut sem;
1415
pub type key_t = c_long;

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ pub type dev_t = u64;
44
pub type blksize_t = i32;
55
pub type fsblkcnt_t = u64;
66
pub type fsfilcnt_t = u64;
7-
pub type idtype_t = ::c_int;
87
pub type mqd_t = ::c_int;
98
type __pthread_spin_t = __cpu_simple_lock_nv_t;
109
pub type vm_size_t = ::uintptr_t; // FIXME: deprecated since long time
@@ -2220,6 +2219,11 @@ pub const WCONTINUED: ::c_int = 0x00000010;
22202219
pub const WEXITED: ::c_int = 0x000000020;
22212220
pub const WNOWAIT: ::c_int = 0x00010000;
22222221

2222+
pub const WALTSIG: ::c_int = 0x00000004;
2223+
pub const WALLSIG: ::c_int = 0x00000008;
2224+
pub const WTRAPPED: ::c_int = 0x00000040;
2225+
pub const WNOZOMBIE: ::c_int = 0x00020000;
2226+
22232227
pub const P_ALL: idtype_t = 0;
22242228
pub const P_PID: idtype_t = 1;
22252229
pub const P_PGID: idtype_t = 4;

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,15 @@ pub const BIOCSDLT: ::c_ulong = 0x8004427a;
16151615

16161616
pub const PTRACE_FORK: ::c_int = 0x0002;
16171617

1618-
pub const WCONTINUED: ::c_int = 8;
1618+
pub const WCONTINUED: ::c_int = 0x08;
1619+
pub const WEXITED: ::c_int = 0x04;
1620+
pub const WSTOPPED: ::c_int = 0x02; // same as WUNTRACED
1621+
pub const WNOWAIT: ::c_int = 0x10;
1622+
pub const WTRAPPED: ::c_int = 0x20;
1623+
1624+
pub const P_ALL: idtype_t = 0;
1625+
pub const P_PGID: idtype_t = 1;
1626+
pub const P_PID: idtype_t = 2;
16191627

16201628
// search.h
16211629
pub const FIND: ::ACTION = 0;

0 commit comments

Comments
 (0)