ztypes_freebsd_arm.go 11 KB

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