Skip to content

Commit c082745

Browse files
committed
Move constants around
1 parent 56a1d50 commit c082745

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3526,6 +3526,10 @@ pub const AT_RSEQ_ALIGN: c_ulong = 28;
35263526
pub const AT_EXECFN: c_ulong = 31;
35273527
pub const AT_MINSIGSTKSZ: c_ulong = 51;
35283528

3529+
// siginfo.h
3530+
pub const SI_DETHREAD: c_int = -7;
3531+
pub const TRAP_PERF: c_int = 6;
3532+
35293533
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
35303534
// following are only available on newer Linux versions than the versions
35313535
// currently used in CI in some configurations, so we define them here.

src/unix/linux_like/linux/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5810,6 +5810,10 @@ pub const EPIOCGPARAMS: Ioctl = 0x80088a02;
58105810
const _IOC_NRBITS: u32 = 8;
58115811
const _IOC_TYPEBITS: u32 = 8;
58125812

5813+
// siginfo.h
5814+
pub const SI_DETHREAD: c_int = -7;
5815+
pub const TRAP_PERF: c_int = 6;
5816+
58135817
// https://github.com/search?q=repo%3Atorvalds%2Flinux+%22%23define+_IOC_NONE%22&type=code
58145818
cfg_if! {
58155819
if #[cfg(any(

src/unix/linux_like/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,6 @@ pub const SI_MESGQ: c_int = -3;
12971297
pub const SI_ASYNCIO: c_int = -4;
12981298
pub const SI_SIGIO: c_int = -5;
12991299
pub const SI_TKILL: c_int = -6;
1300-
pub const SI_DETHREAD: c_int = -7;
13011300
pub const SI_ASYNCNL: c_int = -60;
13021301

13031302
// si_code values for SIGBUS signal
@@ -1314,7 +1313,6 @@ pub const TRAP_TRACE: c_int = 2;
13141313
pub const TRAP_BRANCH: c_int = 3;
13151314
pub const TRAP_HWBKPT: c_int = 4;
13161315
pub const TRAP_UNK: c_int = 5;
1317-
pub const TRAP_PERF: c_int = 6;
13181316

13191317
// si_code values for SIGCHLD signal
13201318
pub const CLD_EXITED: c_int = 1;

0 commit comments

Comments
 (0)