Skip to content

Commit 9c0772d

Browse files
committed
Add TIOCSBRK and TIOCCBRK
For all Linux and BSDs.
1 parent 13d4a5d commit 9c0772d

File tree

5 files changed

+5
-6
lines changed

5 files changed

+5
-6
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,8 +1719,6 @@ pub const TIOCGETD: ::c_ulong = 0x4004741a;
17191719
pub const TIOCSETD: ::c_ulong = 0x8004741b;
17201720
pub const TIOCIXON: ::c_uint = 0x20007481;
17211721
pub const TIOCIXOFF: ::c_uint = 0x20007480;
1722-
pub const TIOCSBRK: ::c_uint = 0x2000747b;
1723-
pub const TIOCCBRK: ::c_uint = 0x2000747a;
17241722
pub const TIOCSDTR: ::c_uint = 0x20007479;
17251723
pub const TIOCCDTR: ::c_uint = 0x20007478;
17261724
pub const TIOCGPGRP: ::c_ulong = 0x40047477;

src/unix/bsd/freebsdlike/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,8 +1014,6 @@ pub const TIOCSPGRP: ::c_ulong = 0x80047476;
10141014
pub const TIOCGPGRP: ::c_uint = 0x40047477;
10151015
pub const TIOCCDTR: ::c_uint = 0x20007478;
10161016
pub const TIOCSDTR: ::c_uint = 0x20007479;
1017-
pub const TIOCCBRK: ::c_uint = 0x2000747a;
1018-
pub const TIOCSBRK: ::c_uint = 0x2000747b;
10191017
pub const TTYDISC: ::c_int = 0x0;
10201018
pub const SLIPDISC: ::c_int = 0x4;
10211019
pub const PPPDISC: ::c_int = 0x5;

src/unix/bsd/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,9 @@ pub const BIOCGHDRCMPLT: ::c_ulong = 0x40044274;
450450
pub const BIOCSHDRCMPLT: ::c_ulong = 0x80044275;
451451
pub const SIOCGIFADDR: ::c_ulong = 0xc0206921;
452452

453+
pub const TIOCCBRK: ::c_uint = 0x2000747a;
454+
pub const TIOCSBRK: ::c_uint = 0x2000747b;
455+
453456
f! {
454457
pub fn CMSG_FIRSTHDR(mhdr: *const ::msghdr) -> *mut ::cmsghdr {
455458
if (*mhdr).msg_controllen as usize >= ::mem::size_of::<::cmsghdr>() {

src/unix/linux_like/linux/musl/b32/hexagon.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,6 @@ pub const TCSETX: ::c_int = 21555;
726726
pub const TCSETXF: ::c_int = 21556;
727727
pub const TCSETXW: ::c_int = 21557;
728728
pub const TCXONC: ::c_int = 21514;
729-
pub const TIOCCBRK: ::c_int = 21544;
730729
pub const TIOCCONS: ::c_int = 21533;
731730
pub const TIOCEXCL: ::c_int = 21516;
732731
pub const TIOCGETD: ::c_int = 21540;
@@ -770,7 +769,6 @@ pub const TIOCPKT_IOCTL: ::c_int = 64;
770769
pub const TIOCPKT_NOSTOP: ::c_int = 16;
771770
pub const TIOCPKT_START: ::c_int = 8;
772771
pub const TIOCPKT_STOP: ::c_int = 4;
773-
pub const TIOCSBRK: ::c_int = 21543;
774772
pub const TIOCSCTTY: ::c_int = 21518;
775773
pub const TIOCSERCONFIG: ::c_int = 21587;
776774
pub const TIOCSERGETLSR: ::c_int = 21593;

src/unix/linux_like/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,8 @@ pub const ONOCR: ::tcflag_t = 0o000020;
935935
pub const ONLRET: ::tcflag_t = 0o000040;
936936
pub const OFILL: ::tcflag_t = 0o000100;
937937
pub const OFDEL: ::tcflag_t = 0o000200;
938+
pub const TIOCSBRK: ::c_int = 0x5427;
939+
pub const TIOCCBRK: ::c_int = 0x5428;
938940

939941
pub const CLONE_VM: ::c_int = 0x100;
940942
pub const CLONE_FS: ::c_int = 0x200;

0 commit comments

Comments
 (0)