Skip to content

Commit a4fb64a

Browse files
committed
Auto merge of #919 - Susurrus:netbsd_termios_ioctl, r=alexcrichton
Add termios ioctl constants to NetBSD These are all declared as `c_ulong` because that's what BSD's `ioctl()` function is declared with.
2 parents bbda50d + 3dd2162 commit a4fb64a

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,21 @@ pub const CRTS_IFLOW: ::tcflag_t = CRTSCTS;
532532
pub const CCTS_OFLOW: ::tcflag_t = CRTSCTS;
533533
pub const OCRNL: ::tcflag_t = 0x10;
534534

535+
pub const TIOCEXCL: ::c_ulong = 0x2000740d;
536+
pub const TIOCNXCL: ::c_ulong = 0x2000740e;
537+
pub const TIOCFLUSH: ::c_ulong = 0x80047410;
538+
pub const TIOCGETA: ::c_ulong = 0x402c7413;
539+
pub const TIOCSETA: ::c_ulong = 0x802c7414;
540+
pub const TIOCSETAW: ::c_ulong = 0x802c7415;
541+
pub const TIOCSETAF: ::c_ulong = 0x802c7416;
542+
pub const TIOCGETD: ::c_ulong = 0x4004741a;
543+
pub const TIOCSETD: ::c_ulong = 0x8004741b;
544+
pub const TIOCMGET: ::c_ulong = 0x4004746a;
545+
pub const TIOCMBIC: ::c_ulong = 0x8004746b;
546+
pub const TIOCMBIS: ::c_ulong = 0x8004746c;
547+
pub const TIOCMSET: ::c_ulong = 0x8004746d;
548+
pub const TIOCSTART: ::c_ulong = 0x2000746e;
549+
pub const TIOCSTOP: ::c_ulong = 0x2000746f;
535550
pub const TIOCM_LE: ::c_int = 0o0001;
536551
pub const TIOCM_DTR: ::c_int = 0o0002;
537552
pub const TIOCM_RTS: ::c_int = 0o0004;

0 commit comments

Comments
 (0)