You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ztypes_netbsd_arm.go 6.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. // cgo -godefs types_netbsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build arm,netbsd
  4. package unix
  5. const (
  6. SizeofPtr = 0x4
  7. SizeofShort = 0x2
  8. SizeofInt = 0x4
  9. SizeofLong = 0x4
  10. SizeofLongLong = 0x8
  11. )
  12. type (
  13. _C_short int16
  14. _C_int int32
  15. _C_long int32
  16. _C_long_long int64
  17. )
  18. type Timespec struct {
  19. Sec int64
  20. Nsec int32
  21. Pad_cgo_0 [4]byte
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int32
  26. Pad_cgo_0 [4]byte
  27. }
  28. type Rusage struct {
  29. Utime Timeval
  30. Stime Timeval
  31. Maxrss int32
  32. Ixrss int32
  33. Idrss int32
  34. Isrss int32
  35. Minflt int32
  36. Majflt int32
  37. Nswap int32
  38. Inblock int32
  39. Oublock int32
  40. Msgsnd int32
  41. Msgrcv int32
  42. Nsignals int32
  43. Nvcsw int32
  44. Nivcsw int32
  45. }
  46. type Rlimit struct {
  47. Cur uint64
  48. Max uint64
  49. }
  50. type _Gid_t uint32
  51. type Stat_t struct {
  52. Dev uint64
  53. Mode uint32
  54. _ [4]byte
  55. Ino uint64
  56. Nlink uint32
  57. Uid uint32
  58. Gid uint32
  59. _ [4]byte
  60. Rdev uint64
  61. Atim Timespec
  62. Mtim Timespec
  63. Ctim Timespec
  64. Btim Timespec
  65. Size int64
  66. Blocks int64
  67. Blksize uint32
  68. Flags uint32
  69. Gen uint32
  70. Spare [2]uint32
  71. _ [4]byte
  72. }
  73. type Statfs_t [0]byte
  74. type Flock_t struct {
  75. Start int64
  76. Len int64
  77. Pid int32
  78. Type int16
  79. Whence int16
  80. }
  81. type Dirent struct {
  82. Fileno uint64
  83. Reclen uint16
  84. Namlen uint16
  85. Type uint8
  86. Name [512]int8
  87. Pad_cgo_0 [3]byte
  88. }
  89. type Fsid struct {
  90. X__fsid_val [2]int32
  91. }
  92. const (
  93. PathMax = 0x400
  94. )
  95. const (
  96. FADV_NORMAL = 0x0
  97. FADV_RANDOM = 0x1
  98. FADV_SEQUENTIAL = 0x2
  99. FADV_WILLNEED = 0x3
  100. FADV_DONTNEED = 0x4
  101. FADV_NOREUSE = 0x5
  102. )
  103. type RawSockaddrInet4 struct {
  104. Len uint8
  105. Family uint8
  106. Port uint16
  107. Addr [4]byte /* in_addr */
  108. Zero [8]int8
  109. }
  110. type RawSockaddrInet6 struct {
  111. Len uint8
  112. Family uint8
  113. Port uint16
  114. Flowinfo uint32
  115. Addr [16]byte /* in6_addr */
  116. Scope_id uint32
  117. }
  118. type RawSockaddrUnix struct {
  119. Len uint8
  120. Family uint8
  121. Path [104]int8
  122. }
  123. type RawSockaddrDatalink struct {
  124. Len uint8
  125. Family uint8
  126. Index uint16
  127. Type uint8
  128. Nlen uint8
  129. Alen uint8
  130. Slen uint8
  131. Data [12]int8
  132. }
  133. type RawSockaddr struct {
  134. Len uint8
  135. Family uint8
  136. Data [14]int8
  137. }
  138. type RawSockaddrAny struct {
  139. Addr RawSockaddr
  140. Pad [92]int8
  141. }
  142. type _Socklen uint32
  143. type Linger struct {
  144. Onoff int32
  145. Linger int32
  146. }
  147. type Iovec struct {
  148. Base *byte
  149. Len uint32
  150. }
  151. type IPMreq struct {
  152. Multiaddr [4]byte /* in_addr */
  153. Interface [4]byte /* in_addr */
  154. }
  155. type IPv6Mreq struct {
  156. Multiaddr [16]byte /* in6_addr */
  157. Interface uint32
  158. }
  159. type Msghdr struct {
  160. Name *byte
  161. Namelen uint32
  162. Iov *Iovec
  163. Iovlen int32
  164. Control *byte
  165. Controllen uint32
  166. Flags int32
  167. }
  168. type Cmsghdr struct {
  169. Len uint32
  170. Level int32
  171. Type int32
  172. }
  173. type Inet6Pktinfo struct {
  174. Addr [16]byte /* in6_addr */
  175. Ifindex uint32
  176. }
  177. type IPv6MTUInfo struct {
  178. Addr RawSockaddrInet6
  179. Mtu uint32
  180. }
  181. type ICMPv6Filter struct {
  182. Filt [8]uint32
  183. }
  184. const (
  185. SizeofSockaddrInet4 = 0x10
  186. SizeofSockaddrInet6 = 0x1c
  187. SizeofSockaddrAny = 0x6c
  188. SizeofSockaddrUnix = 0x6a
  189. SizeofSockaddrDatalink = 0x14
  190. SizeofLinger = 0x8
  191. SizeofIPMreq = 0x8
  192. SizeofIPv6Mreq = 0x14
  193. SizeofMsghdr = 0x1c
  194. SizeofCmsghdr = 0xc
  195. SizeofInet6Pktinfo = 0x14
  196. SizeofIPv6MTUInfo = 0x20
  197. SizeofICMPv6Filter = 0x20
  198. )
  199. const (
  200. PTRACE_TRACEME = 0x0
  201. PTRACE_CONT = 0x7
  202. PTRACE_KILL = 0x8
  203. )
  204. type Kevent_t struct {
  205. Ident uint32
  206. Filter uint32
  207. Flags uint32
  208. Fflags uint32
  209. Data int64
  210. Udata int32
  211. Pad_cgo_0 [4]byte
  212. }
  213. type FdSet struct {
  214. Bits [8]uint32
  215. }
  216. const (
  217. SizeofIfMsghdr = 0x98
  218. SizeofIfData = 0x88
  219. SizeofIfaMsghdr = 0x18
  220. SizeofIfAnnounceMsghdr = 0x18
  221. SizeofRtMsghdr = 0x78
  222. SizeofRtMetrics = 0x50
  223. )
  224. type IfMsghdr struct {
  225. Msglen uint16
  226. Version uint8
  227. Type uint8
  228. Addrs int32
  229. Flags int32
  230. Index uint16
  231. Pad_cgo_0 [2]byte
  232. Data IfData
  233. }
  234. type IfData struct {
  235. Type uint8
  236. Addrlen uint8
  237. Hdrlen uint8
  238. Pad_cgo_0 [1]byte
  239. Link_state int32
  240. Mtu uint64
  241. Metric uint64
  242. Baudrate uint64
  243. Ipackets uint64
  244. Ierrors uint64
  245. Opackets uint64
  246. Oerrors uint64
  247. Collisions uint64
  248. Ibytes uint64
  249. Obytes uint64
  250. Imcasts uint64
  251. Omcasts uint64
  252. Iqdrops uint64
  253. Noproto uint64
  254. Lastchange Timespec
  255. }
  256. type IfaMsghdr struct {
  257. Msglen uint16
  258. Version uint8
  259. Type uint8
  260. Addrs int32
  261. Flags int32
  262. Metric int32
  263. Index uint16
  264. Pad_cgo_0 [6]byte
  265. }
  266. type IfAnnounceMsghdr struct {
  267. Msglen uint16
  268. Version uint8
  269. Type uint8
  270. Index uint16
  271. Name [16]int8
  272. What uint16
  273. }
  274. type RtMsghdr struct {
  275. Msglen uint16
  276. Version uint8
  277. Type uint8
  278. Index uint16
  279. Pad_cgo_0 [2]byte
  280. Flags int32
  281. Addrs int32
  282. Pid int32
  283. Seq int32
  284. Errno int32
  285. Use int32
  286. Inits int32
  287. Pad_cgo_1 [4]byte
  288. Rmx RtMetrics
  289. }
  290. type RtMetrics struct {
  291. Locks uint64
  292. Mtu uint64
  293. Hopcount uint64
  294. Recvpipe uint64
  295. Sendpipe uint64
  296. Ssthresh uint64
  297. Rtt uint64
  298. Rttvar uint64
  299. Expire int64
  300. Pksent int64
  301. }
  302. type Mclpool [0]byte
  303. const (
  304. SizeofBpfVersion = 0x4
  305. SizeofBpfStat = 0x80
  306. SizeofBpfProgram = 0x8
  307. SizeofBpfInsn = 0x8
  308. SizeofBpfHdr = 0x14
  309. )
  310. type BpfVersion struct {
  311. Major uint16
  312. Minor uint16
  313. }
  314. type BpfStat struct {
  315. Recv uint64
  316. Drop uint64
  317. Capt uint64
  318. Padding [13]uint64
  319. }
  320. type BpfProgram struct {
  321. Len uint32
  322. Insns *BpfInsn
  323. }
  324. type BpfInsn struct {
  325. Code uint16
  326. Jt uint8
  327. Jf uint8
  328. K uint32
  329. }
  330. type BpfHdr struct {
  331. Tstamp BpfTimeval
  332. Caplen uint32
  333. Datalen uint32
  334. Hdrlen uint16
  335. Pad_cgo_0 [2]byte
  336. }
  337. type BpfTimeval struct {
  338. Sec int32
  339. Usec int32
  340. }
  341. type Termios struct {
  342. Iflag uint32
  343. Oflag uint32
  344. Cflag uint32
  345. Lflag uint32
  346. Cc [20]uint8
  347. Ispeed int32
  348. Ospeed int32
  349. }
  350. type Winsize struct {
  351. Row uint16
  352. Col uint16
  353. Xpixel uint16
  354. Ypixel uint16
  355. }
  356. type Ptmget struct {
  357. Cfd int32
  358. Sfd int32
  359. Cn [1024]byte
  360. Sn [1024]byte
  361. }
  362. const (
  363. AT_FDCWD = -0x64
  364. AT_SYMLINK_NOFOLLOW = 0x200
  365. )
  366. type PollFd struct {
  367. Fd int32
  368. Events int16
  369. Revents int16
  370. }
  371. const (
  372. POLLERR = 0x8
  373. POLLHUP = 0x10
  374. POLLIN = 0x1
  375. POLLNVAL = 0x20
  376. POLLOUT = 0x4
  377. POLLPRI = 0x2
  378. POLLRDBAND = 0x80
  379. POLLRDNORM = 0x40
  380. POLLWRBAND = 0x100
  381. POLLWRNORM = 0x4
  382. )
  383. type Sysctlnode struct {
  384. Flags uint32
  385. Num int32
  386. Name [32]int8
  387. Ver uint32
  388. X__rsvd uint32
  389. Un [16]byte
  390. X_sysctl_size [8]byte
  391. X_sysctl_func [8]byte
  392. X_sysctl_parent [8]byte
  393. X_sysctl_desc [8]byte
  394. }
  395. type Utsname struct {
  396. Sysname [256]byte
  397. Nodename [256]byte
  398. Release [256]byte
  399. Version [256]byte
  400. Machine [256]byte
  401. }
  402. const SizeofClockinfo = 0x14
  403. type Clockinfo struct {
  404. Hz int32
  405. Tick int32
  406. Tickadj int32
  407. Stathz int32
  408. Profhz int32
  409. }