Skip to content

Commit 814ce1e

Browse files
committed
Auto merge of #1095 - xoac:rs485_support, r=alexcrichton
Add TIOCGRS485 and TIOCSRS485 for musl #1094 I need help with adding `TIOCSRS485` and `TIOCSRS485` constants to libc.
2 parents c75ca64 + 88de100 commit 814ce1e

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,9 @@ pub const TIOCMSET: ::c_int = 0x5418;
467467
pub const FIONREAD: ::c_int = 0x541B;
468468
pub const TIOCCONS: ::c_int = 0x541D;
469469

470+
pub const TIOCGRS485: ::c_int = 0x542E;
471+
pub const TIOCSRS485: ::c_int = 0x542F;
472+
470473
pub const POLLWRNORM: ::c_short = 0x100;
471474
pub const POLLWRBAND: ::c_short = 0x200;
472475

src/unix/notbsd/linux/musl/b32/mips.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,9 @@ pub const TIOCMSET: ::c_int = 0x741A;
478478
pub const FIONREAD: ::c_int = 0x467F;
479479
pub const TIOCCONS: ::c_int = 0x80047478;
480480

481+
pub const TIOCGRS485: ::c_int = 0x4020542E;
482+
pub const TIOCSRS485: ::c_int = 0xC020542F;
483+
481484
pub const POLLWRNORM: ::c_short = 0x4;
482485
pub const POLLWRBAND: ::c_short = 0x100;
483486

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ pub const TIOCMSET: ::c_int = 0x5418;
470470
pub const FIONREAD: ::c_int = 0x4004667F;
471471
pub const TIOCCONS: ::c_int = 0x541D;
472472

473+
pub const TIOCGRS485: ::c_int = 0x542e;
474+
pub const TIOCSRS485: ::c_int = 0x542f;
475+
473476
pub const POLLWRNORM: ::c_short = 0x100;
474477
pub const POLLWRBAND: ::c_short = 0x200;
475478

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ pub const TIOCMSET: ::c_int = 0x5418;
481481
pub const FIONREAD: ::c_int = 0x541B;
482482
pub const TIOCCONS: ::c_int = 0x541D;
483483

484+
pub const TIOCGRS485: ::c_int = 0x542E;
485+
pub const TIOCSRS485: ::c_int = 0x542F;
486+
484487
pub const POLLWRNORM: ::c_short = 0x100;
485488
pub const POLLWRBAND: ::c_short = 0x200;
486489

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ pub const TIOCMSET: ::c_int = 0x5418;
459459
pub const FIONREAD: ::c_int = 0x541B;
460460
pub const TIOCCONS: ::c_int = 0x541D;
461461

462+
pub const TIOCGRS485: ::c_int = 0x542E;
463+
pub const TIOCSRS485: ::c_int = 0x542F;
464+
462465
pub const TIOCM_LE: ::c_int = 0x001;
463466
pub const TIOCM_DTR: ::c_int = 0x002;
464467
pub const TIOCM_RTS: ::c_int = 0x004;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -493,6 +493,9 @@ pub const TIOCM_DSR: ::c_ulong = 0x100;
493493
pub const TIOCM_CD: ::c_ulong = TIOCM_CAR;
494494
pub const TIOCM_RI: ::c_ulong = TIOCM_RNG;
495495

496+
pub const TIOCGRS485: ::c_ulong = 0x542E;
497+
pub const TIOCSRS485: ::c_ulong = 0x542F;
498+
496499
pub const RLIMIT_NLIMITS: ::c_int = 15;
497500
pub const TIOCINQ: ::c_ulong = ::FIONREAD;
498501
pub const MCL_CURRENT: ::c_int = 0x2000;

0 commit comments

Comments
 (0)