您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ztypes_netbsd_386.go 9.5KB

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