Skip to content

Commit bd967ef

Browse files
committed
Auto merge of #2548 - Mek101:master, r=Amanieu
Add linux ioctl constansts: BLKSSZGET and BLKPBSZGET Fixes #2500
2 parents fb3dec2 + 6b0dc21 commit bd967ef

File tree

5 files changed

+14
-0
lines changed

5 files changed

+14
-0
lines changed

libc-test/semver/linux.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,8 @@ B460800
189189
B500000
190190
B576000
191191
B921600
192+
BLKPBSZGET
193+
BLKSSZGET
192194
BOTHER
193195
BS0
194196
BS1

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,6 @@ pub const TIOCM_DSR: ::c_int = 0x100;
135135

136136
pub const BOTHER: ::speed_t = 0o010000;
137137
pub const IBSHIFT: ::tcflag_t = 16;
138+
139+
pub const BLKSSZGET: ::c_int = 0x1268;
140+
pub const BLKPBSZGET: ::c_int = 0x127B;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,6 @@ pub const TIOCM_DSR: ::c_int = 0x400;
131131

132132
pub const BOTHER: ::speed_t = 0o010000;
133133
pub const IBSHIFT: ::tcflag_t = 16;
134+
135+
pub const BLKSSZGET: ::c_int = 0x20001268;
136+
pub const BLKPBSZGET: ::c_int = 0x2000127B;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,6 @@ pub const TIOCM_DSR: ::c_int = 0x100;
109109

110110
pub const BOTHER: ::speed_t = 0o0037;
111111
pub const IBSHIFT: ::tcflag_t = 16;
112+
113+
pub const BLKSSZGET: ::c_int = 0x20001268;
114+
pub const BLKPBSZGET: ::c_int = 0x2000127B;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,6 @@ pub const TIOCM_DSR: ::c_int = 0x100;
123123

124124
pub const BOTHER: ::speed_t = 0x1000;
125125
pub const IBSHIFT: ::tcflag_t = 16;
126+
127+
pub const BLKSSZGET: ::c_int = 0x20001268;
128+
pub const BLKPBSZGET: ::c_int = 0x2000127B;

0 commit comments

Comments
 (0)