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_arm.go 9.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641
  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. package unix
  5. const (
  6. SizeofPtr = 0x4
  7. SizeofShort = 0x2
  8. SizeofInt = 0x4
  9. SizeofLong = 0x4
  10. SizeofLongLong = 0x8
  11. )
  12. type (
  13. _C_short int16
  14. _C_int int32
  15. _C_long int32
  16. _C_long_long int64
  17. )
  18. type Timespec struct {
  19. Sec int64
  20. Nsec int32
  21. _ [4]byte
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int32
  26. _ [4]byte
  27. }
  28. type Time_t int64
  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 Statfs_t struct {
  78. Version uint32
  79. Type uint32
  80. Flags uint64
  81. Bsize uint64
  82. Iosize uint64
  83. Blocks uint64
  84. Bfree uint64
  85. Bavail int64
  86. Files uint64
  87. Ffree int64
  88. Syncwrites uint64
  89. Asyncwrites uint64
  90. Syncreads uint64
  91. Asyncreads uint64
  92. Spare [10]uint64
  93. Namemax uint32
  94. Owner uint32
  95. Fsid Fsid
  96. Charspare [80]int8
  97. Fstypename [16]byte
  98. Mntfromname [1024]byte
  99. Mntonname [1024]byte
  100. }
  101. type Flock_t struct {
  102. Start int64
  103. Len int64
  104. Pid int32
  105. Type int16
  106. Whence int16
  107. Sysid int32
  108. _ [4]byte
  109. }
  110. type Dirent struct {
  111. Fileno uint64
  112. Off int64
  113. Reclen uint16
  114. Type uint8
  115. Pad0 uint8
  116. Namlen uint16
  117. Pad1 uint16
  118. Name [256]int8
  119. }
  120. type Fsid struct {
  121. Val [2]int32
  122. }
  123. const (
  124. PathMax = 0x400
  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 [46]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 Xucred struct {
  175. Version uint32
  176. Uid uint32
  177. Ngroups int16
  178. Groups [16]uint32
  179. _ *byte
  180. }
  181. type Linger struct {
  182. Onoff int32
  183. Linger int32
  184. }
  185. type Iovec struct {
  186. Base *byte
  187. Len uint32
  188. }
  189. type IPMreq struct {
  190. Multiaddr [4]byte /* in_addr */
  191. Interface [4]byte /* in_addr */
  192. }
  193. type IPMreqn struct {
  194. Multiaddr [4]byte /* in_addr */
  195. Address [4]byte /* in_addr */
  196. Ifindex int32
  197. }
  198. type IPv6Mreq struct {
  199. Multiaddr [16]byte /* in6_addr */
  200. Interface uint32
  201. }
  202. type Msghdr struct {
  203. Name *byte
  204. Namelen uint32
  205. Iov *Iovec
  206. Iovlen int32
  207. Control *byte
  208. Controllen uint32
  209. Flags int32
  210. }
  211. type Cmsghdr struct {
  212. Len uint32
  213. Level int32
  214. Type int32
  215. }
  216. type Inet6Pktinfo struct {
  217. Addr [16]byte /* in6_addr */
  218. Ifindex uint32
  219. }
  220. type IPv6MTUInfo struct {
  221. Addr RawSockaddrInet6
  222. Mtu uint32
  223. }
  224. type ICMPv6Filter struct {
  225. Filt [8]uint32
  226. }
  227. const (
  228. SizeofSockaddrInet4 = 0x10
  229. SizeofSockaddrInet6 = 0x1c
  230. SizeofSockaddrAny = 0x6c
  231. SizeofSockaddrUnix = 0x6a
  232. SizeofSockaddrDatalink = 0x36
  233. SizeofXucred = 0x50
  234. SizeofLinger = 0x8
  235. SizeofIovec = 0x8
  236. SizeofIPMreq = 0x8
  237. SizeofIPMreqn = 0xc
  238. SizeofIPv6Mreq = 0x14
  239. SizeofMsghdr = 0x1c
  240. SizeofCmsghdr = 0xc
  241. SizeofInet6Pktinfo = 0x14
  242. SizeofIPv6MTUInfo = 0x20
  243. SizeofICMPv6Filter = 0x20
  244. )
  245. const (
  246. PTRACE_TRACEME = 0x0
  247. PTRACE_CONT = 0x7
  248. PTRACE_KILL = 0x8
  249. )
  250. type PtraceLwpInfoStruct struct {
  251. Lwpid int32
  252. Event int32
  253. Flags int32
  254. Sigmask Sigset_t
  255. Siglist Sigset_t
  256. Siginfo __PtraceSiginfo
  257. Tdname [20]int8
  258. Child_pid int32
  259. Syscall_code uint32
  260. Syscall_narg uint32
  261. }
  262. type __Siginfo struct {
  263. Signo int32
  264. Errno int32
  265. Code int32
  266. Pid int32
  267. Uid uint32
  268. Status int32
  269. Addr *byte
  270. Value [4]byte
  271. _ [32]byte
  272. }
  273. type __PtraceSiginfo struct {
  274. Signo int32
  275. Errno int32
  276. Code int32
  277. Pid int32
  278. Uid uint32
  279. Status int32
  280. Addr uintptr
  281. Value [4]byte
  282. _ [32]byte
  283. }
  284. type Sigset_t struct {
  285. Val [4]uint32
  286. }
  287. type Reg struct {
  288. R [13]uint32
  289. Sp uint32
  290. Lr uint32
  291. Pc uint32
  292. Cpsr uint32
  293. }
  294. type FpReg struct {
  295. Fpsr uint32
  296. Fpr [8]FpExtendedPrecision
  297. }
  298. type FpExtendedPrecision struct {
  299. Exponent uint32
  300. Mantissa_hi uint32
  301. Mantissa_lo uint32
  302. }
  303. type PtraceIoDesc struct {
  304. Op int32
  305. Offs uintptr
  306. Addr *byte
  307. Len uint32
  308. }
  309. type Kevent_t struct {
  310. Ident uint32
  311. Filter int16
  312. Flags uint16
  313. Fflags uint32
  314. _ [4]byte
  315. Data int64
  316. Udata *byte
  317. _ [4]byte
  318. Ext [4]uint64
  319. }
  320. type FdSet struct {
  321. Bits [32]uint32
  322. }
  323. const (
  324. sizeofIfMsghdr = 0xa8
  325. SizeofIfMsghdr = 0x70
  326. sizeofIfData = 0x98
  327. SizeofIfData = 0x60
  328. SizeofIfaMsghdr = 0x14
  329. SizeofIfmaMsghdr = 0x10
  330. SizeofIfAnnounceMsghdr = 0x18
  331. SizeofRtMsghdr = 0x5c
  332. SizeofRtMetrics = 0x38
  333. )
  334. type ifMsghdr struct {
  335. Msglen uint16
  336. Version uint8
  337. Type uint8
  338. Addrs int32
  339. Flags int32
  340. Index uint16
  341. _ uint16
  342. Data ifData
  343. }
  344. type IfMsghdr struct {
  345. Msglen uint16
  346. Version uint8
  347. Type uint8
  348. Addrs int32
  349. Flags int32
  350. Index uint16
  351. Data IfData
  352. }
  353. type ifData struct {
  354. Type uint8
  355. Physical uint8
  356. Addrlen uint8
  357. Hdrlen uint8
  358. Link_state uint8
  359. Vhid uint8
  360. Datalen uint16
  361. Mtu uint32
  362. Metric uint32
  363. Baudrate uint64
  364. Ipackets uint64
  365. Ierrors uint64
  366. Opackets uint64
  367. Oerrors uint64
  368. Collisions uint64
  369. Ibytes uint64
  370. Obytes uint64
  371. Imcasts uint64
  372. Omcasts uint64
  373. Iqdrops uint64
  374. Oqdrops uint64
  375. Noproto uint64
  376. Hwassist uint64
  377. _ [8]byte
  378. _ [16]byte
  379. }
  380. type IfData struct {
  381. Type uint8
  382. Physical uint8
  383. Addrlen uint8
  384. Hdrlen uint8
  385. Link_state uint8
  386. Spare_char1 uint8
  387. Spare_char2 uint8
  388. Datalen uint8
  389. Mtu uint32
  390. Metric uint32
  391. Baudrate uint32
  392. Ipackets uint32
  393. Ierrors uint32
  394. Opackets uint32
  395. Oerrors uint32
  396. Collisions uint32
  397. Ibytes uint32
  398. Obytes uint32
  399. Imcasts uint32
  400. Omcasts uint32
  401. Iqdrops uint32
  402. Noproto uint32
  403. Hwassist uint32
  404. _ [4]byte
  405. Epoch int64
  406. Lastchange Timeval
  407. }
  408. type IfaMsghdr struct {
  409. Msglen uint16
  410. Version uint8
  411. Type uint8
  412. Addrs int32
  413. Flags int32
  414. Index uint16
  415. _ uint16
  416. Metric int32
  417. }
  418. type IfmaMsghdr struct {
  419. Msglen uint16
  420. Version uint8
  421. Type uint8
  422. Addrs int32
  423. Flags int32
  424. Index uint16
  425. _ uint16
  426. }
  427. type IfAnnounceMsghdr struct {
  428. Msglen uint16
  429. Version uint8
  430. Type uint8
  431. Index uint16
  432. Name [16]int8
  433. What uint16
  434. }
  435. type RtMsghdr struct {
  436. Msglen uint16
  437. Version uint8
  438. Type uint8
  439. Index uint16
  440. _ uint16
  441. Flags int32
  442. Addrs int32
  443. Pid int32
  444. Seq int32
  445. Errno int32
  446. Fmask int32
  447. Inits uint32
  448. Rmx RtMetrics
  449. }
  450. type RtMetrics struct {
  451. Locks uint32
  452. Mtu uint32
  453. Hopcount uint32
  454. Expire uint32
  455. Recvpipe uint32
  456. Sendpipe uint32
  457. Ssthresh uint32
  458. Rtt uint32
  459. Rttvar uint32
  460. Pksent uint32
  461. Weight uint32
  462. Filler [3]uint32
  463. }
  464. const (
  465. SizeofBpfVersion = 0x4
  466. SizeofBpfStat = 0x8
  467. SizeofBpfZbuf = 0xc
  468. SizeofBpfProgram = 0x8
  469. SizeofBpfInsn = 0x8
  470. SizeofBpfHdr = 0x20
  471. SizeofBpfZbufHeader = 0x20
  472. )
  473. type BpfVersion struct {
  474. Major uint16
  475. Minor uint16
  476. }
  477. type BpfStat struct {
  478. Recv uint32
  479. Drop uint32
  480. }
  481. type BpfZbuf struct {
  482. Bufa *byte
  483. Bufb *byte
  484. Buflen uint32
  485. }
  486. type BpfProgram struct {
  487. Len uint32
  488. Insns *BpfInsn
  489. }
  490. type BpfInsn struct {
  491. Code uint16
  492. Jt uint8
  493. Jf uint8
  494. K uint32
  495. }
  496. type BpfHdr struct {
  497. Tstamp Timeval
  498. Caplen uint32
  499. Datalen uint32
  500. Hdrlen uint16
  501. _ [6]byte
  502. }
  503. type BpfZbufHeader struct {
  504. Kernel_gen uint32
  505. Kernel_len uint32
  506. User_gen uint32
  507. _ [5]uint32
  508. }
  509. type Termios struct {
  510. Iflag uint32
  511. Oflag uint32
  512. Cflag uint32
  513. Lflag uint32
  514. Cc [20]uint8
  515. Ispeed uint32
  516. Ospeed uint32
  517. }
  518. type Winsize struct {
  519. Row uint16
  520. Col uint16
  521. Xpixel uint16
  522. Ypixel uint16
  523. }
  524. const (
  525. AT_FDCWD = -0x64
  526. AT_EACCESS = 0x100
  527. AT_SYMLINK_NOFOLLOW = 0x200
  528. AT_SYMLINK_FOLLOW = 0x400
  529. AT_REMOVEDIR = 0x800
  530. )
  531. type PollFd struct {
  532. Fd int32
  533. Events int16
  534. Revents int16
  535. }
  536. const (
  537. POLLERR = 0x8
  538. POLLHUP = 0x10
  539. POLLIN = 0x1
  540. POLLINIGNEOF = 0x2000
  541. POLLNVAL = 0x20
  542. POLLOUT = 0x4
  543. POLLPRI = 0x2
  544. POLLRDBAND = 0x80
  545. POLLRDNORM = 0x40
  546. POLLWRBAND = 0x100
  547. POLLWRNORM = 0x4
  548. )
  549. type CapRights struct {
  550. Rights [2]uint64
  551. }
  552. type Utsname struct {
  553. Sysname [256]byte
  554. Nodename [256]byte
  555. Release [256]byte
  556. Version [256]byte
  557. Machine [256]byte
  558. }
  559. const SizeofClockinfo = 0x14
  560. type Clockinfo struct {
  561. Hz int32
  562. Tick int32
  563. Spare int32
  564. Stathz int32
  565. Profhz int32
  566. }