Skip to content

Commit 1c8afcf

Browse files
committed
Add the more general codes as well
1 parent 3c159f6 commit 1c8afcf

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2879,7 +2879,16 @@ SIOCSMIIREG
28792879
SIOCSRARP
28802880
SIOCWANDEV
28812881
SIOGIFINDEX
2882+
SI_ASYNCIO
2883+
SI_DETHREAD
2884+
SI_KERNEL
28822885
SI_LOAD_SHIFT
2886+
SI_MESGQ
2887+
SI_QUEUE
2888+
SI_SIGIO
2889+
SI_TIMER
2890+
SI_TKILL
2891+
SI_USER
28832892
SND_CNT
28842893
SND_MAX
28852894
SOCK_CLOEXEC

src/unix/linux_like/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,6 +1288,17 @@ pub const PIPE_BUF: usize = 4096;
12881288

12891289
pub const SI_LOAD_SHIFT: c_uint = 16;
12901290

1291+
// si_code values
1292+
pub const SI_USER: c_int = 0;
1293+
pub const SI_KERNEL: c_int = 0x80;
1294+
pub const SI_QUEUE: c_int = -1;
1295+
pub const SI_TIMER: c_int = -2;
1296+
pub const SI_MESGQ: c_int = -3;
1297+
pub const SI_ASYNCIO: c_int = -4;
1298+
pub const SI_SIGIO: c_int = -5;
1299+
pub const SI_TKILL: c_int = -6;
1300+
pub const SI_DETHREAD: c_int = -7;
1301+
12911302
// si_code values for SIGBUS signal
12921303
pub const BUS_ADRALN: c_int = 1;
12931304
pub const BUS_ADRERR: c_int = 2;

0 commit comments

Comments
 (0)