z-sys_linux.go 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. // go.mkdef -w sys_unix.go sys_linux.go
  2. // MACHINE GENERATED BY go.mkdef (github.com/tredoe/gotool/go.mkdef); DO NOT EDIT
  3. //
  4. // Created by cgo -godefs - DO NOT EDIT
  5. // cgo -godefs _z-sys_linux_amd64.go
  6. package sys
  7. const (
  8. TCSADRAIN = 0x1
  9. TCSAFLUSH = 0x2
  10. TCSANOW = 0x0
  11. )
  12. const TIOCGWINSZ = 0x5413
  13. const (
  14. VDISCARD = 0xd
  15. VEOF = 0x4
  16. VEOL = 0xb
  17. VEOL2 = 0x10
  18. VERASE = 0x2
  19. VINTR = 0x0
  20. VKILL = 0x3
  21. VLNEXT = 0xf
  22. VMIN = 0x6
  23. VQUIT = 0x1
  24. VREPRINT = 0xc
  25. VSTART = 0x8
  26. VSTOP = 0x9
  27. VSUSP = 0xa
  28. VTIME = 0x5
  29. VWERASE = 0xe
  30. )
  31. const (
  32. BRKINT = 0x2
  33. ICRNL = 0x100
  34. IGNBRK = 0x1
  35. IGNCR = 0x80
  36. IGNPAR = 0x4
  37. IMAXBEL = 0x2000
  38. INLCR = 0x40
  39. INPCK = 0x10
  40. ISTRIP = 0x20
  41. IXANY = 0x800
  42. IXOFF = 0x1000
  43. IXON = 0x400
  44. PARMRK = 0x8
  45. )
  46. const (
  47. BS0 = 0x0
  48. BS1 = 0x2000
  49. CR0 = 0x0
  50. CR1 = 0x200
  51. CR2 = 0x400
  52. CR3 = 0x600
  53. FF0 = 0x0
  54. FF1 = 0x8000
  55. NL0 = 0x0
  56. NL1 = 0x100
  57. OCRNL = 0x8
  58. ONLCR = 0x4
  59. ONLRET = 0x20
  60. ONOCR = 0x10
  61. OPOST = 0x1
  62. TAB0 = 0x0
  63. TAB1 = 0x800
  64. TAB2 = 0x1000
  65. XTABS = 0x1800
  66. )
  67. const (
  68. B0 = 0x0
  69. B110 = 0x3
  70. B115200 = 0x1002
  71. B1200 = 0x9
  72. B134 = 0x4
  73. B150 = 0x5
  74. B1800 = 0xa
  75. B19200 = 0xe
  76. B200 = 0x6
  77. B230400 = 0x1003
  78. B2400 = 0xb
  79. B300 = 0x7
  80. B38400 = 0xf
  81. B4800 = 0xc
  82. B50 = 0x1
  83. B57600 = 0x1001
  84. B600 = 0x8
  85. B75 = 0x2
  86. B9600 = 0xd
  87. CLOCAL = 0x800
  88. CREAD = 0x80
  89. CRTSCTS = 0x80000000
  90. CS5 = 0x0
  91. CS6 = 0x10
  92. CS7 = 0x20
  93. CS8 = 0x30
  94. CSIZE = 0x30
  95. CSTOPB = 0x40
  96. EXTA = 0xe
  97. EXTB = 0xf
  98. HUPCL = 0x400
  99. PARENB = 0x100
  100. PARODD = 0x200
  101. )
  102. const (
  103. ECHO = 0x8
  104. ECHOCTL = 0x200
  105. ECHOE = 0x10
  106. ECHOK = 0x20
  107. ECHOKE = 0x800
  108. ECHONL = 0x40
  109. ECHOPRT = 0x400
  110. EXTPROC = 0x10000
  111. FLUSHO = 0x1000
  112. ICANON = 0x2
  113. IEXTEN = 0x8000
  114. ISIG = 0x1
  115. NOFLSH = 0x80
  116. PENDIN = 0x4000
  117. TOSTOP = 0x100
  118. )
  119. const (
  120. TCGETS = 0x5401
  121. TCSETS = 0x5402
  122. TCSETSF = 0x5404
  123. TCSETSW = 0x5403
  124. )
  125. type Termios struct {
  126. Iflag uint32
  127. Oflag uint32
  128. Cflag uint32
  129. Lflag uint32
  130. Line uint8
  131. Cc [19]uint8
  132. }
  133. type Winsize struct {
  134. Row uint16
  135. Col uint16
  136. Xpixel uint16
  137. Ypixel uint16
  138. }