Skip to content

Commit f73f5c6

Browse files
authored
Auto merge of rust-lang#318 - nikklassen:master, r=alexcrichton
Add missing constants for wait family Fixes rust-lang#315
2 parents ee6613d + ee3e49f commit f73f5c6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/unix/bsd/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,8 @@ pub const FLUSHO: ::tcflag_t = 0x00800000;
285285
pub const PENDIN: ::tcflag_t = 0x20000000;
286286
pub const NOFLSH: ::tcflag_t = 0x80000000;
287287

288-
pub const WNOHANG: ::c_int = 1;
288+
pub const WNOHANG: ::c_int = 0x00000001;
289+
pub const WUNTRACED: ::c_int = 0x00000002;
289290

290291
pub const RTLD_NOW: ::c_int = 0x2;
291292
pub const RTLD_DEFAULT: *mut ::c_void = -2isize as *mut ::c_void;

src/unix/notbsd/mod.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,16 @@ pub const CLONE_NEWPID: ::c_int = 0x20000000;
627627
pub const CLONE_NEWNET: ::c_int = 0x40000000;
628628
pub const CLONE_IO: ::c_int = 0x80000000;
629629

630-
pub const WNOHANG: ::c_int = 1;
630+
pub const WNOHANG: ::c_int = 0x00000001;
631+
pub const WUNTRACED: ::c_int = 0x00000002;
632+
pub const WSTOPPED: ::c_int = WUNTRACED;
633+
pub const WEXITED: ::c_int = 0x00000004;
634+
pub const WCONTINUED: ::c_int = 0x00000008;
635+
pub const WNOWAIT: ::c_int = 0x01000000;
636+
637+
pub const __WNOTHREAD: ::c_int = 0x20000000;
638+
pub const __WALL: ::c_int = 0x40000000;
639+
pub const __WCLONE: ::c_int = 0x80000000;
631640

632641
pub const SPLICE_F_MOVE: ::c_uint = 0x01;
633642
pub const SPLICE_F_NONBLOCK: ::c_uint = 0x02;

0 commit comments

Comments
 (0)