Skip to content

Commit 859a8fa

Browse files
4lDO2tgross35
authored andcommitted
Update Redox SA_ constants.
(backport <#4426>) (cherry picked from commit 74c3cc0)
1 parent 2f3e868 commit 859a8fa

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/unix/redox/mod.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,14 @@ pub const SIGPWR: c_int = 30;
661661
pub const SIGSYS: c_int = 31;
662662
pub const NSIG: c_int = 32;
663663

664-
pub const SA_NOCLDSTOP: c_ulong = 0x00000001;
665-
pub const SA_NOCLDWAIT: c_ulong = 0x00000002;
666-
pub const SA_SIGINFO: c_ulong = 0x00000004;
667-
pub const SA_RESTORER: c_ulong = 0x04000000;
668-
pub const SA_ONSTACK: c_ulong = 0x08000000;
669-
pub const SA_RESTART: c_ulong = 0x10000000;
670-
pub const SA_NODEFER: c_ulong = 0x40000000;
671-
pub const SA_RESETHAND: c_ulong = 0x80000000;
664+
pub const SA_NOCLDWAIT: c_ulong = 0x0000_0002;
665+
pub const SA_RESTORER: c_ulong = 0x0000_0004; // FIXME(redox): remove after relibc removes it
666+
pub const SA_SIGINFO: c_ulong = 0x0200_0000;
667+
pub const SA_ONSTACK: c_ulong = 0x0400_0000;
668+
pub const SA_RESTART: c_ulong = 0x0800_0000;
669+
pub const SA_NODEFER: c_ulong = 0x1000_0000;
670+
pub const SA_RESETHAND: c_ulong = 0x2000_0000;
671+
pub const SA_NOCLDSTOP: c_ulong = 0x4000_0000;
672672

673673
// sys/file.h
674674
pub const LOCK_SH: c_int = 1;

0 commit comments

Comments
 (0)