Fix ioctl types for non-x86 musl
This commit is contained in:
parent
bb4dabbc73
commit
aa4a2c6ec2
@ -273,36 +273,36 @@ pub const IEXTEN: ::tcflag_t = 0x00008000;
|
||||
pub const TOSTOP: ::tcflag_t = 0x00000100;
|
||||
pub const FLUSHO: ::tcflag_t = 0x00001000;
|
||||
|
||||
pub const TCGETS: ::c_ulong = 0x5401;
|
||||
pub const TCSETS: ::c_ulong = 0x5402;
|
||||
pub const TCSETSW: ::c_ulong = 0x5403;
|
||||
pub const TCSETSF: ::c_ulong = 0x5404;
|
||||
pub const TCGETA: ::c_ulong = 0x5405;
|
||||
pub const TCSETA: ::c_ulong = 0x5406;
|
||||
pub const TCSETAW: ::c_ulong = 0x5407;
|
||||
pub const TCSETAF: ::c_ulong = 0x5408;
|
||||
pub const TCSBRK: ::c_ulong = 0x5409;
|
||||
pub const TCXONC: ::c_ulong = 0x540A;
|
||||
pub const TCFLSH: ::c_ulong = 0x540B;
|
||||
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
|
||||
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
|
||||
pub const TIOCLINUX: ::c_ulong = 0x541C;
|
||||
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
|
||||
pub const TIOCEXCL: ::c_ulong = 0x540C;
|
||||
pub const TIOCNXCL: ::c_ulong = 0x540D;
|
||||
pub const TIOCSCTTY: ::c_ulong = 0x540E;
|
||||
pub const TIOCGPGRP: ::c_ulong = 0x540F;
|
||||
pub const TIOCSPGRP: ::c_ulong = 0x5410;
|
||||
pub const TIOCOUTQ: ::c_ulong = 0x5411;
|
||||
pub const TIOCSTI: ::c_ulong = 0x5412;
|
||||
pub const TIOCGWINSZ: ::c_ulong = 0x5413;
|
||||
pub const TIOCSWINSZ: ::c_ulong = 0x5414;
|
||||
pub const TIOCMGET: ::c_ulong = 0x5415;
|
||||
pub const TIOCMBIS: ::c_ulong = 0x5416;
|
||||
pub const TIOCMBIC: ::c_ulong = 0x5417;
|
||||
pub const TIOCMSET: ::c_ulong = 0x5418;
|
||||
pub const FIONREAD: ::c_ulong = 0x541B;
|
||||
pub const TIOCCONS: ::c_ulong = 0x541D;
|
||||
pub const TCGETS: ::c_int = 0x5401;
|
||||
pub const TCSETS: ::c_int = 0x5402;
|
||||
pub const TCSETSW: ::c_int = 0x5403;
|
||||
pub const TCSETSF: ::c_int = 0x5404;
|
||||
pub const TCGETA: ::c_int = 0x5405;
|
||||
pub const TCSETA: ::c_int = 0x5406;
|
||||
pub const TCSETAW: ::c_int = 0x5407;
|
||||
pub const TCSETAF: ::c_int = 0x5408;
|
||||
pub const TCSBRK: ::c_int = 0x5409;
|
||||
pub const TCXONC: ::c_int = 0x540A;
|
||||
pub const TCFLSH: ::c_int = 0x540B;
|
||||
pub const TIOCGSOFTCAR: ::c_int = 0x5419;
|
||||
pub const TIOCSSOFTCAR: ::c_int = 0x541A;
|
||||
pub const TIOCLINUX: ::c_int = 0x541C;
|
||||
pub const TIOCGSERIAL: ::c_int = 0x541E;
|
||||
pub const TIOCEXCL: ::c_int = 0x540C;
|
||||
pub const TIOCNXCL: ::c_int = 0x540D;
|
||||
pub const TIOCSCTTY: ::c_int = 0x540E;
|
||||
pub const TIOCGPGRP: ::c_int = 0x540F;
|
||||
pub const TIOCSPGRP: ::c_int = 0x5410;
|
||||
pub const TIOCOUTQ: ::c_int = 0x5411;
|
||||
pub const TIOCSTI: ::c_int = 0x5412;
|
||||
pub const TIOCGWINSZ: ::c_int = 0x5413;
|
||||
pub const TIOCSWINSZ: ::c_int = 0x5414;
|
||||
pub const TIOCMGET: ::c_int = 0x5415;
|
||||
pub const TIOCMBIS: ::c_int = 0x5416;
|
||||
pub const TIOCMBIC: ::c_int = 0x5417;
|
||||
pub const TIOCMSET: ::c_int = 0x5418;
|
||||
pub const FIONREAD: ::c_int = 0x541B;
|
||||
pub const TIOCCONS: ::c_int = 0x541D;
|
||||
|
||||
pub const SYS_gettid: ::c_long = 224;
|
||||
pub const SYS_perf_event_open: ::c_long = 364;
|
||||
|
@ -273,35 +273,35 @@ pub const IEXTEN: ::tcflag_t = 0x00008000;
|
||||
pub const TOSTOP: ::tcflag_t = 0x00000100;
|
||||
pub const FLUSHO: ::tcflag_t = 0x00001000;
|
||||
|
||||
pub const TCGETS: ::c_ulong = 0x5401;
|
||||
pub const TCSETS: ::c_ulong = 0x5402;
|
||||
pub const TCSETSW: ::c_ulong = 0x5403;
|
||||
pub const TCSETSF: ::c_ulong = 0x5404;
|
||||
pub const TCGETA: ::c_ulong = 0x5405;
|
||||
pub const TCSETA: ::c_ulong = 0x5406;
|
||||
pub const TCSETAW: ::c_ulong = 0x5407;
|
||||
pub const TCSETAF: ::c_ulong = 0x5408;
|
||||
pub const TCSBRK: ::c_ulong = 0x5409;
|
||||
pub const TCXONC: ::c_ulong = 0x540A;
|
||||
pub const TCFLSH: ::c_ulong = 0x540B;
|
||||
pub const TIOCGSOFTCAR: ::c_ulong = 0x5419;
|
||||
pub const TIOCSSOFTCAR: ::c_ulong = 0x541A;
|
||||
pub const TIOCLINUX: ::c_ulong = 0x541C;
|
||||
pub const TIOCGSERIAL: ::c_ulong = 0x541E;
|
||||
pub const TIOCEXCL: ::c_ulong = 0x540C;
|
||||
pub const TIOCNXCL: ::c_ulong = 0x540D;
|
||||
pub const TIOCSCTTY: ::c_ulong = 0x540E;
|
||||
pub const TIOCGPGRP: ::c_ulong = 0x540F;
|
||||
pub const TIOCSPGRP: ::c_ulong = 0x5410;
|
||||
pub const TIOCOUTQ: ::c_ulong = 0x5411;
|
||||
pub const TIOCSTI: ::c_ulong = 0x5412;
|
||||
pub const TIOCGWINSZ: ::c_ulong = 0x5413;
|
||||
pub const TIOCSWINSZ: ::c_ulong = 0x5414;
|
||||
pub const TIOCMGET: ::c_ulong = 0x5415;
|
||||
pub const TIOCMBIS: ::c_ulong = 0x5416;
|
||||
pub const TIOCMBIC: ::c_ulong = 0x5417;
|
||||
pub const TIOCMSET: ::c_ulong = 0x5418;
|
||||
pub const FIONREAD: ::c_ulong = 0x541B;
|
||||
pub const TIOCCONS: ::c_ulong = 0x541D;
|
||||
pub const TCGETS: ::c_int = 0x5401;
|
||||
pub const TCSETS: ::c_int = 0x5402;
|
||||
pub const TCSETSW: ::c_int = 0x5403;
|
||||
pub const TCSETSF: ::c_int = 0x5404;
|
||||
pub const TCGETA: ::c_int = 0x5405;
|
||||
pub const TCSETA: ::c_int = 0x5406;
|
||||
pub const TCSETAW: ::c_int = 0x5407;
|
||||
pub const TCSETAF: ::c_int = 0x5408;
|
||||
pub const TCSBRK: ::c_int = 0x5409;
|
||||
pub const TCXONC: ::c_int = 0x540A;
|
||||
pub const TCFLSH: ::c_int = 0x540B;
|
||||
pub const TIOCGSOFTCAR: ::c_int = 0x5419;
|
||||
pub const TIOCSSOFTCAR: ::c_int = 0x541A;
|
||||
pub const TIOCLINUX: ::c_int = 0x541C;
|
||||
pub const TIOCGSERIAL: ::c_int = 0x541E;
|
||||
pub const TIOCEXCL: ::c_int = 0x540C;
|
||||
pub const TIOCNXCL: ::c_int = 0x540D;
|
||||
pub const TIOCSCTTY: ::c_int = 0x540E;
|
||||
pub const TIOCGPGRP: ::c_int = 0x540F;
|
||||
pub const TIOCSPGRP: ::c_int = 0x5410;
|
||||
pub const TIOCOUTQ: ::c_int = 0x5411;
|
||||
pub const TIOCSTI: ::c_int = 0x5412;
|
||||
pub const TIOCGWINSZ: ::c_int = 0x5413;
|
||||
pub const TIOCSWINSZ: ::c_int = 0x5414;
|
||||
pub const TIOCMGET: ::c_int = 0x5415;
|
||||
pub const TIOCMBIS: ::c_int = 0x5416;
|
||||
pub const TIOCMBIC: ::c_int = 0x5417;
|
||||
pub const TIOCMSET: ::c_int = 0x5418;
|
||||
pub const FIONREAD: ::c_int = 0x541B;
|
||||
pub const TIOCCONS: ::c_int = 0x541D;
|
||||
|
||||
pub const SYS_gettid: ::c_long = 224; // Valid for arm (32-bit) and x86 (32-bit)
|
||||
|
@ -272,36 +272,36 @@ pub const IEXTEN: ::tcflag_t = 0o000400;
|
||||
pub const TOSTOP: ::tcflag_t = 0o100000;
|
||||
pub const FLUSHO: ::tcflag_t = 0o020000;
|
||||
|
||||
pub const TCGETS: ::c_ulong = 0x540D;
|
||||
pub const TCSETS: ::c_ulong = 0x540E;
|
||||
pub const TCSETSW: ::c_ulong = 0x540F;
|
||||
pub const TCSETSF: ::c_ulong = 0x5410;
|
||||
pub const TCGETA: ::c_ulong = 0x5401;
|
||||
pub const TCSETA: ::c_ulong = 0x5402;
|
||||
pub const TCSETAW: ::c_ulong = 0x5403;
|
||||
pub const TCSETAF: ::c_ulong = 0x5404;
|
||||
pub const TCSBRK: ::c_ulong = 0x5405;
|
||||
pub const TCXONC: ::c_ulong = 0x5406;
|
||||
pub const TCFLSH: ::c_ulong = 0x5407;
|
||||
pub const TIOCGSOFTCAR: ::c_ulong = 0x5481;
|
||||
pub const TIOCSSOFTCAR: ::c_ulong = 0x5482;
|
||||
pub const TIOCLINUX: ::c_ulong = 0x5483;
|
||||
pub const TIOCGSERIAL: ::c_ulong = 0x5484;
|
||||
pub const TIOCEXCL: ::c_ulong = 0x740D;
|
||||
pub const TIOCNXCL: ::c_ulong = 0x740E;
|
||||
pub const TIOCSCTTY: ::c_ulong = 0x5480;
|
||||
pub const TIOCGPGRP: ::c_ulong = 0x40047477;
|
||||
pub const TIOCSPGRP: ::c_ulong = 0x80047476;
|
||||
pub const TIOCOUTQ: ::c_ulong = 0x7472;
|
||||
pub const TIOCSTI: ::c_ulong = 0x5472;
|
||||
pub const TIOCGWINSZ: ::c_ulong = 0x40087468;
|
||||
pub const TIOCSWINSZ: ::c_ulong = 0x80087467;
|
||||
pub const TIOCMGET: ::c_ulong = 0x741D;
|
||||
pub const TIOCMBIS: ::c_ulong = 0x741B;
|
||||
pub const TIOCMBIC: ::c_ulong = 0x741C;
|
||||
pub const TIOCMSET: ::c_ulong = 0x741D;
|
||||
pub const FIONREAD: ::c_ulong = 0x467F;
|
||||
pub const TIOCCONS: ::c_ulong = 0x80047478;
|
||||
pub const TCGETS: ::c_int = 0x540D;
|
||||
pub const TCSETS: ::c_int = 0x540E;
|
||||
pub const TCSETSW: ::c_int = 0x540F;
|
||||
pub const TCSETSF: ::c_int = 0x5410;
|
||||
pub const TCGETA: ::c_int = 0x5401;
|
||||
pub const TCSETA: ::c_int = 0x5402;
|
||||
pub const TCSETAW: ::c_int = 0x5403;
|
||||
pub const TCSETAF: ::c_int = 0x5404;
|
||||
pub const TCSBRK: ::c_int = 0x5405;
|
||||
pub const TCXONC: ::c_int = 0x5406;
|
||||
pub const TCFLSH: ::c_int = 0x5407;
|
||||
pub const TIOCGSOFTCAR: ::c_int = 0x5481;
|
||||
pub const TIOCSSOFTCAR: ::c_int = 0x5482;
|
||||
pub const TIOCLINUX: ::c_int = 0x5483;
|
||||
pub const TIOCGSERIAL: ::c_int = 0x5484;
|
||||
pub const TIOCEXCL: ::c_int = 0x740D;
|
||||
pub const TIOCNXCL: ::c_int = 0x740E;
|
||||
pub const TIOCSCTTY: ::c_int = 0x5480;
|
||||
pub const TIOCGPGRP: ::c_int = 0x40047477;
|
||||
pub const TIOCSPGRP: ::c_int = 0x80047476;
|
||||
pub const TIOCOUTQ: ::c_int = 0x7472;
|
||||
pub const TIOCSTI: ::c_int = 0x5472;
|
||||
pub const TIOCGWINSZ: ::c_int = 0x40087468;
|
||||
pub const TIOCSWINSZ: ::c_int = 0x80087467;
|
||||
pub const TIOCMGET: ::c_int = 0x741D;
|
||||
pub const TIOCMBIS: ::c_int = 0x741B;
|
||||
pub const TIOCMBIC: ::c_int = 0x741C;
|
||||
pub const TIOCMSET: ::c_int = 0x741D;
|
||||
pub const FIONREAD: ::c_int = 0x467F;
|
||||
pub const TIOCCONS: ::c_int = 0x80047478;
|
||||
|
||||
pub const SYS_gettid: ::c_long = 4222; // Valid for O32
|
||||
pub const SYS_perf_event_open: ::c_long = 4333; // Valid for O32
|
||||
|
Loading…
Reference in New Issue
Block a user