|
|
20a5ca |
#define _IOC(a,b,c,d) ( ((a)<<30) | ((b)<<8) | (c) | ((d)<<16) )
|
|
|
20a5ca |
#define _IOC_NONE 0U
|
|
|
20a5ca |
#define _IOC_WRITE 1U
|
|
|
20a5ca |
#define _IOC_READ 2U
|
|
|
20a5ca |
|
|
|
20a5ca |
#define _IO(a,b) _IOC(_IOC_NONE,(a),(b),0)
|
|
|
20a5ca |
#define _IOW(a,b,c) _IOC(_IOC_WRITE,(a),(b),sizeof(c))
|
|
|
20a5ca |
#define _IOR(a,b,c) _IOC(_IOC_READ,(a),(b),sizeof(c))
|
|
|
20a5ca |
#define _IOWR(a,b,c) _IOC(_IOC_READ|_IOC_WRITE,(a),(b),sizeof(c))
|
|
|
20a5ca |
|
|
|
20a5ca |
#define TCGETS 0x5401
|
|
|
20a5ca |
#define TCSETS 0x5402
|
|
|
20a5ca |
#define TCSETSW 0x5403
|
|
|
20a5ca |
#define TCSETSF 0x5404
|
|
|
20a5ca |
#define TCGETA 0x5405
|
|
|
20a5ca |
#define TCSETA 0x5406
|
|
|
20a5ca |
#define TCSETAW 0x5407
|
|
|
20a5ca |
#define TCSETAF 0x5408
|
|
|
20a5ca |
#define TCSBRK 0x5409
|
|
|
20a5ca |
#define TCXONC 0x540A
|
|
|
20a5ca |
#define TCFLSH 0x540B
|
|
|
20a5ca |
#define TIOCEXCL 0x540C
|
|
|
20a5ca |
#define TIOCNXCL 0x540D
|
|
|
20a5ca |
#define TIOCSCTTY 0x540E
|
|
|
20a5ca |
#define TIOCGPGRP 0x540F
|
|
|
20a5ca |
#define TIOCSPGRP 0x5410
|
|
|
20a5ca |
#define TIOCOUTQ 0x5411
|
|
|
20a5ca |
#define TIOCSTI 0x5412
|
|
|
20a5ca |
#define TIOCGWINSZ 0x5413
|
|
|
20a5ca |
#define TIOCSWINSZ 0x5414
|
|
|
20a5ca |
#define TIOCMGET 0x5415
|
|
|
20a5ca |
#define TIOCMBIS 0x5416
|
|
|
20a5ca |
#define TIOCMBIC 0x5417
|
|
|
20a5ca |
#define TIOCMSET 0x5418
|
|
|
20a5ca |
#define TIOCGSOFTCAR 0x5419
|
|
|
20a5ca |
#define TIOCSSOFTCAR 0x541A
|
|
|
20a5ca |
#define FIONREAD 0x541B
|
|
|
20a5ca |
#define TIOCINQ FIONREAD
|
|
|
20a5ca |
#define TIOCLINUX 0x541C
|
|
|
20a5ca |
#define TIOCCONS 0x541D
|
|
|
20a5ca |
#define TIOCGSERIAL 0x541E
|
|
|
20a5ca |
#define TIOCSSERIAL 0x541F
|
|
|
20a5ca |
#define TIOCPKT 0x5420
|
|
|
20a5ca |
#define FIONBIO 0x5421
|
|
|
20a5ca |
#define TIOCNOTTY 0x5422
|
|
|
20a5ca |
#define TIOCSETD 0x5423
|
|
|
20a5ca |
#define TIOCGETD 0x5424
|
|
|
20a5ca |
#define TCSBRKP 0x5425
|
|
|
20a5ca |
#define TIOCTTYGSTRUCT 0x5426
|
|
|
20a5ca |
#define TIOCSBRK 0x5427
|
|
|
20a5ca |
#define TIOCCBRK 0x5428
|
|
|
20a5ca |
#define TIOCGSID 0x5429
|
|
|
20a5ca |
#define TIOCGPTN 0x5430
|
|
|
20a5ca |
#define TIOCSPTLCK 0x5431
|
|
|
a4d35b |
#define TCGETX 0x5432
|
|
|
a4d35b |
#define TCSETX 0x5433
|
|
|
a4d35b |
#define TCSETXF 0x5434
|
|
|
a4d35b |
#define TCSETXW 0x5435
|
|
|
20a5ca |
|
|
|
20a5ca |
#define FIONCLEX 0x5450
|
|
|
20a5ca |
#define FIOCLEX 0x5451
|
|
|
20a5ca |
#define FIOASYNC 0x5452
|
|
|
20a5ca |
#define TIOCSERCONFIG 0x5453
|
|
|
20a5ca |
#define TIOCSERGWILD 0x5454
|
|
|
20a5ca |
#define TIOCSERSWILD 0x5455
|
|
|
20a5ca |
#define TIOCGLCKTRMIOS 0x5456
|
|
|
20a5ca |
#define TIOCSLCKTRMIOS 0x5457
|
|
|
20a5ca |
#define TIOCSERGSTRUCT 0x5458
|
|
|
20a5ca |
#define TIOCSERGETLSR 0x5459
|
|
|
20a5ca |
#define TIOCSERGETMULTI 0x545A
|
|
|
20a5ca |
#define TIOCSERSETMULTI 0x545B
|
|
|
20a5ca |
|
|
|
20a5ca |
#define TIOCMIWAIT 0x545C
|
|
|
20a5ca |
#define TIOCGICOUNT 0x545D
|
|
|
20a5ca |
#define TIOCGHAYESESP 0x545E
|
|
|
20a5ca |
#define TIOCSHAYESESP 0x545F
|
|
|
20a5ca |
#define FIOQSIZE 0x5460
|
|
|
20a5ca |
|
|
|
20a5ca |
#define TIOCPKT_DATA 0
|
|
|
20a5ca |
#define TIOCPKT_FLUSHREAD 1
|
|
|
20a5ca |
#define TIOCPKT_FLUSHWRITE 2
|
|
|
20a5ca |
#define TIOCPKT_STOP 4
|
|
|
20a5ca |
#define TIOCPKT_START 8
|
|
|
20a5ca |
#define TIOCPKT_NOSTOP 16
|
|
|
20a5ca |
#define TIOCPKT_DOSTOP 32
|
|
|
a4d35b |
#define TIOCPKT_IOCTL 64
|
|
|
20a5ca |
|
|
|
9b952c |
#define TIOCSER_TEMT 1
|
|
|
20a5ca |
|
|
|
831753 |
@@@struct winsize {
|
|
|
831753 |
@@@ unsigned short ws_row;
|
|
|
831753 |
@@@ unsigned short ws_col;
|
|
|
831753 |
@@@ unsigned short ws_xpixel;
|
|
|
831753 |
@@@ unsigned short ws_ypixel;
|
|
|
831753 |
@@@};
|
|
|
20a5ca |
|
|
|
20a5ca |
#define TIOCM_LE 0x001
|
|
|
20a5ca |
#define TIOCM_DTR 0x002
|
|
|
20a5ca |
#define TIOCM_RTS 0x004
|
|
|
20a5ca |
#define TIOCM_ST 0x008
|
|
|
20a5ca |
#define TIOCM_SR 0x010
|
|
|
20a5ca |
#define TIOCM_CTS 0x020
|
|
|
20a5ca |
#define TIOCM_CAR 0x040
|
|
|
20a5ca |
#define TIOCM_RNG 0x080
|
|
|
20a5ca |
#define TIOCM_DSR 0x100
|
|
|
20a5ca |
#define TIOCM_CD TIOCM_CAR
|
|
|
20a5ca |
#define TIOCM_RI TIOCM_RNG
|
|
|
20a5ca |
#define TIOCM_OUT1 0x2000
|
|
|
20a5ca |
#define TIOCM_OUT2 0x4000
|
|
|
20a5ca |
#define TIOCM_LOOP 0x8000
|
|
|
20a5ca |
#define TIOCM_MODEM_BITS TIOCM_OUT2
|
|
|
20a5ca |
|
|
|
20a5ca |
#define N_TTY 0
|
|
|
20a5ca |
#define N_SLIP 1
|
|
|
20a5ca |
#define N_MOUSE 2
|
|
|
20a5ca |
#define N_PPP 3
|
|
|
20a5ca |
#define N_STRIP 4
|
|
|
20a5ca |
#define N_AX25 5
|
|
|
20a5ca |
#define N_X25 6
|
|
|
20a5ca |
#define N_6PACK 7
|
|
|
20a5ca |
#define N_MASC 8
|
|
|
20a5ca |
#define N_R3964 9
|
|
|
20a5ca |
#define N_PROFIBUS_FDL 10
|
|
|
20a5ca |
#define N_IRDA 11
|
|
|
20a5ca |
#define N_SMSBLOCK 12
|
|
|
20a5ca |
#define N_HDLC 13
|
|
|
20a5ca |
#define N_SYNC_PPP 14
|
|
|
20a5ca |
#define N_HCI 15
|
|
|
20a5ca |
|
|
|
20a5ca |
#define FIOSETOWN 0x8901
|
|
|
20a5ca |
#define SIOCSPGRP 0x8902
|
|
|
20a5ca |
#define FIOGETOWN 0x8903
|
|
|
20a5ca |
#define SIOCGPGRP 0x8904
|
|
|
20a5ca |
#define SIOCATMARK 0x8905
|
|
|
20a5ca |
#define SIOCGSTAMP 0x8906
|
|
|
8a4197 |
#define SIOCGSTAMPNS 0x8907
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCADDRT 0x890B
|
|
|
20a5ca |
#define SIOCDELRT 0x890C
|
|
|
20a5ca |
#define SIOCRTMSG 0x890D
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCGIFNAME 0x8910
|
|
|
20a5ca |
#define SIOCSIFLINK 0x8911
|
|
|
20a5ca |
#define SIOCGIFCONF 0x8912
|
|
|
20a5ca |
#define SIOCGIFFLAGS 0x8913
|
|
|
20a5ca |
#define SIOCSIFFLAGS 0x8914
|
|
|
20a5ca |
#define SIOCGIFADDR 0x8915
|
|
|
20a5ca |
#define SIOCSIFADDR 0x8916
|
|
|
20a5ca |
#define SIOCGIFDSTADDR 0x8917
|
|
|
20a5ca |
#define SIOCSIFDSTADDR 0x8918
|
|
|
20a5ca |
#define SIOCGIFBRDADDR 0x8919
|
|
|
20a5ca |
#define SIOCSIFBRDADDR 0x891a
|
|
|
20a5ca |
#define SIOCGIFNETMASK 0x891b
|
|
|
20a5ca |
#define SIOCSIFNETMASK 0x891c
|
|
|
20a5ca |
#define SIOCGIFMETRIC 0x891d
|
|
|
20a5ca |
#define SIOCSIFMETRIC 0x891e
|
|
|
20a5ca |
#define SIOCGIFMEM 0x891f
|
|
|
20a5ca |
#define SIOCSIFMEM 0x8920
|
|
|
20a5ca |
#define SIOCGIFMTU 0x8921
|
|
|
20a5ca |
#define SIOCSIFMTU 0x8922
|
|
|
20a5ca |
#define SIOCSIFHWADDR 0x8924
|
|
|
20a5ca |
#define SIOCGIFENCAP 0x8925
|
|
|
20a5ca |
#define SIOCSIFENCAP 0x8926
|
|
|
20a5ca |
#define SIOCGIFHWADDR 0x8927
|
|
|
20a5ca |
#define SIOCGIFSLAVE 0x8929
|
|
|
20a5ca |
#define SIOCSIFSLAVE 0x8930
|
|
|
20a5ca |
#define SIOCADDMULTI 0x8931
|
|
|
20a5ca |
#define SIOCDELMULTI 0x8932
|
|
|
20a5ca |
#define SIOCGIFINDEX 0x8933
|
|
|
20a5ca |
#define SIOGIFINDEX SIOCGIFINDEX
|
|
|
20a5ca |
#define SIOCSIFPFLAGS 0x8934
|
|
|
20a5ca |
#define SIOCGIFPFLAGS 0x8935
|
|
|
20a5ca |
#define SIOCDIFADDR 0x8936
|
|
|
20a5ca |
#define SIOCSIFHWBROADCAST 0x8937
|
|
|
20a5ca |
#define SIOCGIFCOUNT 0x8938
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCGIFBR 0x8940
|
|
|
20a5ca |
#define SIOCSIFBR 0x8941
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCGIFTXQLEN 0x8942
|
|
|
20a5ca |
#define SIOCSIFTXQLEN 0x8943
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCDARP 0x8953
|
|
|
20a5ca |
#define SIOCGARP 0x8954
|
|
|
20a5ca |
#define SIOCSARP 0x8955
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCDRARP 0x8960
|
|
|
20a5ca |
#define SIOCGRARP 0x8961
|
|
|
20a5ca |
#define SIOCSRARP 0x8962
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCGIFMAP 0x8970
|
|
|
20a5ca |
#define SIOCSIFMAP 0x8971
|
|
|
20a5ca |
|
|
|
20a5ca |
#define SIOCADDDLCI 0x8980
|
|
|
20a5ca |
#define SIOCDELDLCI 0x8981
|
|
|
20a5ca |
|
|
|
a4d35b |
#define SIOCDEVPRIVATE 0x89F0
|
|
|
a4d35b |
#define SIOCPROTOPRIVATE 0x89E0
|