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.1KB

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