@@ -2823,46 +2823,46 @@ pub const DT = struct {
28232823
28242824pub const T = struct {
28252825 pub const CGETS = if (is_mips ) 0x540D else 0x5401 ;
2826- pub const CSETS = 0x5402 ;
2827- pub const CSETSW = 0x5403 ;
2828- pub const CSETSF = 0x5404 ;
2829- pub const CGETA = 0x5405 ;
2830- pub const CSETA = 0x5406 ;
2831- pub const CSETAW = 0x5407 ;
2832- pub const CSETAF = 0x5408 ;
2833- pub const CSBRK = 0x5409 ;
2834- pub const CXONC = 0x540A ;
2835- pub const CFLSH = 0x540B ;
2836- pub const IOCEXCL = 0x540C ;
2837- pub const IOCNXCL = 0x540D ;
2838- pub const IOCSCTTY = 0x540E ;
2839- pub const IOCGPGRP = 0x540F ;
2840- pub const IOCSPGRP = 0x5410 ;
2826+ pub const CSETS = if ( is_mips ) 0x540e else 0x5402 ;
2827+ pub const CSETSW = if ( is_mips ) 0x540f else 0x5403 ;
2828+ pub const CSETSF = if ( is_mips ) 0x5410 else 0x5404 ;
2829+ pub const CGETA = if ( is_mips ) 0x5401 else 0x5405 ;
2830+ pub const CSETA = if ( is_mips ) 0x5402 else 0x5406 ;
2831+ pub const CSETAW = if ( is_mips ) 0x5403 else 0x5407 ;
2832+ pub const CSETAF = if ( is_mips ) 0x5404 else 0x5408 ;
2833+ pub const CSBRK = if ( is_mips ) 0x5405 else 0x5409 ;
2834+ pub const CXONC = if ( is_mips ) 0x5406 else 0x540A ;
2835+ pub const CFLSH = if ( is_mips ) 0x5407 else 0x540B ;
2836+ pub const IOCEXCL = if ( is_mips ) 0x740d else 0x540C ;
2837+ pub const IOCNXCL = if ( is_mips ) 0x740e else 0x540D ;
2838+ pub const IOCSCTTY = if ( is_mips ) 0x7472 else 0x540E ;
2839+ pub const IOCGPGRP = if ( is_mips ) 0x5472 else 0x540F ;
2840+ pub const IOCSPGRP = if ( is_mips ) 0x741d else 0x5410 ;
28412841 pub const IOCOUTQ = if (is_mips ) 0x7472 else 0x5411 ;
2842- pub const IOCSTI = 0x5412 ;
2842+ pub const IOCSTI = if ( is_mips ) 0x5472 else 0x5412 ;
28432843 pub const IOCGWINSZ = if (is_mips or is_ppc64 ) 0x40087468 else 0x5413 ;
28442844 pub const IOCSWINSZ = if (is_mips or is_ppc64 ) 0x80087467 else 0x5414 ;
2845- pub const IOCMGET = 0x5415 ;
2846- pub const IOCMBIS = 0x5416 ;
2847- pub const IOCMBIC = 0x5417 ;
2848- pub const IOCMSET = 0x5418 ;
2849- pub const IOCGSOFTCAR = 0x5419 ;
2850- pub const IOCSSOFTCAR = 0x541A ;
2845+ pub const IOCMGET = if ( is_mips ) 0x741d else 0x5415 ;
2846+ pub const IOCMBIS = if ( is_mips ) 0x741b else 0x5416 ;
2847+ pub const IOCMBIC = if ( is_mips ) 0x741c else 0x5417 ;
2848+ pub const IOCMSET = if ( is_mips ) 0x741a else 0x5418 ;
2849+ pub const IOCGSOFTCAR = if ( is_mips ) 0x5481 else 0x5419 ;
2850+ pub const IOCSSOFTCAR = if ( is_mips ) 0x5482 else 0x541A ;
28512851 pub const FIONREAD = if (is_mips ) 0x467F else 0x541B ;
28522852 pub const IOCINQ = FIONREAD ;
2853- pub const IOCLINUX = 0x541C ;
2854- pub const IOCCONS = 0x541D ;
2855- pub const IOCGSERIAL = 0x541E ;
2856- pub const IOCSSERIAL = 0x541F ;
2857- pub const IOCPKT = 0x5420 ;
2858- pub const FIONBIO = 0x5421 ;
2859- pub const IOCNOTTY = 0x5422 ;
2860- pub const IOCSETD = 0x5423 ;
2861- pub const IOCGETD = 0x5424 ;
2862- pub const CSBRKP = 0x5425 ;
2853+ pub const IOCLINUX = if ( is_mips ) 0x5483 else 0x541C ;
2854+ pub const IOCCONS = if ( is_mips ) IOCTL . IOW ( 't' , 120 , c_int ) else 0x541D ;
2855+ pub const IOCGSERIAL = if ( is_mips ) 0x5484 else 0x541E ;
2856+ pub const IOCSSERIAL = if ( is_mips ) 0x5485 else 0x541F ;
2857+ pub const IOCPKT = if ( is_mips ) 0x5470 else 0x5420 ;
2858+ pub const FIONBIO = if ( is_mips ) 0x667e else 0x5421 ;
2859+ pub const IOCNOTTY = if ( is_mips ) 0x5471 else 0x5422 ;
2860+ pub const IOCSETD = if ( is_mips ) 0x7401 else 0x5423 ;
2861+ pub const IOCGETD = if ( is_mips ) 0x7400 else 0x5424 ;
2862+ pub const CSBRKP = if ( is_mips ) 0x5486 else 0x5425 ;
28632863 pub const IOCSBRK = 0x5427 ;
28642864 pub const IOCCBRK = 0x5428 ;
2865- pub const IOCGSID = 0x5429 ;
2865+ pub const IOCGSID = if ( is_mips ) 0x7416 else 0x5429 ;
28662866 pub const IOCGRS485 = 0x542E ;
28672867 pub const IOCSRS485 = 0x542F ;
28682868 pub const IOCGPTN = IOCTL .IOR ('T' , 0x30 , c_uint );
0 commit comments