Skip to content

Commit 9d4e780

Browse files
committed
Auto merge of #2855 - i509VCB:siginfo, r=Amanieu
add BUS_ si_code constants
2 parents 4c0cb81 + bdd3baa commit 9d4e780

File tree

10 files changed

+46
-0
lines changed

10 files changed

+46
-0
lines changed

libc-test/semver/android.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,11 @@ BS0
176176
BS1
177177
BSDLY
178178
BUFSIZ
179+
BUS_ADRALN
180+
BUS_ADRERR
181+
BUS_OBJERR
182+
BUS_MCEERR_AR
183+
BUS_MCEERR_AO
179184
CBAUD
180185
CBAUDEX
181186
CIBAUD

libc-test/semver/apple.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ BS0
108108
BS1
109109
BSDLY
110110
BUFSIZ
111+
BUS_ADRALN
112+
BUS_ADRERR
113+
BUS_OBJERR
111114
CCStatus
112115
CCCryptorStatus
113116
CCRandomGenerateBytes

libc-test/semver/dragonfly.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ BOOT_TIME
107107
BPF_ALIGNMENT
108108
BTUARTDISC
109109
BUFSIZ
110+
BUS_ADRALN
111+
BUS_ADRERR
112+
BUS_OBJERR
110113
CCAR_OFLOW
111114
CCTS_OFLOW
112115
CDSR_OFLOW

libc-test/semver/freebsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ BIOCVERSION
133133
BOOT_TIME
134134
BPF_ALIGNMENT
135135
BUFSIZ
136+
BUS_ADRALN
137+
BUS_ADRERR
138+
BUS_OBJERR
136139
CCAR_OFLOW
137140
CCTS_OFLOW
138141
CDSR_OFLOW

libc-test/semver/linux.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,11 @@ BS0
198198
BS1
199199
BSDLY
200200
BUFSIZ
201+
BUS_ADRALN
202+
BUS_ADRERR
203+
BUS_OBJERR
204+
BUS_MCEERR_AR
205+
BUS_MCEERR_AO
201206
CANFD_BRS
202207
CANFD_ESI
203208
CANFD_MAX_DLC

libc-test/semver/netbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ BIOCSSEESENT
123123
BIOCVERSION
124124
BOOT_TIME
125125
BUFSIZ
126+
BUS_ADRALN
127+
BUS_ADRERR
128+
BUS_OBJERR
126129
CCTS_OFLOW
127130
CDTRCTS
128131
CHWFLOW

libc-test/semver/openbsd.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ BIOCSHDRCMPLT
8686
BIOCSRSIG
8787
BIOCVERSION
8888
BUFSIZ
89+
BUS_ADRALN
90+
BUS_ADRERR
91+
BUS_OBJERR
8992
CCTS_OFLOW
9093
CHWFLOW
9194
CIGNORE

src/unix/bsd/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,12 @@ pub const TCP_MAXSEG: ::c_int = 2;
449449

450450
pub const PIPE_BUF: usize = 512;
451451

452+
// si_code values for SIGBUS signal
453+
pub const BUS_ADRALN: ::c_int = 1;
454+
pub const BUS_ADRERR: ::c_int = 2;
455+
pub const BUS_OBJERR: ::c_int = 3;
456+
457+
// si_code values for SIGCHLD signal
452458
pub const CLD_EXITED: ::c_int = 1;
453459
pub const CLD_KILLED: ::c_int = 2;
454460
pub const CLD_DUMPED: ::c_int = 3;

src/unix/haiku/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1243,6 +1243,12 @@ pub const WEXITED: ::c_int = 0x08;
12431243
pub const WSTOPPED: ::c_int = 0x10;
12441244
pub const WNOWAIT: ::c_int = 0x20;
12451245

1246+
// si_code values for SIGBUS signal
1247+
pub const BUS_ADRALN: ::c_int = 40;
1248+
pub const BUS_ADRERR: ::c_int = 41;
1249+
pub const BUS_OBJERR: ::c_int = 42;
1250+
1251+
// si_code values for SIGCHLD signal
12461252
pub const CLD_EXITED: ::c_int = 60;
12471253
pub const CLD_KILLED: ::c_int = 61;
12481254
pub const CLD_DUMPED: ::c_int = 62;

src/unix/linux_like/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,15 @@ pub const PIPE_BUF: usize = 4096;
12111211

12121212
pub const SI_LOAD_SHIFT: ::c_uint = 16;
12131213

1214+
// si_code values for SIGBUS signal
1215+
pub const BUS_ADRALN: ::c_int = 1;
1216+
pub const BUS_ADRERR: ::c_int = 2;
1217+
pub const BUS_OBJERR: ::c_int = 3;
1218+
// Linux-specific si_code values for SIGBUS signal
1219+
pub const BUS_MCEERR_AR: ::c_int = 4;
1220+
pub const BUS_MCEERR_AO: ::c_int = 5;
1221+
1222+
// si_code values for SIGCHLD signal
12141223
pub const CLD_EXITED: ::c_int = 1;
12151224
pub const CLD_KILLED: ::c_int = 2;
12161225
pub const CLD_DUMPED: ::c_int = 3;

0 commit comments

Comments
 (0)