Skip to content

Commit

Permalink
netbsd,openbsd: add more waitid related constants
Browse files Browse the repository at this point in the history
  • Loading branch information
valpackett committed Apr 5, 2023
1 parent 66171ee commit 9417b7e
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 2 deletions.
5 changes: 5 additions & 0 deletions libc-test/semver/netbsd.txt
Expand Up @@ -1055,9 +1055,14 @@ VM_PROC_MAP
VREPRINT
VSTATUS
VWERASE
WALLSIG
WALTSIG
WCONTINUED
WEXITED
WNOWAIT
WNOZOMBIE
WSTOPPED
WTRAPPED
YESEXPR
YESSTR
_IOFBF
Expand Down
8 changes: 8 additions & 0 deletions libc-test/semver/openbsd.txt
Expand Up @@ -618,6 +618,9 @@ O_RSYNC
O_SHLOCK
O_SYNC
PENDIN
P_ALL
P_PGID
P_PID
PF_APPLETALK
PF_BLUETOOTH
PF_BPF
Expand Down Expand Up @@ -835,6 +838,11 @@ UTIME_OMIT
UT_HOSTSIZE
UT_LINESIZE
UT_NAMESIZE
WCONTINUED
WEXITED
WNOWAIT
WSTOPPED
WTRAPPED
VDISCARD
VDSUSP
VLNEXT
Expand Down
1 change: 1 addition & 0 deletions src/unix/bsd/netbsdlike/mod.rs
Expand Up @@ -9,6 +9,7 @@ pub type speed_t = ::c_uint;
pub type tcflag_t = ::c_uint;
pub type nl_item = c_long;
pub type clockid_t = ::c_int;
pub type idtype_t = ::c_int;
pub type id_t = u32;
pub type sem_t = *mut sem;
pub type key_t = c_long;
Expand Down
6 changes: 5 additions & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Expand Up @@ -4,7 +4,6 @@ pub type dev_t = u64;
pub type blksize_t = i32;
pub type fsblkcnt_t = u64;
pub type fsfilcnt_t = u64;
pub type idtype_t = ::c_int;
pub type mqd_t = ::c_int;
type __pthread_spin_t = __cpu_simple_lock_nv_t;
pub type vm_size_t = ::uintptr_t; // FIXME: deprecated since long time
Expand Down Expand Up @@ -2220,6 +2219,11 @@ pub const WCONTINUED: ::c_int = 0x00000010;
pub const WEXITED: ::c_int = 0x000000020;
pub const WNOWAIT: ::c_int = 0x00010000;

pub const WALTSIG: ::c_int = 0x00000004;
pub const WALLSIG: ::c_int = 0x00000008;
pub const WTRAPPED: ::c_int = 0x00000040;
pub const WNOZOMBIE: ::c_int = 0x00020000;

pub const P_ALL: idtype_t = 0;
pub const P_PID: idtype_t = 1;
pub const P_PGID: idtype_t = 4;
Expand Down
10 changes: 9 additions & 1 deletion src/unix/bsd/netbsdlike/openbsd/mod.rs
Expand Up @@ -1615,7 +1615,15 @@ pub const BIOCSDLT: ::c_ulong = 0x8004427a;

pub const PTRACE_FORK: ::c_int = 0x0002;

pub const WCONTINUED: ::c_int = 8;
pub const WCONTINUED: ::c_int = 0x08;
pub const WEXITED: ::c_int = 0x04;
pub const WSTOPPED: ::c_int = 0x02; // same as WUNTRACED
pub const WNOWAIT: ::c_int = 0x10;
pub const WTRAPPED: ::c_int = 0x20;

pub const P_ALL: idtype_t = 0;
pub const P_PGID: idtype_t = 1;
pub const P_PID: idtype_t = 2;

// search.h
pub const FIND: ::ACTION = 0;
Expand Down

0 comments on commit 9417b7e

Please sign in to comment.