Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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