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_freebsd_arm64.go 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690
  1. // cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build arm64,freebsd
  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 int64
  25. }
  26. type Rusage struct {
  27. Utime Timeval
  28. Stime Timeval
  29. Maxrss int64
  30. Ixrss int64
  31. Idrss int64
  32. Isrss int64
  33. Minflt int64
  34. Majflt int64
  35. Nswap int64
  36. Inblock int64
  37. Oublock int64
  38. Msgsnd int64
  39. Msgrcv int64
  40. Nsignals int64
  41. Nvcsw int64
  42. Nivcsw int64
  43. }
  44. type Rlimit struct {
  45. Cur int64
  46. Max int64
  47. }
  48. type _Gid_t uint32
  49. const (
  50. _statfsVersion = 0x20140518
  51. _dirblksiz = 0x400
  52. )
  53. type Stat_t struct {
  54. Dev uint64
  55. Ino uint64
  56. Nlink uint64
  57. Mode uint16
  58. _0 int16
  59. Uid uint32
  60. Gid uint32
  61. _1 int32
  62. Rdev uint64
  63. Atim Timespec
  64. Mtim Timespec
  65. Ctim Timespec
  66. Btim Timespec
  67. Size int64
  68. Blocks int64
  69. Blksize int32
  70. Flags uint32
  71. Gen uint64
  72. Spare [10]uint64
  73. }
  74. type stat_freebsd11_t struct {
  75. Dev uint32
  76. Ino uint32
  77. Mode uint16
  78. Nlink uint16
  79. Uid uint32
  80. Gid uint32
  81. Rdev uint32
  82. Atim Timespec
  83. Mtim Timespec
  84. Ctim Timespec
  85. Size int64
  86. Blocks int64
  87. Blksize int32
  88. Flags uint32
  89. Gen uint32
  90. Lspare int32
  91. Btim Timespec
  92. }
  93. type Statfs_t struct {
  94. Version uint32
  95. Type uint32
  96. Flags uint64
  97. Bsize uint64
  98. Iosize uint64
  99. Blocks uint64
  100. Bfree uint64
  101. Bavail int64
  102. Files uint64
  103. Ffree int64
  104. Syncwrites uint64
  105. Asyncwrites uint64
  106. Syncreads uint64
  107. Asyncreads uint64
  108. Spare [10]uint64
  109. Namemax uint32
  110. Owner uint32
  111. Fsid Fsid
  112. Charspare [80]int8
  113. Fstypename [16]byte
  114. Mntfromname [1024]byte
  115. Mntonname [1024]byte
  116. }
  117. type statfs_freebsd11_t struct {
  118. Version uint32
  119. Type uint32
  120. Flags uint64
  121. Bsize uint64
  122. Iosize uint64
  123. Blocks uint64
  124. Bfree uint64
  125. Bavail int64
  126. Files uint64
  127. Ffree int64
  128. Syncwrites uint64
  129. Asyncwrites uint64
  130. Syncreads uint64
  131. Asyncreads uint64
  132. Spare [10]uint64
  133. Namemax uint32
  134. Owner uint32
  135. Fsid Fsid
  136. Charspare [80]int8
  137. Fstypename [16]byte
  138. Mntfromname [88]byte
  139. Mntonname [88]byte
  140. }
  141. type Flock_t struct {
  142. Start int64
  143. Len int64
  144. Pid int32
  145. Type int16
  146. Whence int16
  147. Sysid int32
  148. _ [4]byte
  149. }
  150. type Dirent struct {
  151. Fileno uint64
  152. Off int64
  153. Reclen uint16
  154. Type uint8
  155. Pad0 uint8
  156. Namlen uint16
  157. Pad1 uint16
  158. Name [256]int8
  159. }
  160. type dirent_freebsd11 struct {
  161. Fileno uint32
  162. Reclen uint16
  163. Type uint8
  164. Namlen uint8
  165. Name [256]int8
  166. }
  167. type Fsid struct {
  168. Val [2]int32
  169. }
  170. const (
  171. PathMax = 0x400
  172. )
  173. const (
  174. FADV_NORMAL = 0x0
  175. FADV_RANDOM = 0x1
  176. FADV_SEQUENTIAL = 0x2
  177. FADV_WILLNEED = 0x3
  178. FADV_DONTNEED = 0x4
  179. FADV_NOREUSE = 0x5
  180. )
  181. type RawSockaddrInet4 struct {
  182. Len uint8
  183. Family uint8
  184. Port uint16
  185. Addr [4]byte /* in_addr */
  186. Zero [8]int8
  187. }
  188. type RawSockaddrInet6 struct {
  189. Len uint8
  190. Family uint8
  191. Port uint16
  192. Flowinfo uint32
  193. Addr [16]byte /* in6_addr */
  194. Scope_id uint32
  195. }
  196. type RawSockaddrUnix struct {
  197. Len uint8
  198. Family uint8
  199. Path [104]int8
  200. }
  201. type RawSockaddrDatalink struct {
  202. Len uint8
  203. Family uint8
  204. Index uint16
  205. Type uint8
  206. Nlen uint8
  207. Alen uint8
  208. Slen uint8
  209. Data [46]int8
  210. }
  211. type RawSockaddr struct {
  212. Len uint8
  213. Family uint8
  214. Data [14]int8
  215. }
  216. type RawSockaddrAny struct {
  217. Addr RawSockaddr
  218. Pad [92]int8
  219. }
  220. type _Socklen uint32
  221. type Linger struct {
  222. Onoff int32
  223. Linger int32
  224. }
  225. type Iovec struct {
  226. Base *byte
  227. Len uint64
  228. }
  229. type IPMreq struct {
  230. Multiaddr [4]byte /* in_addr */
  231. Interface [4]byte /* in_addr */
  232. }
  233. type IPMreqn struct {
  234. Multiaddr [4]byte /* in_addr */
  235. Address [4]byte /* in_addr */
  236. Ifindex int32
  237. }
  238. type IPv6Mreq struct {
  239. Multiaddr [16]byte /* in6_addr */
  240. Interface uint32
  241. }
  242. type Msghdr struct {
  243. Name *byte
  244. Namelen uint32
  245. Iov *Iovec
  246. Iovlen int32
  247. Control *byte
  248. Controllen uint32
  249. Flags int32
  250. }
  251. type Cmsghdr struct {
  252. Len uint32
  253. Level int32
  254. Type int32
  255. }
  256. type Inet6Pktinfo struct {
  257. Addr [16]byte /* in6_addr */
  258. Ifindex uint32
  259. }
  260. type IPv6MTUInfo struct {
  261. Addr RawSockaddrInet6
  262. Mtu uint32
  263. }
  264. type ICMPv6Filter struct {
  265. Filt [8]uint32
  266. }
  267. const (
  268. SizeofSockaddrInet4 = 0x10
  269. SizeofSockaddrInet6 = 0x1c
  270. SizeofSockaddrAny = 0x6c
  271. SizeofSockaddrUnix = 0x6a
  272. SizeofSockaddrDatalink = 0x36
  273. SizeofLinger = 0x8
  274. SizeofIPMreq = 0x8
  275. SizeofIPMreqn = 0xc
  276. SizeofIPv6Mreq = 0x14
  277. SizeofMsghdr = 0x30
  278. SizeofCmsghdr = 0xc
  279. SizeofInet6Pktinfo = 0x14
  280. SizeofIPv6MTUInfo = 0x20
  281. SizeofICMPv6Filter = 0x20
  282. )
  283. const (
  284. PTRACE_ATTACH = 0xa
  285. PTRACE_CONT = 0x7
  286. PTRACE_DETACH = 0xb
  287. PTRACE_GETFPREGS = 0x23
  288. PTRACE_GETLWPLIST = 0xf
  289. PTRACE_GETNUMLWPS = 0xe
  290. PTRACE_GETREGS = 0x21
  291. PTRACE_IO = 0xc
  292. PTRACE_KILL = 0x8
  293. PTRACE_LWPEVENTS = 0x18
  294. PTRACE_LWPINFO = 0xd
  295. PTRACE_SETFPREGS = 0x24
  296. PTRACE_SETREGS = 0x22
  297. PTRACE_SINGLESTEP = 0x9
  298. PTRACE_TRACEME = 0x0
  299. )
  300. const (
  301. PIOD_READ_D = 0x1
  302. PIOD_WRITE_D = 0x2
  303. PIOD_READ_I = 0x3
  304. PIOD_WRITE_I = 0x4
  305. )
  306. const (
  307. PL_FLAG_BORN = 0x100
  308. PL_FLAG_EXITED = 0x200
  309. PL_FLAG_SI = 0x20
  310. )
  311. const (
  312. TRAP_BRKPT = 0x1
  313. TRAP_TRACE = 0x2
  314. )
  315. type PtraceLwpInfoStruct struct {
  316. Lwpid int32
  317. Event int32
  318. Flags int32
  319. Sigmask Sigset_t
  320. Siglist Sigset_t
  321. Siginfo __Siginfo
  322. Tdname [20]int8
  323. Child_pid int32
  324. Syscall_code uint32
  325. Syscall_narg uint32
  326. }
  327. type __Siginfo struct {
  328. Signo int32
  329. Errno int32
  330. Code int32
  331. Pid int32
  332. Uid uint32
  333. Status int32
  334. Addr *byte
  335. Value [8]byte
  336. _ [40]byte
  337. }
  338. type Sigset_t struct {
  339. Val [4]uint32
  340. }
  341. type Reg struct {
  342. X [30]uint64
  343. Lr uint64
  344. Sp uint64
  345. Elr uint64
  346. Spsr uint32
  347. _ [4]byte
  348. }
  349. type FpReg struct {
  350. Q [32][16]uint8
  351. Sr uint32
  352. Cr uint32
  353. _ [8]byte
  354. }
  355. type PtraceIoDesc struct {
  356. Op int32
  357. Offs *byte
  358. Addr *byte
  359. Len uint64
  360. }
  361. type Kevent_t struct {
  362. Ident uint64
  363. Filter int16
  364. Flags uint16
  365. Fflags uint32
  366. Data int64
  367. Udata *byte
  368. }
  369. type FdSet struct {
  370. Bits [16]uint64
  371. }
  372. const (
  373. sizeofIfMsghdr = 0xa8
  374. SizeofIfMsghdr = 0xa8
  375. sizeofIfData = 0x98
  376. SizeofIfData = 0x98
  377. SizeofIfaMsghdr = 0x14
  378. SizeofIfmaMsghdr = 0x10
  379. SizeofIfAnnounceMsghdr = 0x18
  380. SizeofRtMsghdr = 0x98
  381. SizeofRtMetrics = 0x70
  382. )
  383. type ifMsghdr struct {
  384. Msglen uint16
  385. Version uint8
  386. Type uint8
  387. Addrs int32
  388. Flags int32
  389. Index uint16
  390. _ uint16
  391. Data ifData
  392. }
  393. type IfMsghdr struct {
  394. Msglen uint16
  395. Version uint8
  396. Type uint8
  397. Addrs int32
  398. Flags int32
  399. Index uint16
  400. Data IfData
  401. }
  402. type ifData struct {
  403. Type uint8
  404. Physical uint8
  405. Addrlen uint8
  406. Hdrlen uint8
  407. Link_state uint8
  408. Vhid uint8
  409. Datalen uint16
  410. Mtu uint32
  411. Metric uint32
  412. Baudrate uint64
  413. Ipackets uint64
  414. Ierrors uint64
  415. Opackets uint64
  416. Oerrors uint64
  417. Collisions uint64
  418. Ibytes uint64
  419. Obytes uint64
  420. Imcasts uint64
  421. Omcasts uint64
  422. Iqdrops uint64
  423. Oqdrops uint64
  424. Noproto uint64
  425. Hwassist uint64
  426. _ [8]byte
  427. _ [16]byte
  428. }
  429. type IfData struct {
  430. Type uint8
  431. Physical uint8
  432. Addrlen uint8
  433. Hdrlen uint8
  434. Link_state uint8
  435. Spare_char1 uint8
  436. Spare_char2 uint8
  437. Datalen uint8
  438. Mtu uint64
  439. Metric uint64
  440. Baudrate uint64
  441. Ipackets uint64
  442. Ierrors uint64
  443. Opackets uint64
  444. Oerrors uint64
  445. Collisions uint64
  446. Ibytes uint64
  447. Obytes uint64
  448. Imcasts uint64
  449. Omcasts uint64
  450. Iqdrops uint64
  451. Noproto uint64
  452. Hwassist uint64
  453. Epoch int64
  454. Lastchange Timeval
  455. }
  456. type IfaMsghdr struct {
  457. Msglen uint16
  458. Version uint8
  459. Type uint8
  460. Addrs int32
  461. Flags int32
  462. Index uint16
  463. _ uint16
  464. Metric int32
  465. }
  466. type IfmaMsghdr struct {
  467. Msglen uint16
  468. Version uint8
  469. Type uint8
  470. Addrs int32
  471. Flags int32
  472. Index uint16
  473. _ uint16
  474. }
  475. type IfAnnounceMsghdr struct {
  476. Msglen uint16
  477. Version uint8
  478. Type uint8
  479. Index uint16
  480. Name [16]int8
  481. What uint16
  482. }
  483. type RtMsghdr struct {
  484. Msglen uint16
  485. Version uint8
  486. Type uint8
  487. Index uint16
  488. _ uint16
  489. Flags int32
  490. Addrs int32
  491. Pid int32
  492. Seq int32
  493. Errno int32
  494. Fmask int32
  495. Inits uint64
  496. Rmx RtMetrics
  497. }
  498. type RtMetrics struct {
  499. Locks uint64
  500. Mtu uint64
  501. Hopcount uint64
  502. Expire uint64
  503. Recvpipe uint64
  504. Sendpipe uint64
  505. Ssthresh uint64
  506. Rtt uint64
  507. Rttvar uint64
  508. Pksent uint64
  509. Weight uint64
  510. Filler [3]uint64
  511. }
  512. const (
  513. SizeofBpfVersion = 0x4
  514. SizeofBpfStat = 0x8
  515. SizeofBpfZbuf = 0x18
  516. SizeofBpfProgram = 0x10
  517. SizeofBpfInsn = 0x8
  518. SizeofBpfHdr = 0x20
  519. SizeofBpfZbufHeader = 0x20
  520. )
  521. type BpfVersion struct {
  522. Major uint16
  523. Minor uint16
  524. }
  525. type BpfStat struct {
  526. Recv uint32
  527. Drop uint32
  528. }
  529. type BpfZbuf struct {
  530. Bufa *byte
  531. Bufb *byte
  532. Buflen uint64
  533. }
  534. type BpfProgram struct {
  535. Len uint32
  536. Insns *BpfInsn
  537. }
  538. type BpfInsn struct {
  539. Code uint16
  540. Jt uint8
  541. Jf uint8
  542. K uint32
  543. }
  544. type BpfHdr struct {
  545. Tstamp Timeval
  546. Caplen uint32
  547. Datalen uint32
  548. Hdrlen uint16
  549. _ [6]byte
  550. }
  551. type BpfZbufHeader struct {
  552. Kernel_gen uint32
  553. Kernel_len uint32
  554. User_gen uint32
  555. _ [5]uint32
  556. }
  557. type Termios struct {
  558. Iflag uint32
  559. Oflag uint32
  560. Cflag uint32
  561. Lflag uint32
  562. Cc [20]uint8
  563. Ispeed uint32
  564. Ospeed uint32
  565. }
  566. type Winsize struct {
  567. Row uint16
  568. Col uint16
  569. Xpixel uint16
  570. Ypixel uint16
  571. }
  572. const (
  573. AT_FDCWD = -0x64
  574. AT_REMOVEDIR = 0x800
  575. AT_SYMLINK_FOLLOW = 0x400
  576. AT_SYMLINK_NOFOLLOW = 0x200
  577. )
  578. type PollFd struct {
  579. Fd int32
  580. Events int16
  581. Revents int16
  582. }
  583. const (
  584. POLLERR = 0x8
  585. POLLHUP = 0x10
  586. POLLIN = 0x1
  587. POLLINIGNEOF = 0x2000
  588. POLLNVAL = 0x20
  589. POLLOUT = 0x4
  590. POLLPRI = 0x2
  591. POLLRDBAND = 0x80
  592. POLLRDNORM = 0x40
  593. POLLWRBAND = 0x100
  594. POLLWRNORM = 0x4
  595. )
  596. type CapRights struct {
  597. Rights [2]uint64
  598. }
  599. type Utsname struct {
  600. Sysname [256]byte
  601. Nodename [256]byte
  602. Release [256]byte
  603. Version [256]byte
  604. Machine [256]byte
  605. }
  606. const SizeofClockinfo = 0x14
  607. type Clockinfo struct {
  608. Hz int32
  609. Tick int32
  610. Spare int32
  611. Stathz int32
  612. Profhz int32
  613. }