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 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. // cgo -godefs types_netbsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go: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. SizeofIovec = 0x10
  224. SizeofIPMreq = 0x8
  225. SizeofIPv6Mreq = 0x14
  226. SizeofMsghdr = 0x30
  227. SizeofCmsghdr = 0xc
  228. SizeofInet6Pktinfo = 0x14
  229. SizeofIPv6MTUInfo = 0x20
  230. SizeofICMPv6Filter = 0x20
  231. )
  232. const (
  233. PTRACE_TRACEME = 0x0
  234. PTRACE_CONT = 0x7
  235. PTRACE_KILL = 0x8
  236. )
  237. type Kevent_t struct {
  238. Ident uint64
  239. Filter uint32
  240. Flags uint32
  241. Fflags uint32
  242. Pad_cgo_0 [4]byte
  243. Data int64
  244. Udata int64
  245. }
  246. type FdSet struct {
  247. Bits [8]uint32
  248. }
  249. const (
  250. SizeofIfMsghdr = 0x98
  251. SizeofIfData = 0x88
  252. SizeofIfaMsghdr = 0x18
  253. SizeofIfAnnounceMsghdr = 0x18
  254. SizeofRtMsghdr = 0x78
  255. SizeofRtMetrics = 0x50
  256. )
  257. type IfMsghdr struct {
  258. Msglen uint16
  259. Version uint8
  260. Type uint8
  261. Addrs int32
  262. Flags int32
  263. Index uint16
  264. Pad_cgo_0 [2]byte
  265. Data IfData
  266. }
  267. type IfData struct {
  268. Type uint8
  269. Addrlen uint8
  270. Hdrlen uint8
  271. Pad_cgo_0 [1]byte
  272. Link_state int32
  273. Mtu uint64
  274. Metric uint64
  275. Baudrate uint64
  276. Ipackets uint64
  277. Ierrors uint64
  278. Opackets uint64
  279. Oerrors uint64
  280. Collisions uint64
  281. Ibytes uint64
  282. Obytes uint64
  283. Imcasts uint64
  284. Omcasts uint64
  285. Iqdrops uint64
  286. Noproto uint64
  287. Lastchange Timespec
  288. }
  289. type IfaMsghdr struct {
  290. Msglen uint16
  291. Version uint8
  292. Type uint8
  293. Addrs int32
  294. Flags int32
  295. Metric int32
  296. Index uint16
  297. Pad_cgo_0 [6]byte
  298. }
  299. type IfAnnounceMsghdr struct {
  300. Msglen uint16
  301. Version uint8
  302. Type uint8
  303. Index uint16
  304. Name [16]int8
  305. What uint16
  306. }
  307. type RtMsghdr struct {
  308. Msglen uint16
  309. Version uint8
  310. Type uint8
  311. Index uint16
  312. Pad_cgo_0 [2]byte
  313. Flags int32
  314. Addrs int32
  315. Pid int32
  316. Seq int32
  317. Errno int32
  318. Use int32
  319. Inits int32
  320. Pad_cgo_1 [4]byte
  321. Rmx RtMetrics
  322. }
  323. type RtMetrics struct {
  324. Locks uint64
  325. Mtu uint64
  326. Hopcount uint64
  327. Recvpipe uint64
  328. Sendpipe uint64
  329. Ssthresh uint64
  330. Rtt uint64
  331. Rttvar uint64
  332. Expire int64
  333. Pksent int64
  334. }
  335. type Mclpool [0]byte
  336. const (
  337. SizeofBpfVersion = 0x4
  338. SizeofBpfStat = 0x80
  339. SizeofBpfProgram = 0x10
  340. SizeofBpfInsn = 0x8
  341. SizeofBpfHdr = 0x20
  342. )
  343. type BpfVersion struct {
  344. Major uint16
  345. Minor uint16
  346. }
  347. type BpfStat struct {
  348. Recv uint64
  349. Drop uint64
  350. Capt uint64
  351. Padding [13]uint64
  352. }
  353. type BpfProgram struct {
  354. Len uint32
  355. Pad_cgo_0 [4]byte
  356. Insns *BpfInsn
  357. }
  358. type BpfInsn struct {
  359. Code uint16
  360. Jt uint8
  361. Jf uint8
  362. K uint32
  363. }
  364. type BpfHdr struct {
  365. Tstamp BpfTimeval
  366. Caplen uint32
  367. Datalen uint32
  368. Hdrlen uint16
  369. Pad_cgo_0 [6]byte
  370. }
  371. type BpfTimeval struct {
  372. Sec int64
  373. Usec int64
  374. }
  375. type Termios struct {
  376. Iflag uint32
  377. Oflag uint32
  378. Cflag uint32
  379. Lflag uint32
  380. Cc [20]uint8
  381. Ispeed int32
  382. Ospeed int32
  383. }
  384. type Winsize struct {
  385. Row uint16
  386. Col uint16
  387. Xpixel uint16
  388. Ypixel uint16
  389. }
  390. type Ptmget struct {
  391. Cfd int32
  392. Sfd int32
  393. Cn [1024]byte
  394. Sn [1024]byte
  395. }
  396. const (
  397. AT_FDCWD = -0x64
  398. AT_EACCESS = 0x100
  399. AT_SYMLINK_NOFOLLOW = 0x200
  400. AT_SYMLINK_FOLLOW = 0x400
  401. AT_REMOVEDIR = 0x800
  402. )
  403. type PollFd struct {
  404. Fd int32
  405. Events int16
  406. Revents int16
  407. }
  408. const (
  409. POLLERR = 0x8
  410. POLLHUP = 0x10
  411. POLLIN = 0x1
  412. POLLNVAL = 0x20
  413. POLLOUT = 0x4
  414. POLLPRI = 0x2
  415. POLLRDBAND = 0x80
  416. POLLRDNORM = 0x40
  417. POLLWRBAND = 0x100
  418. POLLWRNORM = 0x4
  419. )
  420. type Sysctlnode struct {
  421. Flags uint32
  422. Num int32
  423. Name [32]int8
  424. Ver uint32
  425. X__rsvd uint32
  426. Un [16]byte
  427. X_sysctl_size [8]byte
  428. X_sysctl_func [8]byte
  429. X_sysctl_parent [8]byte
  430. X_sysctl_desc [8]byte
  431. }
  432. type Utsname struct {
  433. Sysname [256]byte
  434. Nodename [256]byte
  435. Release [256]byte
  436. Version [256]byte
  437. Machine [256]byte
  438. }
  439. const SizeofUvmexp = 0x278
  440. type Uvmexp struct {
  441. Pagesize int64
  442. Pagemask int64
  443. Pageshift int64
  444. Npages int64
  445. Free int64
  446. Active int64
  447. Inactive int64
  448. Paging int64
  449. Wired int64
  450. Zeropages int64
  451. Reserve_pagedaemon int64
  452. Reserve_kernel int64
  453. Freemin int64
  454. Freetarg int64
  455. Inactarg int64
  456. Wiredmax int64
  457. Nswapdev int64
  458. Swpages int64
  459. Swpginuse int64
  460. Swpgonly int64
  461. Nswget int64
  462. Unused1 int64
  463. Cpuhit int64
  464. Cpumiss int64
  465. Faults int64
  466. Traps int64
  467. Intrs int64
  468. Swtch int64
  469. Softs int64
  470. Syscalls int64
  471. Pageins int64
  472. Swapins int64
  473. Swapouts int64
  474. Pgswapin int64
  475. Pgswapout int64
  476. Forks int64
  477. Forks_ppwait int64
  478. Forks_sharevm int64
  479. Pga_zerohit int64
  480. Pga_zeromiss int64
  481. Zeroaborts int64
  482. Fltnoram int64
  483. Fltnoanon int64
  484. Fltpgwait int64
  485. Fltpgrele int64
  486. Fltrelck int64
  487. Fltrelckok int64
  488. Fltanget int64
  489. Fltanretry int64
  490. Fltamcopy int64
  491. Fltnamap int64
  492. Fltnomap int64
  493. Fltlget int64
  494. Fltget int64
  495. Flt_anon int64
  496. Flt_acow int64
  497. Flt_obj int64
  498. Flt_prcopy int64
  499. Flt_przero int64
  500. Pdwoke int64
  501. Pdrevs int64
  502. Unused4 int64
  503. Pdfreed int64
  504. Pdscans int64
  505. Pdanscan int64
  506. Pdobscan int64
  507. Pdreact int64
  508. Pdbusy int64
  509. Pdpageouts int64
  510. Pdpending int64
  511. Pddeact int64
  512. Anonpages int64
  513. Filepages int64
  514. Execpages int64
  515. Colorhit int64
  516. Colormiss int64
  517. Ncolors int64
  518. Bootpages int64
  519. Poolpages int64
  520. }
  521. const SizeofClockinfo = 0x14
  522. type Clockinfo struct {
  523. Hz int32
  524. Tick int32
  525. Tickadj int32
  526. Stathz int32
  527. Profhz int32
  528. }