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.

631 lines
9.4 KiB

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