1
0

ioctl.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #ifndef _SYS_IOCTL_H
  2. #define _SYS_IOCTL_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. #define __NEED_struct_winsize
  7. #include <bits/alltypes.h>
  8. #include <bits/ioctl.h>
  9. #define N_TTY 0
  10. #define N_SLIP 1
  11. #define N_MOUSE 2
  12. #define N_PPP 3
  13. #define N_STRIP 4
  14. #define N_AX25 5
  15. #define N_X25 6
  16. #define N_6PACK 7
  17. #define N_MASC 8
  18. #define N_R3964 9
  19. #define N_PROFIBUS_FDL 10
  20. #define N_IRDA 11
  21. #define N_SMSBLOCK 12
  22. #define N_HDLC 13
  23. #define N_SYNC_PPP 14
  24. #define N_HCI 15
  25. #define N_GIGASET_M101 16
  26. #define N_SLCAN 17
  27. #define N_PPS 18
  28. #define N_V253 19
  29. #define N_CAIF 20
  30. #define N_GSM0710 21
  31. #define N_TI_WL 22
  32. #define N_TRACESINK 23
  33. #define N_TRACEROUTER 24
  34. #define N_NCI 25
  35. #define N_SPEAKUP 26
  36. #define N_NULL 27
  37. #define TIOCPKT_DATA 0
  38. #define TIOCPKT_FLUSHREAD 1
  39. #define TIOCPKT_FLUSHWRITE 2
  40. #define TIOCPKT_STOP 4
  41. #define TIOCPKT_START 8
  42. #define TIOCPKT_NOSTOP 16
  43. #define TIOCPKT_DOSTOP 32
  44. #define TIOCPKT_IOCTL 64
  45. #define TIOCSER_TEMT 1
  46. #define SIOCADDRT 0x890B
  47. #define SIOCDELRT 0x890C
  48. #define SIOCRTMSG 0x890D
  49. #define SIOCGIFNAME 0x8910
  50. #define SIOCSIFLINK 0x8911
  51. #define SIOCGIFCONF 0x8912
  52. #define SIOCGIFFLAGS 0x8913
  53. #define SIOCSIFFLAGS 0x8914
  54. #define SIOCGIFADDR 0x8915
  55. #define SIOCSIFADDR 0x8916
  56. #define SIOCGIFDSTADDR 0x8917
  57. #define SIOCSIFDSTADDR 0x8918
  58. #define SIOCGIFBRDADDR 0x8919
  59. #define SIOCSIFBRDADDR 0x891a
  60. #define SIOCGIFNETMASK 0x891b
  61. #define SIOCSIFNETMASK 0x891c
  62. #define SIOCGIFMETRIC 0x891d
  63. #define SIOCSIFMETRIC 0x891e
  64. #define SIOCGIFMEM 0x891f
  65. #define SIOCSIFMEM 0x8920
  66. #define SIOCGIFMTU 0x8921
  67. #define SIOCSIFMTU 0x8922
  68. #define SIOCSIFNAME 0x8923
  69. #define SIOCSIFHWADDR 0x8924
  70. #define SIOCGIFENCAP 0x8925
  71. #define SIOCSIFENCAP 0x8926
  72. #define SIOCGIFHWADDR 0x8927
  73. #define SIOCGIFSLAVE 0x8929
  74. #define SIOCSIFSLAVE 0x8930
  75. #define SIOCADDMULTI 0x8931
  76. #define SIOCDELMULTI 0x8932
  77. #define SIOCGIFINDEX 0x8933
  78. #define SIOGIFINDEX SIOCGIFINDEX
  79. #define SIOCSIFPFLAGS 0x8934
  80. #define SIOCGIFPFLAGS 0x8935
  81. #define SIOCDIFADDR 0x8936
  82. #define SIOCSIFHWBROADCAST 0x8937
  83. #define SIOCGIFCOUNT 0x8938
  84. #define SIOCGIFBR 0x8940
  85. #define SIOCSIFBR 0x8941
  86. #define SIOCGIFTXQLEN 0x8942
  87. #define SIOCSIFTXQLEN 0x8943
  88. #define SIOCDARP 0x8953
  89. #define SIOCGARP 0x8954
  90. #define SIOCSARP 0x8955
  91. #define SIOCDRARP 0x8960
  92. #define SIOCGRARP 0x8961
  93. #define SIOCSRARP 0x8962
  94. #define SIOCGIFMAP 0x8970
  95. #define SIOCSIFMAP 0x8971
  96. #define SIOCADDDLCI 0x8980
  97. #define SIOCDELDLCI 0x8981
  98. #define SIOCDEVPRIVATE 0x89F0
  99. #define SIOCPROTOPRIVATE 0x89E0
  100. int ioctl (int, int, ...);
  101. #ifdef __cplusplus
  102. }
  103. #endif
  104. #endif