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_amd64.go 7.5KB

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