25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

657 satır
9.7 KiB

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