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.

592 lines
9.6 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 arm && netbsd
  4. // +build arm,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. Pad_cgo_0 [4]byte
  23. }
  24. type Timeval struct {
  25. Sec int64
  26. Usec int32
  27. Pad_cgo_0 [4]byte
  28. }
  29. type Rusage struct {
  30. Utime Timeval
  31. Stime Timeval
  32. Maxrss int32
  33. Ixrss int32
  34. Idrss int32
  35. Isrss int32
  36. Minflt int32
  37. Majflt int32
  38. Nswap int32
  39. Inblock int32
  40. Oublock int32
  41. Msgsnd int32
  42. Msgrcv int32
  43. Nsignals int32
  44. Nvcsw int32
  45. Nivcsw int32
  46. }
  47. type Rlimit struct {
  48. Cur uint64
  49. Max uint64
  50. }
  51. type _Gid_t uint32
  52. type Stat_t struct {
  53. Dev uint64
  54. Mode uint32
  55. _ [4]byte
  56. Ino uint64
  57. Nlink uint32
  58. Uid uint32
  59. Gid uint32
  60. _ [4]byte
  61. Rdev uint64
  62. Atim Timespec
  63. Mtim Timespec
  64. Ctim Timespec
  65. Btim Timespec
  66. Size int64
  67. Blocks int64
  68. Blksize uint32
  69. Flags uint32
  70. Gen uint32
  71. Spare [2]uint32
  72. _ [4]byte
  73. }
  74. type Statfs_t [0]byte
  75. type Statvfs_t struct {
  76. Flag uint32
  77. Bsize uint32
  78. Frsize uint32
  79. Iosize uint32
  80. Blocks uint64
  81. Bfree uint64
  82. Bavail uint64
  83. Bresvd uint64
  84. Files uint64
  85. Ffree uint64
  86. Favail uint64
  87. Fresvd uint64
  88. Syncreads uint64
  89. Syncwrites uint64
  90. Asyncreads uint64
  91. Asyncwrites uint64
  92. Fsidx Fsid
  93. Fsid uint32
  94. Namemax uint32
  95. Owner uint32
  96. Spare [4]uint32
  97. Fstypename [32]byte
  98. Mntonname [1024]byte
  99. Mntfromname [1024]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 uint32
  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. Iov *Iovec
  194. Iovlen int32
  195. Control *byte
  196. Controllen uint32
  197. Flags int32
  198. }
  199. type Cmsghdr struct {
  200. Len uint32
  201. Level int32
  202. Type int32
  203. }
  204. type Inet6Pktinfo struct {
  205. Addr [16]byte /* in6_addr */
  206. Ifindex uint32
  207. }
  208. type IPv6MTUInfo struct {
  209. Addr RawSockaddrInet6
  210. Mtu uint32
  211. }
  212. type ICMPv6Filter struct {
  213. Filt [8]uint32
  214. }
  215. const (
  216. SizeofSockaddrInet4 = 0x10
  217. SizeofSockaddrInet6 = 0x1c
  218. SizeofSockaddrAny = 0x6c
  219. SizeofSockaddrUnix = 0x6a
  220. SizeofSockaddrDatalink = 0x14
  221. SizeofLinger = 0x8
  222. SizeofIovec = 0x8
  223. SizeofIPMreq = 0x8
  224. SizeofIPv6Mreq = 0x14
  225. SizeofMsghdr = 0x1c
  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 uint32
  238. Filter uint32
  239. Flags uint32
  240. Fflags uint32
  241. Data int64
  242. Udata int32
  243. Pad_cgo_0 [4]byte
  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 = 0x8
  339. SizeofBpfInsn = 0x8
  340. SizeofBpfHdr = 0x14
  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. Insns *BpfInsn
  355. }
  356. type BpfInsn struct {
  357. Code uint16
  358. Jt uint8
  359. Jf uint8
  360. K uint32
  361. }
  362. type BpfHdr struct {
  363. Tstamp BpfTimeval
  364. Caplen uint32
  365. Datalen uint32
  366. Hdrlen uint16
  367. Pad_cgo_0 [2]byte
  368. }
  369. type BpfTimeval struct {
  370. Sec int32
  371. Usec int32
  372. }
  373. type Termios struct {
  374. Iflag uint32
  375. Oflag uint32
  376. Cflag uint32
  377. Lflag uint32
  378. Cc [20]uint8
  379. Ispeed int32
  380. Ospeed int32
  381. }
  382. type Winsize struct {
  383. Row uint16
  384. Col uint16
  385. Xpixel uint16
  386. Ypixel uint16
  387. }
  388. type Ptmget struct {
  389. Cfd int32
  390. Sfd int32
  391. Cn [1024]byte
  392. Sn [1024]byte
  393. }
  394. const (
  395. AT_FDCWD = -0x64
  396. AT_EACCESS = 0x100
  397. AT_SYMLINK_NOFOLLOW = 0x200
  398. AT_SYMLINK_FOLLOW = 0x400
  399. AT_REMOVEDIR = 0x800
  400. )
  401. type PollFd struct {
  402. Fd int32
  403. Events int16
  404. Revents int16
  405. }
  406. const (
  407. POLLERR = 0x8
  408. POLLHUP = 0x10
  409. POLLIN = 0x1
  410. POLLNVAL = 0x20
  411. POLLOUT = 0x4
  412. POLLPRI = 0x2
  413. POLLRDBAND = 0x80
  414. POLLRDNORM = 0x40
  415. POLLWRBAND = 0x100
  416. POLLWRNORM = 0x4
  417. )
  418. type Sysctlnode struct {
  419. Flags uint32
  420. Num int32
  421. Name [32]int8
  422. Ver uint32
  423. X__rsvd uint32
  424. Un [16]byte
  425. X_sysctl_size [8]byte
  426. X_sysctl_func [8]byte
  427. X_sysctl_parent [8]byte
  428. X_sysctl_desc [8]byte
  429. }
  430. type Utsname struct {
  431. Sysname [256]byte
  432. Nodename [256]byte
  433. Release [256]byte
  434. Version [256]byte
  435. Machine [256]byte
  436. }
  437. const SizeofUvmexp = 0x278
  438. type Uvmexp struct {
  439. Pagesize int64
  440. Pagemask int64
  441. Pageshift int64
  442. Npages int64
  443. Free int64
  444. Active int64
  445. Inactive int64
  446. Paging int64
  447. Wired int64
  448. Zeropages int64
  449. Reserve_pagedaemon int64
  450. Reserve_kernel int64
  451. Freemin int64
  452. Freetarg int64
  453. Inactarg int64
  454. Wiredmax int64
  455. Nswapdev int64
  456. Swpages int64
  457. Swpginuse int64
  458. Swpgonly int64
  459. Nswget int64
  460. Unused1 int64
  461. Cpuhit int64
  462. Cpumiss int64
  463. Faults int64
  464. Traps int64
  465. Intrs int64
  466. Swtch int64
  467. Softs int64
  468. Syscalls int64
  469. Pageins int64
  470. Swapins int64
  471. Swapouts int64
  472. Pgswapin int64
  473. Pgswapout int64
  474. Forks int64
  475. Forks_ppwait int64
  476. Forks_sharevm int64
  477. Pga_zerohit int64
  478. Pga_zeromiss int64
  479. Zeroaborts int64
  480. Fltnoram int64
  481. Fltnoanon int64
  482. Fltpgwait int64
  483. Fltpgrele int64
  484. Fltrelck int64
  485. Fltrelckok int64
  486. Fltanget int64
  487. Fltanretry int64
  488. Fltamcopy int64
  489. Fltnamap int64
  490. Fltnomap int64
  491. Fltlget int64
  492. Fltget int64
  493. Flt_anon int64
  494. Flt_acow int64
  495. Flt_obj int64
  496. Flt_prcopy int64
  497. Flt_przero int64
  498. Pdwoke int64
  499. Pdrevs int64
  500. Unused4 int64
  501. Pdfreed int64
  502. Pdscans int64
  503. Pdanscan int64
  504. Pdobscan int64
  505. Pdreact int64
  506. Pdbusy int64
  507. Pdpageouts int64
  508. Pdpending int64
  509. Pddeact int64
  510. Anonpages int64
  511. Filepages int64
  512. Execpages int64
  513. Colorhit int64
  514. Colormiss int64
  515. Ncolors int64
  516. Bootpages int64
  517. Poolpages int64
  518. }
  519. const SizeofClockinfo = 0x14
  520. type Clockinfo struct {
  521. Hz int32
  522. Tick int32
  523. Tickadj int32
  524. Stathz int32
  525. Profhz int32
  526. }