Skip to content

Commit 4f74e6e

Browse files
committed
Auto merge of #2530 - de-vri-es:tty-cleanup, r=JohnTitor
Move more ioctl constants and flags to linux::arch::* modules. This PR moves a few things to `linux::arch::*` modules and out of libc specific modules. Specifically, it: * Moves the `TIOCM*` ioclt constants and associated flags. * Moves the `BOTHER` flag. * Adds the `IBSHIFT` flag. Without this PR, there are some arch+libc combinations that are missing some of these constants. Since these are all ioctl numbers or arguments to ioctls, they are not specific to any libc flavour. `BOTHER` and `IBSHIFT` don't even appear in glibc or musl headers.
2 parents b5a6e4b + 3fa2809 commit 4f74e6e

File tree

41 files changed

+84
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+84
-327
lines changed

libc-test/build.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,6 +1663,7 @@ fn test_android(target: &str) {
16631663

16641664
// FIXME: conflicts with standard C headers and is tested in
16651665
// `linux_termios.rs` below:
1666+
"IBSHIFT" => true,
16661667
"TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => true,
16671668

16681669
_ => false,
@@ -2915,6 +2916,7 @@ fn test_linux(target: &str) {
29152916
// FIXME: conflicts with glibc headers and is tested in
29162917
// `linux_termios.rs` below:
29172918
| "BOTHER"
2919+
| "IBSHIFT"
29182920
| "TCGETS2"
29192921
| "TCSETS2"
29202922
| "TCSETSW2"
@@ -3274,7 +3276,7 @@ fn test_linux_like_apis(target: &str) {
32743276
.skip_static(|_| true)
32753277
.skip_fn(|_| true)
32763278
.skip_const(|c| match c {
3277-
"BOTHER" => false,
3279+
"BOTHER" | "IBSHIFT" => false,
32783280
"TCGETS2" | "TCSETS2" | "TCSETSW2" | "TCSETSF2" => false,
32793281
_ => true,
32803282
})

libc-test/semver/TODO-linux.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# The following symbols are not not available in some combinations of
22
# musl/gnu/android and/or architecture.
3-
BOTHER
43
KEYCTL_CAPABILITIES
54
KEYCTL_CAPS0_BIG_KEY
65
KEYCTL_CAPS0_CAPABILITIES

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,7 @@ GRPQUOTA
665665
HPFS_SUPER_MAGIC
666666
HUGETLBFS_MAGIC
667667
HUPCL
668+
IBSHIFT
668669
ICANON
669670
ICRNL
670671
IEXTEN

libc-test/semver/linux-gnu-x86_64.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
BOTHER
21
KEYCTL_CAPABILITIES
32
KEYCTL_CAPS0_BIG_KEY
43
KEYCTL_CAPS0_CAPABILITIES

libc-test/semver/linux-i686.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B2500000
22
B3000000
33
B3500000
44
B4000000
5-
BOTHER
65
CIBAUD
76
CS
87
DS

libc-test/semver/linux-powerpc.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B2500000
22
B3000000
33
B3500000
44
B4000000
5-
BOTHER
65
KEYCTL_CAPABILITIES
76
KEYCTL_CAPS0_BIG_KEY
87
KEYCTL_CAPS0_CAPABILITIES

libc-test/semver/linux-powerpc64.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B2500000
22
B3000000
33
B3500000
44
B4000000
5-
BOTHER
65
KEYCTL_CAPABILITIES
76
KEYCTL_CAPS0_BIG_KEY
87
KEYCTL_CAPS0_CAPABILITIES

libc-test/semver/linux-powerpc64le.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B2500000
22
B3000000
33
B3500000
44
B4000000
5-
BOTHER
65
KEYCTL_CAPABILITIES
76
KEYCTL_CAPS0_BIG_KEY
87
KEYCTL_CAPS0_CAPABILITIES

libc-test/semver/linux-s390x.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B2500000
22
B3000000
33
B3500000
44
B4000000
5-
BOTHER
65
CIBAUD
76
KEYCTL_CAPABILITIES
87
KEYCTL_CAPS0_BIG_KEY

libc-test/semver/linux-sparc64.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ B153600
22
B307200
33
B614400
44
B76800
5-
BOTHER
65
CIBAUD
76
KEYCTL_CAPABILITIES
87
KEYCTL_CAPS0_BIG_KEY

0 commit comments

Comments
 (0)