Skip to content

Commit b9cd1db

Browse files
committed
linux, android: Add a generic definition for XCASE
XCASE it's defined for all the architectures, although this is not happening currently. The only arch definition that has a different value is powerpc
1 parent 4684598 commit b9cd1db

File tree

13 files changed

+7
-6
lines changed

13 files changed

+7
-6
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3135,6 +3135,7 @@ WUNTRACED
31353135
W_EXITCODE
31363136
W_OK
31373137
W_STOPCODE
3138+
XCASE
31383139
XFS_SUPER_MAGIC
31393140
XTABS
31403141
X_OK

libc-test/semver/linux-loongarch64.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ TIOCCBRK
119119
TIOCGRS485
120120
TIOCSBRK
121121
TIOCSRS485
122-
XCASE
123122
flock64
124123
max_align_t
125124
mcontext_t

libc-test/semver/linux-s390x.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ SYS_utimes
9999
SYS_vfork
100100
TIOCCBRK
101101
TIOCSBRK
102-
XCASE
103102
__psw_t
104103
flock64
105104
fpreg_t

libc-test/semver/linux.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3639,6 +3639,7 @@ W_EXITCODE
36393639
W_STOPCODE
36403640
XATTR_CREATE
36413641
XATTR_REPLACE
3642+
XCASE
36423643
XDP_COPY
36433644
XDP_MMAP_OFFSETS
36443645
XDP_OPTIONS

src/unix/linux_like/android/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,7 @@ pub const TABDLY: crate::tcflag_t = 0o014000;
14211421
pub const BSDLY: crate::tcflag_t = 0o020000;
14221422
pub const FFDLY: crate::tcflag_t = 0o100000;
14231423
pub const VTDLY: crate::tcflag_t = 0o040000;
1424+
pub const XCASE: crate::tcflag_t = 0o000004;
14241425
pub const XTABS: crate::tcflag_t = 0o014000;
14251426

14261427
pub const B0: crate::speed_t = 0o000000;

src/unix/linux_like/linux/arch/generic/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ pub const TIOCM_DSR: c_int = 0x100;
273273
pub const BOTHER: crate::speed_t = 0o010000;
274274
pub const IBSHIFT: crate::tcflag_t = 16;
275275
pub const IUCLC: crate::tcflag_t = 0o0001000;
276+
pub const XCASE: crate::tcflag_t = 0o0000004;
276277

277278
// RLIMIT Constants
278279

src/unix/linux_like/linux/arch/mips/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ pub const TIOCM_DSR: c_int = 0x400;
243243
pub const BOTHER: crate::speed_t = 0o010000;
244244
pub const IBSHIFT: crate::tcflag_t = 16;
245245
pub const IUCLC: crate::tcflag_t = 0o0001000;
246+
pub const XCASE: crate::tcflag_t = 0o0000004;
246247

247248
// RLIMIT Constants
248249

src/unix/linux_like/linux/arch/powerpc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ pub const TIOCM_DSR: c_int = 0x100;
228228
pub const BOTHER: crate::speed_t = 0o0037;
229229
pub const IBSHIFT: crate::tcflag_t = 16;
230230
pub const IUCLC: crate::tcflag_t = 0o0010000;
231+
pub const XCASE: crate::tcflag_t = 0o0040000;
231232

232233
// RLIMIT Constants
233234

src/unix/linux_like/linux/arch/sparc/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ pub const TIOCM_DSR: c_int = 0x100;
214214
pub const BOTHER: crate::speed_t = 0x1000;
215215
pub const IBSHIFT: crate::tcflag_t = 16;
216216
pub const IUCLC: crate::tcflag_t = 0o0001000;
217+
pub const XCASE: crate::tcflag_t = 0o0000004;
217218

218219
// RLIMIT Constants
219220

src/unix/linux_like/linux/gnu/b64/loongarch64/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,6 @@ pub const ECHOPRT: crate::tcflag_t = 0x00000400;
914914
pub const ECHOCTL: crate::tcflag_t = 0x00000200;
915915
pub const ISIG: crate::tcflag_t = 0x00000001;
916916
pub const ICANON: crate::tcflag_t = 0x00000002;
917-
pub const XCASE: crate::tcflag_t = 0x00000004;
918917
pub const PENDIN: crate::tcflag_t = 0x00004000;
919918
pub const NOFLSH: crate::tcflag_t = 0x00000080;
920919

0 commit comments

Comments
 (0)