Added defines from ttycom.h for dragonfly and freebsd.
This commit is contained in:
parent
cb7f667321
commit
2d108fe77d
|
@ -370,6 +370,8 @@ pub const LC_ALL_MASK: ::c_int = LC_COLLATE_MASK
|
|||
| LC_NUMERIC_MASK
|
||||
| LC_TIME_MASK;
|
||||
|
||||
pub const TIOCSIG: ::c_uint = 0x2000745f;
|
||||
|
||||
extern {
|
||||
pub fn mprotect(addr: *mut ::c_void, len: ::size_t, prot: ::c_int)
|
||||
-> ::c_int;
|
||||
|
|
|
@ -316,6 +316,11 @@ pub const CTL_P1003_1B_SEM_NSEMS_MAX: ::c_int = 22;
|
|||
pub const CTL_P1003_1B_SEM_VALUE_MAX: ::c_int = 23;
|
||||
pub const CTL_P1003_1B_SIGQUEUE_MAX: ::c_int = 24;
|
||||
pub const CTL_P1003_1B_TIMER_MAX: ::c_int = 25;
|
||||
pub const TIOCGPTN: ::c_uint = 0x4004740f;
|
||||
pub const TIOCPTMASTER: ::c_uint = 0x2000741c;
|
||||
pub const TIOCSIG: ::c_uint = 0x2004745f;
|
||||
pub const TIOCM_DCD: ::c_int = 0x40;
|
||||
pub const H4DISC: ::c_int = 0x7;
|
||||
|
||||
// The *_MAXID constants never should've been used outside of the
|
||||
// FreeBSD base system. And with the exception of CTL_P1003_1B_MAXID,
|
||||
|
|
|
@ -688,8 +688,68 @@ pub const LOG_SECURITY: ::c_int = 13 << 3;
|
|||
pub const LOG_CONSOLE: ::c_int = 14 << 3;
|
||||
pub const LOG_NFACILITIES: ::c_int = 24;
|
||||
|
||||
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
|
||||
pub const TIOCEXCL: ::c_uint = 0x2000740d;
|
||||
pub const TIOCNXCL: ::c_uint = 0x2000740e;
|
||||
pub const TIOCFLUSH: ::c_ulong = 0x80047410;
|
||||
pub const TIOCGETA: ::c_uint = 0x402c7413;
|
||||
pub const TIOCSETA: ::c_ulong = 0x802c7414;
|
||||
pub const TIOCSETAW: ::c_ulong = 0x802c7415;
|
||||
pub const TIOCSETAF: ::c_ulong = 0x802c7416;
|
||||
pub const TIOCGETD: ::c_uint = 0x4004741a;
|
||||
pub const TIOCSETD: ::c_ulong = 0x8004741b;
|
||||
pub const TIOCGDRAINWAIT: ::c_uint = 0x40047456;
|
||||
pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457;
|
||||
pub const TIOCTIMESTAMP: ::c_uint = 0x40107459;
|
||||
pub const TIOCMGDTRWAIT: ::c_uint = 0x4004745a;
|
||||
pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b;
|
||||
pub const TIOCDRAIN: ::c_uint = 0x2000745e;
|
||||
pub const TIOCEXT: ::c_ulong = 0x80047460;
|
||||
pub const TIOCSCTTY: ::c_uint = 0x20007461;
|
||||
pub const TIOCCONS: ::c_ulong = 0x80047462;
|
||||
pub const TIOCGSID: ::c_uint = 0x40047463;
|
||||
pub const TIOCSTAT: ::c_uint = 0x20007465;
|
||||
pub const TIOCUCNTL: ::c_ulong = 0x80047466;
|
||||
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
|
||||
pub const TIOCGWINSZ: ::c_uint = 0x40087468;
|
||||
pub const TIOCMGET: ::c_uint = 0x4004746a;
|
||||
pub const TIOCM_LE: ::c_int = 0x1;
|
||||
pub const TIOCM_DTR: ::c_int = 0x2;
|
||||
pub const TIOCM_RTS: ::c_int = 0x4;
|
||||
pub const TIOCM_ST: ::c_int = 0x8;
|
||||
pub const TIOCM_SR: ::c_int = 0x10;
|
||||
pub const TIOCM_CTS: ::c_int = 0x20;
|
||||
pub const TIOCM_RI: ::c_int = 0x80;
|
||||
pub const TIOCM_DSR: ::c_int = 0x100;
|
||||
pub const TIOCM_CD: ::c_int = 0x40;
|
||||
pub const TIOCM_CAR: ::c_int = 0x40;
|
||||
pub const TIOCM_RNG: ::c_int = 0x80;
|
||||
pub const TIOCMBIC: ::c_ulong = 0x8004746b;
|
||||
pub const TIOCMBIS: ::c_ulong = 0x8004746c;
|
||||
pub const TIOCMSET: ::c_ulong = 0x8004746d;
|
||||
pub const TIOCSTART: ::c_uint = 0x2000746e;
|
||||
pub const TIOCSTOP: ::c_uint = 0x2000746f;
|
||||
pub const TIOCPKT: ::c_ulong = 0x80047470;
|
||||
pub const TIOCPKT_DATA: ::c_int = 0x0;
|
||||
pub const TIOCPKT_FLUSHREAD: ::c_int = 0x1;
|
||||
pub const TIOCPKT_FLUSHWRITE: ::c_int = 0x2;
|
||||
pub const TIOCPKT_STOP: ::c_int = 0x4;
|
||||
pub const TIOCPKT_START: ::c_int = 0x8;
|
||||
pub const TIOCPKT_NOSTOP: ::c_int = 0x10;
|
||||
pub const TIOCPKT_DOSTOP: ::c_int = 0x20;
|
||||
pub const TIOCPKT_IOCTL: ::c_int = 0x40;
|
||||
pub const TIOCNOTTY: ::c_uint = 0x20007471;
|
||||
pub const TIOCSTI: ::c_ulong = 0x80017472;
|
||||
pub const TIOCOUTQ: ::c_uint = 0x40047473;
|
||||
pub const TIOCSPGRP: ::c_ulong = 0x80047476;
|
||||
pub const TIOCGPGRP: ::c_uint = 0x40047477;
|
||||
pub const TIOCCDTR: ::c_uint = 0x20007478;
|
||||
pub const TIOCSDTR: ::c_uint = 0x20007479;
|
||||
pub const TIOCCBRK: ::c_uint = 0x2000747a;
|
||||
pub const TIOCSBRK: ::c_uint = 0x2000747b;
|
||||
pub const TTYDISC: ::c_int = 0x0;
|
||||
pub const SLIPDISC: ::c_int = 0x4;
|
||||
pub const PPPDISC: ::c_int = 0x5;
|
||||
pub const NETGRAPHDISC: ::c_int = 0x6;
|
||||
|
||||
pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t;
|
||||
|
||||
|
|
Loading…
Reference in a new issue