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.
 
 

643 lines
9.5 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 __PtraceSiginfo
  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 __PtraceSiginfo struct {
  275. Signo int32
  276. Errno int32
  277. Code int32
  278. Pid int32
  279. Uid uint32
  280. Status int32
  281. Addr uintptr
  282. Value [4]byte
  283. _ [32]byte
  284. }
  285. type Sigset_t struct {
  286. Val [4]uint32
  287. }
  288. type Reg struct {
  289. R [13]uint32
  290. Sp uint32
  291. Lr uint32
  292. Pc uint32
  293. Cpsr uint32
  294. }
  295. type FpReg struct {
  296. Fpsr uint32
  297. Fpr [8]FpExtendedPrecision
  298. }
  299. type FpExtendedPrecision struct {
  300. Exponent uint32
  301. Mantissa_hi uint32
  302. Mantissa_lo uint32
  303. }
  304. type PtraceIoDesc struct {
  305. Op int32
  306. Offs uintptr
  307. Addr *byte
  308. Len uint32
  309. }
  310. type Kevent_t struct {
  311. Ident uint32
  312. Filter int16
  313. Flags uint16
  314. Fflags uint32
  315. _ [4]byte
  316. Data int64
  317. Udata *byte
  318. _ [4]byte
  319. Ext [4]uint64
  320. }
  321. type FdSet struct {
  322. Bits [32]uint32
  323. }
  324. const (
  325. sizeofIfMsghdr = 0xa8
  326. SizeofIfMsghdr = 0x70
  327. sizeofIfData = 0x98
  328. SizeofIfData = 0x60
  329. SizeofIfaMsghdr = 0x14
  330. SizeofIfmaMsghdr = 0x10
  331. SizeofIfAnnounceMsghdr = 0x18
  332. SizeofRtMsghdr = 0x5c
  333. SizeofRtMetrics = 0x38
  334. )
  335. type ifMsghdr struct {
  336. Msglen uint16
  337. Version uint8
  338. Type uint8
  339. Addrs int32
  340. Flags int32
  341. Index uint16
  342. _ uint16
  343. Data ifData
  344. }
  345. type IfMsghdr struct {
  346. Msglen uint16
  347. Version uint8
  348. Type uint8
  349. Addrs int32
  350. Flags int32
  351. Index uint16
  352. Data IfData
  353. }
  354. type ifData struct {
  355. Type uint8
  356. Physical uint8
  357. Addrlen uint8
  358. Hdrlen uint8
  359. Link_state uint8
  360. Vhid uint8
  361. Datalen uint16
  362. Mtu uint32
  363. Metric uint32
  364. Baudrate uint64
  365. Ipackets uint64
  366. Ierrors uint64
  367. Opackets uint64
  368. Oerrors uint64
  369. Collisions uint64
  370. Ibytes uint64
  371. Obytes uint64
  372. Imcasts uint64
  373. Omcasts uint64
  374. Iqdrops uint64
  375. Oqdrops uint64
  376. Noproto uint64
  377. Hwassist uint64
  378. _ [8]byte
  379. _ [16]byte
  380. }
  381. type IfData struct {
  382. Type uint8
  383. Physical uint8
  384. Addrlen uint8
  385. Hdrlen uint8
  386. Link_state uint8
  387. Spare_char1 uint8
  388. Spare_char2 uint8
  389. Datalen uint8
  390. Mtu uint32
  391. Metric uint32
  392. Baudrate uint32
  393. Ipackets uint32
  394. Ierrors uint32
  395. Opackets uint32
  396. Oerrors uint32
  397. Collisions uint32
  398. Ibytes uint32
  399. Obytes uint32
  400. Imcasts uint32
  401. Omcasts uint32
  402. Iqdrops uint32
  403. Noproto uint32
  404. Hwassist uint32
  405. _ [4]byte
  406. Epoch int64
  407. Lastchange Timeval
  408. }
  409. type IfaMsghdr struct {
  410. Msglen uint16
  411. Version uint8
  412. Type uint8
  413. Addrs int32
  414. Flags int32
  415. Index uint16
  416. _ uint16
  417. Metric int32
  418. }
  419. type IfmaMsghdr struct {
  420. Msglen uint16
  421. Version uint8
  422. Type uint8
  423. Addrs int32
  424. Flags int32
  425. Index uint16
  426. _ uint16
  427. }
  428. type IfAnnounceMsghdr struct {
  429. Msglen uint16
  430. Version uint8
  431. Type uint8
  432. Index uint16
  433. Name [16]int8
  434. What uint16
  435. }
  436. type RtMsghdr struct {
  437. Msglen uint16
  438. Version uint8
  439. Type uint8
  440. Index uint16
  441. _ uint16
  442. Flags int32
  443. Addrs int32
  444. Pid int32
  445. Seq int32
  446. Errno int32
  447. Fmask int32
  448. Inits uint32
  449. Rmx RtMetrics
  450. }
  451. type RtMetrics struct {
  452. Locks uint32
  453. Mtu uint32
  454. Hopcount uint32
  455. Expire uint32
  456. Recvpipe uint32
  457. Sendpipe uint32
  458. Ssthresh uint32
  459. Rtt uint32
  460. Rttvar uint32
  461. Pksent uint32
  462. Weight uint32
  463. Filler [3]uint32
  464. }
  465. const (
  466. SizeofBpfVersion = 0x4
  467. SizeofBpfStat = 0x8
  468. SizeofBpfZbuf = 0xc
  469. SizeofBpfProgram = 0x8
  470. SizeofBpfInsn = 0x8
  471. SizeofBpfHdr = 0x20
  472. SizeofBpfZbufHeader = 0x20
  473. )
  474. type BpfVersion struct {
  475. Major uint16
  476. Minor uint16
  477. }
  478. type BpfStat struct {
  479. Recv uint32
  480. Drop uint32
  481. }
  482. type BpfZbuf struct {
  483. Bufa *byte
  484. Bufb *byte
  485. Buflen uint32
  486. }
  487. type BpfProgram struct {
  488. Len uint32
  489. Insns *BpfInsn
  490. }
  491. type BpfInsn struct {
  492. Code uint16
  493. Jt uint8
  494. Jf uint8
  495. K uint32
  496. }
  497. type BpfHdr struct {
  498. Tstamp Timeval
  499. Caplen uint32
  500. Datalen uint32
  501. Hdrlen uint16
  502. _ [6]byte
  503. }
  504. type BpfZbufHeader struct {
  505. Kernel_gen uint32
  506. Kernel_len uint32
  507. User_gen uint32
  508. _ [5]uint32
  509. }
  510. type Termios struct {
  511. Iflag uint32
  512. Oflag uint32
  513. Cflag uint32
  514. Lflag uint32
  515. Cc [20]uint8
  516. Ispeed uint32
  517. Ospeed uint32
  518. }
  519. type Winsize struct {
  520. Row uint16
  521. Col uint16
  522. Xpixel uint16
  523. Ypixel uint16
  524. }
  525. const (
  526. AT_FDCWD = -0x64
  527. AT_EACCESS = 0x100
  528. AT_SYMLINK_NOFOLLOW = 0x200
  529. AT_SYMLINK_FOLLOW = 0x400
  530. AT_REMOVEDIR = 0x800
  531. )
  532. type PollFd struct {
  533. Fd int32
  534. Events int16
  535. Revents int16
  536. }
  537. const (
  538. POLLERR = 0x8
  539. POLLHUP = 0x10
  540. POLLIN = 0x1
  541. POLLINIGNEOF = 0x2000
  542. POLLNVAL = 0x20
  543. POLLOUT = 0x4
  544. POLLPRI = 0x2
  545. POLLRDBAND = 0x80
  546. POLLRDNORM = 0x40
  547. POLLWRBAND = 0x100
  548. POLLWRNORM = 0x4
  549. )
  550. type CapRights struct {
  551. Rights [2]uint64
  552. }
  553. type Utsname struct {
  554. Sysname [256]byte
  555. Nodename [256]byte
  556. Release [256]byte
  557. Version [256]byte
  558. Machine [256]byte
  559. }
  560. const SizeofClockinfo = 0x14
  561. type Clockinfo struct {
  562. Hz int32
  563. Tick int32
  564. Spare int32
  565. Stathz int32
  566. Profhz int32
  567. }