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.
 
 
 

557 lignes
8.7 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. // +build arm,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 int64
  20. Nsec int32
  21. Pad_cgo_0 [4]byte
  22. }
  23. type Timeval struct {
  24. Sec int64
  25. Usec int32
  26. Pad_cgo_0 [4]byte
  27. }
  28. type Rusage struct {
  29. Utime Timeval
  30. Stime Timeval
  31. Maxrss int32
  32. Ixrss int32
  33. Idrss int32
  34. Isrss int32
  35. Minflt int32
  36. Majflt int32
  37. Nswap int32
  38. Inblock int32
  39. Oublock int32
  40. Msgsnd int32
  41. Msgrcv int32
  42. Nsignals int32
  43. Nvcsw int32
  44. Nivcsw int32
  45. }
  46. type Rlimit struct {
  47. Cur int64
  48. Max int64
  49. }
  50. type _Gid_t uint32
  51. const (
  52. S_IFMT = 0xf000
  53. S_IFIFO = 0x1000
  54. S_IFCHR = 0x2000
  55. S_IFDIR = 0x4000
  56. S_IFBLK = 0x6000
  57. S_IFREG = 0x8000
  58. S_IFLNK = 0xa000
  59. S_IFSOCK = 0xc000
  60. S_ISUID = 0x800
  61. S_ISGID = 0x400
  62. S_ISVTX = 0x200
  63. S_IRUSR = 0x100
  64. S_IWUSR = 0x80
  65. S_IXUSR = 0x40
  66. )
  67. type Stat_t struct {
  68. Dev uint32
  69. Ino uint32
  70. Mode uint16
  71. Nlink uint16
  72. Uid uint32
  73. Gid uint32
  74. Rdev uint32
  75. Atimespec Timespec
  76. Mtimespec Timespec
  77. Ctimespec Timespec
  78. Size int64
  79. Blocks int64
  80. Blksize int32
  81. Flags uint32
  82. Gen uint32
  83. Lspare int32
  84. Birthtimespec Timespec
  85. }
  86. type Statfs_t struct {
  87. Version uint32
  88. Type uint32
  89. Flags uint64
  90. Bsize uint64
  91. Iosize uint64
  92. Blocks uint64
  93. Bfree uint64
  94. Bavail int64
  95. Files uint64
  96. Ffree int64
  97. Syncwrites uint64
  98. Asyncwrites uint64
  99. Syncreads uint64
  100. Asyncreads uint64
  101. Spare [10]uint64
  102. Namemax uint32
  103. Owner uint32
  104. Fsid Fsid
  105. Charspare [80]int8
  106. Fstypename [16]int8
  107. Mntfromname [88]int8
  108. Mntonname [88]int8
  109. }
  110. type Flock_t struct {
  111. Start int64
  112. Len int64
  113. Pid int32
  114. Type int16
  115. Whence int16
  116. Sysid int32
  117. Pad_cgo_0 [4]byte
  118. }
  119. type Dirent struct {
  120. Fileno uint32
  121. Reclen uint16
  122. Type uint8
  123. Namlen uint8
  124. Name [256]int8
  125. }
  126. type Fsid struct {
  127. Val [2]int32
  128. }
  129. const (
  130. PathMax = 0x400
  131. )
  132. const (
  133. FADV_NORMAL = 0x0
  134. FADV_RANDOM = 0x1
  135. FADV_SEQUENTIAL = 0x2
  136. FADV_WILLNEED = 0x3
  137. FADV_DONTNEED = 0x4
  138. FADV_NOREUSE = 0x5
  139. )
  140. type RawSockaddrInet4 struct {
  141. Len uint8
  142. Family uint8
  143. Port uint16
  144. Addr [4]byte /* in_addr */
  145. Zero [8]int8
  146. }
  147. type RawSockaddrInet6 struct {
  148. Len uint8
  149. Family uint8
  150. Port uint16
  151. Flowinfo uint32
  152. Addr [16]byte /* in6_addr */
  153. Scope_id uint32
  154. }
  155. type RawSockaddrUnix struct {
  156. Len uint8
  157. Family uint8
  158. Path [104]int8
  159. }
  160. type RawSockaddrDatalink struct {
  161. Len uint8
  162. Family uint8
  163. Index uint16
  164. Type uint8
  165. Nlen uint8
  166. Alen uint8
  167. Slen uint8
  168. Data [46]int8
  169. }
  170. type RawSockaddr struct {
  171. Len uint8
  172. Family uint8
  173. Data [14]int8
  174. }
  175. type RawSockaddrAny struct {
  176. Addr RawSockaddr
  177. Pad [92]int8
  178. }
  179. type _Socklen uint32
  180. type Linger struct {
  181. Onoff int32
  182. Linger int32
  183. }
  184. type Iovec struct {
  185. Base *byte
  186. Len uint32
  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. SizeofLinger = 0x8
  233. SizeofIPMreq = 0x8
  234. SizeofIPMreqn = 0xc
  235. SizeofIPv6Mreq = 0x14
  236. SizeofMsghdr = 0x1c
  237. SizeofCmsghdr = 0xc
  238. SizeofInet6Pktinfo = 0x14
  239. SizeofIPv6MTUInfo = 0x20
  240. SizeofICMPv6Filter = 0x20
  241. )
  242. const (
  243. PTRACE_TRACEME = 0x0
  244. PTRACE_CONT = 0x7
  245. PTRACE_KILL = 0x8
  246. )
  247. type Kevent_t struct {
  248. Ident uint32
  249. Filter int16
  250. Flags uint16
  251. Fflags uint32
  252. Data int32
  253. Udata *byte
  254. }
  255. type FdSet struct {
  256. X__fds_bits [32]uint32
  257. }
  258. const (
  259. sizeofIfMsghdr = 0xa8
  260. SizeofIfMsghdr = 0x70
  261. sizeofIfData = 0x98
  262. SizeofIfData = 0x60
  263. SizeofIfaMsghdr = 0x14
  264. SizeofIfmaMsghdr = 0x10
  265. SizeofIfAnnounceMsghdr = 0x18
  266. SizeofRtMsghdr = 0x5c
  267. SizeofRtMetrics = 0x38
  268. )
  269. type ifMsghdr struct {
  270. Msglen uint16
  271. Version uint8
  272. Type uint8
  273. Addrs int32
  274. Flags int32
  275. Index uint16
  276. Pad_cgo_0 [2]byte
  277. Data ifData
  278. }
  279. type IfMsghdr struct {
  280. Msglen uint16
  281. Version uint8
  282. Type uint8
  283. Addrs int32
  284. Flags int32
  285. Index uint16
  286. Pad_cgo_0 [2]byte
  287. Data IfData
  288. }
  289. type ifData struct {
  290. Type uint8
  291. Physical uint8
  292. Addrlen uint8
  293. Hdrlen uint8
  294. Link_state uint8
  295. Vhid uint8
  296. Datalen uint16
  297. Mtu uint32
  298. Metric uint32
  299. Baudrate uint64
  300. Ipackets uint64
  301. Ierrors uint64
  302. Opackets uint64
  303. Oerrors uint64
  304. Collisions uint64
  305. Ibytes uint64
  306. Obytes uint64
  307. Imcasts uint64
  308. Omcasts uint64
  309. Iqdrops uint64
  310. Oqdrops uint64
  311. Noproto uint64
  312. Hwassist uint64
  313. X__ifi_epoch [8]byte
  314. X__ifi_lastchange [16]byte
  315. }
  316. type IfData struct {
  317. Type uint8
  318. Physical uint8
  319. Addrlen uint8
  320. Hdrlen uint8
  321. Link_state uint8
  322. Spare_char1 uint8
  323. Spare_char2 uint8
  324. Datalen uint8
  325. Mtu uint32
  326. Metric uint32
  327. Baudrate uint32
  328. Ipackets uint32
  329. Ierrors uint32
  330. Opackets uint32
  331. Oerrors uint32
  332. Collisions uint32
  333. Ibytes uint32
  334. Obytes uint32
  335. Imcasts uint32
  336. Omcasts uint32
  337. Iqdrops uint32
  338. Noproto uint32
  339. Hwassist uint32
  340. Pad_cgo_0 [4]byte
  341. Epoch int64
  342. Lastchange Timeval
  343. }
  344. type IfaMsghdr struct {
  345. Msglen uint16
  346. Version uint8
  347. Type uint8
  348. Addrs int32
  349. Flags int32
  350. Index uint16
  351. Pad_cgo_0 [2]byte
  352. Metric int32
  353. }
  354. type IfmaMsghdr struct {
  355. Msglen uint16
  356. Version uint8
  357. Type uint8
  358. Addrs int32
  359. Flags int32
  360. Index uint16
  361. Pad_cgo_0 [2]byte
  362. }
  363. type IfAnnounceMsghdr struct {
  364. Msglen uint16
  365. Version uint8
  366. Type uint8
  367. Index uint16
  368. Name [16]int8
  369. What uint16
  370. }
  371. type RtMsghdr struct {
  372. Msglen uint16
  373. Version uint8
  374. Type uint8
  375. Index uint16
  376. Pad_cgo_0 [2]byte
  377. Flags int32
  378. Addrs int32
  379. Pid int32
  380. Seq int32
  381. Errno int32
  382. Fmask int32
  383. Inits uint32
  384. Rmx RtMetrics
  385. }
  386. type RtMetrics struct {
  387. Locks uint32
  388. Mtu uint32
  389. Hopcount uint32
  390. Expire uint32
  391. Recvpipe uint32
  392. Sendpipe uint32
  393. Ssthresh uint32
  394. Rtt uint32
  395. Rttvar uint32
  396. Pksent uint32
  397. Weight uint32
  398. Filler [3]uint32
  399. }
  400. const (
  401. SizeofBpfVersion = 0x4
  402. SizeofBpfStat = 0x8
  403. SizeofBpfZbuf = 0xc
  404. SizeofBpfProgram = 0x8
  405. SizeofBpfInsn = 0x8
  406. SizeofBpfHdr = 0x20
  407. SizeofBpfZbufHeader = 0x20
  408. )
  409. type BpfVersion struct {
  410. Major uint16
  411. Minor uint16
  412. }
  413. type BpfStat struct {
  414. Recv uint32
  415. Drop uint32
  416. }
  417. type BpfZbuf struct {
  418. Bufa *byte
  419. Bufb *byte
  420. Buflen uint32
  421. }
  422. type BpfProgram struct {
  423. Len uint32
  424. Insns *BpfInsn
  425. }
  426. type BpfInsn struct {
  427. Code uint16
  428. Jt uint8
  429. Jf uint8
  430. K uint32
  431. }
  432. type BpfHdr struct {
  433. Tstamp Timeval
  434. Caplen uint32
  435. Datalen uint32
  436. Hdrlen uint16
  437. Pad_cgo_0 [6]byte
  438. }
  439. type BpfZbufHeader struct {
  440. Kernel_gen uint32
  441. Kernel_len uint32
  442. User_gen uint32
  443. X_bzh_pad [5]uint32
  444. }
  445. type Termios struct {
  446. Iflag uint32
  447. Oflag uint32
  448. Cflag uint32
  449. Lflag uint32
  450. Cc [20]uint8
  451. Ispeed uint32
  452. Ospeed uint32
  453. }
  454. type Winsize struct {
  455. Row uint16
  456. Col uint16
  457. Xpixel uint16
  458. Ypixel uint16
  459. }
  460. const (
  461. AT_FDCWD = -0x64
  462. AT_REMOVEDIR = 0x800
  463. AT_SYMLINK_FOLLOW = 0x400
  464. AT_SYMLINK_NOFOLLOW = 0x200
  465. )
  466. type PollFd struct {
  467. Fd int32
  468. Events int16
  469. Revents int16
  470. }
  471. const (
  472. POLLERR = 0x8
  473. POLLHUP = 0x10
  474. POLLIN = 0x1
  475. POLLINIGNEOF = 0x2000
  476. POLLNVAL = 0x20
  477. POLLOUT = 0x4
  478. POLLPRI = 0x2
  479. POLLRDBAND = 0x80
  480. POLLRDNORM = 0x40
  481. POLLWRBAND = 0x100
  482. POLLWRNORM = 0x4
  483. )
  484. type CapRights struct {
  485. Rights [2]uint64
  486. }
  487. type Utsname struct {
  488. Sysname [256]byte
  489. Nodename [256]byte
  490. Release [256]byte
  491. Version [256]byte
  492. Machine [256]byte
  493. }