z-sys_openbsd.go 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. // go.mkdef -w sys_unix.go sys_bsd.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_openbsd_amd64.go
  6. package sys
  7. const (
  8. TCSADRAIN = 0x1
  9. TCSAFLUSH = 0x2
  10. TCSANOW = 0x0
  11. )
  12. const TIOCGWINSZ = 0x40087468
  13. const (
  14. VDISCARD = 0xf
  15. VEOF = 0x0
  16. VEOL = 0x1
  17. VEOL2 = 0x2
  18. VERASE = 0x3
  19. VINTR = 0x8
  20. VKILL = 0x5
  21. VLNEXT = 0xe
  22. VMIN = 0x10
  23. VQUIT = 0x9
  24. VREPRINT = 0x6
  25. VSTART = 0xc
  26. VSTOP = 0xd
  27. VSUSP = 0xa
  28. VTIME = 0x11
  29. VWERASE = 0x4
  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 = 0x400
  43. IXON = 0x200
  44. PARMRK = 0x8
  45. )
  46. const (
  47. BS0 = 0x0
  48. BS1 = 0x8000
  49. CR0 = 0x0
  50. CR1 = 0x1000
  51. CR2 = 0x2000
  52. CR3 = 0x3000
  53. FF0 = 0x0
  54. FF1 = 0x4000
  55. NL0 = 0x0
  56. NL1 = 0x100
  57. OCRNL = 0x10
  58. ONLCR = 0x2
  59. ONLRET = 0x80
  60. ONOCR = 0x40
  61. OPOST = 0x1
  62. TAB0 = 0x0
  63. TAB1 = 0x400
  64. TAB2 = 0x800
  65. XTABS = 0xc00
  66. )
  67. const (
  68. B0 = 0x0
  69. B110 = 0x6e
  70. B115200 = 0x1c200
  71. B1200 = 0x4b0
  72. B134 = 0x86
  73. B150 = 0x96
  74. B1800 = 0x708
  75. B19200 = 0x4b00
  76. B200 = 0xc8
  77. B230400 = 0x38400
  78. B2400 = 0x960
  79. B300 = 0x12c
  80. B38400 = 0x9600
  81. B4800 = 0x12c0
  82. B50 = 0x32
  83. B57600 = 0xe100
  84. B600 = 0x258
  85. B75 = 0x4b
  86. B9600 = 0x2580
  87. CLOCAL = 0x8000
  88. CREAD = 0x800
  89. CRTSCTS = 0x10000
  90. CS5 = 0x0
  91. CS6 = 0x100
  92. CS7 = 0x200
  93. CS8 = 0x300
  94. CSIZE = 0x300
  95. CSTOPB = 0x400
  96. EXTA = 0x4b00
  97. EXTB = 0x9600
  98. HUPCL = 0x4000
  99. PARENB = 0x1000
  100. PARODD = 0x2000
  101. )
  102. const (
  103. ECHO = 0x8
  104. ECHOCTL = 0x40
  105. ECHOE = 0x2
  106. ECHOK = 0x4
  107. ECHOKE = 0x1
  108. ECHONL = 0x10
  109. ECHOPRT = 0x20
  110. EXTPROC = 0x800
  111. FLUSHO = 0x800000
  112. ICANON = 0x100
  113. IEXTEN = 0x400
  114. ISIG = 0x80
  115. NOFLSH = 0x80000000
  116. PENDIN = 0x20000000
  117. TOSTOP = 0x400000
  118. )
  119. const TCGETS = 0x402c7413
  120. const TCSETS = 0x802c7414
  121. const TCSETSW = 0x802c7415
  122. const TCSETSF = 0x802c7416
  123. type Termios struct {
  124. Iflag uint32
  125. Oflag uint32
  126. Cflag uint32
  127. Lflag uint32
  128. Cc [20]uint8
  129. Ispeed int32
  130. Ospeed int32
  131. }
  132. type Winsize struct {
  133. Row uint16
  134. Col uint16
  135. Xpixel uint16
  136. Ypixel uint16
  137. }