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.
 
 

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