Skip to content

Commit 0e39a54

Browse files
committed
Auto merge of #1380 - gnzlbg:missing_tiors485, r=gnzlbg
Add missing TIOCGRS485, TIOCSRS485 constants to Linux Closes #1094 .
2 parents 0e702c1 + 706b101 commit 0e39a54

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed

src/unix/notbsd/linux/musl/b64/x86_64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,9 @@ pub const O_DIRECTORY: ::c_int = 0x10000;
490490
pub const O_LARGEFILE: ::c_int = 0;
491491
pub const O_NOFOLLOW: ::c_int = 0x20000;
492492

493+
pub const TIOCGRS485: ::c_int = 0x542E;
494+
pub const TIOCSRS485: ::c_int = 0x542F;
495+
493496
pub const SIGSTKSZ: ::size_t = 8192;
494497
pub const MINSIGSTKSZ: ::size_t = 2048;
495498

src/unix/notbsd/linux/other/b32/arm.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,8 @@ pub const TIOCSPGRP: ::c_ulong = 0x5410;
252252
pub const TIOCOUTQ: ::c_ulong = 0x5411;
253253
pub const TIOCGWINSZ: ::c_ulong = 0x5413;
254254
pub const TIOCSWINSZ: ::c_ulong = 0x5414;
255+
pub const TIOCGRS485: ::c_int = 0x542E;
256+
pub const TIOCSRS485: ::c_int = 0x542F;
255257
pub const FIONREAD: ::c_ulong = 0x541B;
256258

257259
// Syscall table

src/unix/notbsd/linux/other/b32/powerpc.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ pub const TIOCSPGRP: ::c_ulong = 0x80047476;
241241
pub const TIOCOUTQ: ::c_ulong = 0x40047473;
242242
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
243243
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
244+
pub const TIOCGRS485: ::c_int = 0x542e;
245+
pub const TIOCSRS485: ::c_int = 0x542f;
244246
pub const FIONREAD: ::c_ulong = 0x4004667f;
245247

246248
pub const SYS_restart_syscall: ::c_long = 0;

src/unix/notbsd/linux/other/b32/x86.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,6 +458,8 @@ pub const TIOCSPGRP: ::c_ulong = 0x5410;
458458
pub const TIOCOUTQ: ::c_ulong = 0x5411;
459459
pub const TIOCGWINSZ: ::c_ulong = 0x5413;
460460
pub const TIOCSWINSZ: ::c_ulong = 0x5414;
461+
pub const TIOCGRS485: ::c_int = 0x542E;
462+
pub const TIOCSRS485: ::c_int = 0x542F;
461463
pub const FIONREAD: ::c_ulong = 0x541B;
462464

463465
// Syscall table

src/unix/notbsd/linux/other/b64/aarch64.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ pub const __SIZEOF_PTHREAD_RWLOCK_T: usize = 56;
147147

148148
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
149149
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
150+
pub const TIOCGRS485: ::c_int = 0x542E;
151+
pub const TIOCSRS485: ::c_int = 0x542F;
150152

151153
pub const RLIMIT_NOFILE: ::c_int = 7;
152154
pub const RLIMIT_NPROC: ::c_int = 6;

src/unix/notbsd/linux/other/b64/powerpc64.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,8 @@ pub const TIOCMBIS: ::c_ulong = 0x5416;
344344
pub const TIOCMBIC: ::c_ulong = 0x5417;
345345
pub const TIOCMSET: ::c_ulong = 0x5418;
346346
pub const TIOCCONS: ::c_ulong = 0x541D;
347+
pub const TIOCGRS485: ::c_int = 0x542E;
348+
pub const TIOCSRS485: ::c_int = 0x542F;
347349

348350
pub const SFD_CLOEXEC: ::c_int = 0x080000;
349351

src/unix/notbsd/linux/other/b64/x86_64.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ cfg_if! {
332332

333333
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
334334
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
335+
pub const TIOCGRS485: ::c_int = 0x542E;
336+
pub const TIOCSRS485: ::c_int = 0x542F;
335337

336338
pub const RLIMIT_NOFILE: ::c_int = 7;
337339
pub const RLIMIT_NPROC: ::c_int = 6;

0 commit comments

Comments
 (0)