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.
 
 

587 lines
9.5 KiB

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