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_386.go 9.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650
  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 386 && 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 int32
  20. Nsec int32
  21. }
  22. type Timeval struct {
  23. Sec int32
  24. Usec int32
  25. }
  26. type Time_t int32
  27. type Rusage struct {
  28. Utime Timeval
  29. Stime Timeval
  30. Maxrss int32
  31. Ixrss int32
  32. Idrss int32
  33. Isrss int32
  34. Minflt int32
  35. Majflt int32
  36. Nswap int32
  37. Inblock int32
  38. Oublock int32
  39. Msgsnd int32
  40. Msgrcv int32
  41. Nsignals int32
  42. Nvcsw int32
  43. Nivcsw int32
  44. }
  45. type Rlimit struct {
  46. Cur int64
  47. Max int64
  48. }
  49. type _Gid_t uint32
  50. const (
  51. _statfsVersion = 0x20140518
  52. _dirblksiz = 0x400
  53. )
  54. type Stat_t struct {
  55. Dev uint64
  56. Ino uint64
  57. Nlink uint64
  58. Mode uint16
  59. _0 int16
  60. Uid uint32
  61. Gid uint32
  62. _1 int32
  63. Rdev uint64
  64. _ int32
  65. Atim Timespec
  66. _ int32
  67. Mtim Timespec
  68. _ int32
  69. Ctim Timespec
  70. _ int32
  71. Btim Timespec
  72. Size int64
  73. Blocks int64
  74. Blksize int32
  75. Flags uint32
  76. Gen uint64
  77. Spare [10]uint64
  78. }
  79. type Statfs_t struct {
  80. Version uint32
  81. Type uint32
  82. Flags uint64
  83. Bsize uint64
  84. Iosize uint64
  85. Blocks uint64
  86. Bfree uint64
  87. Bavail int64
  88. Files uint64
  89. Ffree int64
  90. Syncwrites uint64
  91. Asyncwrites uint64
  92. Syncreads uint64
  93. Asyncreads uint64
  94. Spare [10]uint64
  95. Namemax uint32
  96. Owner uint32
  97. Fsid Fsid
  98. Charspare [80]int8
  99. Fstypename [16]byte
  100. Mntfromname [1024]byte
  101. Mntonname [1024]byte
  102. }
  103. type Flock_t struct {
  104. Start int64
  105. Len int64
  106. Pid int32
  107. Type int16
  108. Whence int16
  109. Sysid int32
  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. Fs uint32
  290. Es uint32
  291. Ds uint32
  292. Edi uint32
  293. Esi uint32
  294. Ebp uint32
  295. Isp uint32
  296. Ebx uint32
  297. Edx uint32
  298. Ecx uint32
  299. Eax uint32
  300. Trapno uint32
  301. Err uint32
  302. Eip uint32
  303. Cs uint32
  304. Eflags uint32
  305. Esp uint32
  306. Ss uint32
  307. Gs uint32
  308. }
  309. type FpReg struct {
  310. Env [7]uint32
  311. Acc [8][10]uint8
  312. Ex_sw uint32
  313. Pad [64]uint8
  314. }
  315. type FpExtendedPrecision struct{}
  316. type PtraceIoDesc struct {
  317. Op int32
  318. Offs uintptr
  319. Addr *byte
  320. Len uint32
  321. }
  322. type Kevent_t struct {
  323. Ident uint32
  324. Filter int16
  325. Flags uint16
  326. Fflags uint32
  327. Data int64
  328. Udata *byte
  329. Ext [4]uint64
  330. }
  331. type FdSet struct {
  332. Bits [32]uint32
  333. }
  334. const (
  335. sizeofIfMsghdr = 0xa8
  336. SizeofIfMsghdr = 0x60
  337. sizeofIfData = 0x98
  338. SizeofIfData = 0x50
  339. SizeofIfaMsghdr = 0x14
  340. SizeofIfmaMsghdr = 0x10
  341. SizeofIfAnnounceMsghdr = 0x18
  342. SizeofRtMsghdr = 0x5c
  343. SizeofRtMetrics = 0x38
  344. )
  345. type ifMsghdr struct {
  346. Msglen uint16
  347. Version uint8
  348. Type uint8
  349. Addrs int32
  350. Flags int32
  351. Index uint16
  352. _ uint16
  353. Data ifData
  354. }
  355. type IfMsghdr struct {
  356. Msglen uint16
  357. Version uint8
  358. Type uint8
  359. Addrs int32
  360. Flags int32
  361. Index uint16
  362. Data IfData
  363. }
  364. type ifData struct {
  365. Type uint8
  366. Physical uint8
  367. Addrlen uint8
  368. Hdrlen uint8
  369. Link_state uint8
  370. Vhid uint8
  371. Datalen uint16
  372. Mtu uint32
  373. Metric uint32
  374. Baudrate uint64
  375. Ipackets uint64
  376. Ierrors uint64
  377. Opackets uint64
  378. Oerrors uint64
  379. Collisions uint64
  380. Ibytes uint64
  381. Obytes uint64
  382. Imcasts uint64
  383. Omcasts uint64
  384. Iqdrops uint64
  385. Oqdrops uint64
  386. Noproto uint64
  387. Hwassist uint64
  388. _ [8]byte
  389. _ [16]byte
  390. }
  391. type IfData struct {
  392. Type uint8
  393. Physical uint8
  394. Addrlen uint8
  395. Hdrlen uint8
  396. Link_state uint8
  397. Spare_char1 uint8
  398. Spare_char2 uint8
  399. Datalen uint8
  400. Mtu uint32
  401. Metric uint32
  402. Baudrate uint32
  403. Ipackets uint32
  404. Ierrors uint32
  405. Opackets uint32
  406. Oerrors uint32
  407. Collisions uint32
  408. Ibytes uint32
  409. Obytes uint32
  410. Imcasts uint32
  411. Omcasts uint32
  412. Iqdrops uint32
  413. Noproto uint32
  414. Hwassist uint32
  415. Epoch int32
  416. Lastchange Timeval
  417. }
  418. type IfaMsghdr struct {
  419. Msglen uint16
  420. Version uint8
  421. Type uint8
  422. Addrs int32
  423. Flags int32
  424. Index uint16
  425. _ uint16
  426. Metric int32
  427. }
  428. type IfmaMsghdr struct {
  429. Msglen uint16
  430. Version uint8
  431. Type uint8
  432. Addrs int32
  433. Flags int32
  434. Index uint16
  435. _ uint16
  436. }
  437. type IfAnnounceMsghdr struct {
  438. Msglen uint16
  439. Version uint8
  440. Type uint8
  441. Index uint16
  442. Name [16]int8
  443. What uint16
  444. }
  445. type RtMsghdr struct {
  446. Msglen uint16
  447. Version uint8
  448. Type uint8
  449. Index uint16
  450. _ uint16
  451. Flags int32
  452. Addrs int32
  453. Pid int32
  454. Seq int32
  455. Errno int32
  456. Fmask int32
  457. Inits uint32
  458. Rmx RtMetrics
  459. }
  460. type RtMetrics struct {
  461. Locks uint32
  462. Mtu uint32
  463. Hopcount uint32
  464. Expire uint32
  465. Recvpipe uint32
  466. Sendpipe uint32
  467. Ssthresh uint32
  468. Rtt uint32
  469. Rttvar uint32
  470. Pksent uint32
  471. Weight uint32
  472. Filler [3]uint32
  473. }
  474. const (
  475. SizeofBpfVersion = 0x4
  476. SizeofBpfStat = 0x8
  477. SizeofBpfZbuf = 0xc
  478. SizeofBpfProgram = 0x8
  479. SizeofBpfInsn = 0x8
  480. SizeofBpfHdr = 0x14
  481. SizeofBpfZbufHeader = 0x20
  482. )
  483. type BpfVersion struct {
  484. Major uint16
  485. Minor uint16
  486. }
  487. type BpfStat struct {
  488. Recv uint32
  489. Drop uint32
  490. }
  491. type BpfZbuf struct {
  492. Bufa *byte
  493. Bufb *byte
  494. Buflen uint32
  495. }
  496. type BpfProgram struct {
  497. Len uint32
  498. Insns *BpfInsn
  499. }
  500. type BpfInsn struct {
  501. Code uint16
  502. Jt uint8
  503. Jf uint8
  504. K uint32
  505. }
  506. type BpfHdr struct {
  507. Tstamp Timeval
  508. Caplen uint32
  509. Datalen uint32
  510. Hdrlen uint16
  511. _ [2]byte
  512. }
  513. type BpfZbufHeader struct {
  514. Kernel_gen uint32
  515. Kernel_len uint32
  516. User_gen uint32
  517. _ [5]uint32
  518. }
  519. type Termios struct {
  520. Iflag uint32
  521. Oflag uint32
  522. Cflag uint32
  523. Lflag uint32
  524. Cc [20]uint8
  525. Ispeed uint32
  526. Ospeed uint32
  527. }
  528. type Winsize struct {
  529. Row uint16
  530. Col uint16
  531. Xpixel uint16
  532. Ypixel uint16
  533. }
  534. const (
  535. AT_FDCWD = -0x64
  536. AT_EACCESS = 0x100
  537. AT_SYMLINK_NOFOLLOW = 0x200
  538. AT_SYMLINK_FOLLOW = 0x400
  539. AT_REMOVEDIR = 0x800
  540. )
  541. type PollFd struct {
  542. Fd int32
  543. Events int16
  544. Revents int16
  545. }
  546. const (
  547. POLLERR = 0x8
  548. POLLHUP = 0x10
  549. POLLIN = 0x1
  550. POLLINIGNEOF = 0x2000
  551. POLLNVAL = 0x20
  552. POLLOUT = 0x4
  553. POLLPRI = 0x2
  554. POLLRDBAND = 0x80
  555. POLLRDNORM = 0x40
  556. POLLWRBAND = 0x100
  557. POLLWRNORM = 0x4
  558. )
  559. type CapRights struct {
  560. Rights [2]uint64
  561. }
  562. type Utsname struct {
  563. Sysname [256]byte
  564. Nodename [256]byte
  565. Release [256]byte
  566. Version [256]byte
  567. Machine [256]byte
  568. }
  569. const SizeofClockinfo = 0x14
  570. type Clockinfo struct {
  571. Hz int32
  572. Tick int32
  573. Spare int32
  574. Stathz int32
  575. Profhz int32
  576. }