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_linux_arm.go 10KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  1. // +build arm,linux
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_linux.go
  4. package unix
  5. const (
  6. sizeofPtr = 0x4
  7. sizeofShort = 0x2
  8. sizeofInt = 0x4
  9. sizeofLong = 0x4
  10. sizeofLongLong = 0x8
  11. PathMax = 0x1000
  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 int32
  21. Nsec int32
  22. }
  23. type Timeval struct {
  24. Sec int32
  25. Usec int32
  26. }
  27. type Timex struct {
  28. Modes uint32
  29. Offset int32
  30. Freq int32
  31. Maxerror int32
  32. Esterror int32
  33. Status int32
  34. Constant int32
  35. Precision int32
  36. Tolerance int32
  37. Time Timeval
  38. Tick int32
  39. Ppsfreq int32
  40. Jitter int32
  41. Shift int32
  42. Stabil int32
  43. Jitcnt int32
  44. Calcnt int32
  45. Errcnt int32
  46. Stbcnt int32
  47. Tai int32
  48. Pad_cgo_0 [44]byte
  49. }
  50. type Time_t int32
  51. type Tms struct {
  52. Utime int32
  53. Stime int32
  54. Cutime int32
  55. Cstime int32
  56. }
  57. type Utimbuf struct {
  58. Actime int32
  59. Modtime int32
  60. }
  61. type Rusage struct {
  62. Utime Timeval
  63. Stime Timeval
  64. Maxrss int32
  65. Ixrss int32
  66. Idrss int32
  67. Isrss int32
  68. Minflt int32
  69. Majflt int32
  70. Nswap int32
  71. Inblock int32
  72. Oublock int32
  73. Msgsnd int32
  74. Msgrcv int32
  75. Nsignals int32
  76. Nvcsw int32
  77. Nivcsw int32
  78. }
  79. type Rlimit struct {
  80. Cur uint64
  81. Max uint64
  82. }
  83. type _Gid_t uint32
  84. type Stat_t struct {
  85. Dev uint64
  86. X__pad1 uint16
  87. Pad_cgo_0 [2]byte
  88. X__st_ino uint32
  89. Mode uint32
  90. Nlink uint32
  91. Uid uint32
  92. Gid uint32
  93. Rdev uint64
  94. X__pad2 uint16
  95. Pad_cgo_1 [6]byte
  96. Size int64
  97. Blksize int32
  98. Pad_cgo_2 [4]byte
  99. Blocks int64
  100. Atim Timespec
  101. Mtim Timespec
  102. Ctim Timespec
  103. Ino uint64
  104. }
  105. type Statfs_t struct {
  106. Type int32
  107. Bsize int32
  108. Blocks uint64
  109. Bfree uint64
  110. Bavail uint64
  111. Files uint64
  112. Ffree uint64
  113. Fsid Fsid
  114. Namelen int32
  115. Frsize int32
  116. Flags int32
  117. Spare [4]int32
  118. Pad_cgo_0 [4]byte
  119. }
  120. type Dirent struct {
  121. Ino uint64
  122. Off int64
  123. Reclen uint16
  124. Type uint8
  125. Name [256]uint8
  126. Pad_cgo_0 [5]byte
  127. }
  128. type Fsid struct {
  129. X__val [2]int32
  130. }
  131. type Flock_t struct {
  132. Type int16
  133. Whence int16
  134. Pad_cgo_0 [4]byte
  135. Start int64
  136. Len int64
  137. Pid int32
  138. Pad_cgo_1 [4]byte
  139. }
  140. type RawSockaddrInet4 struct {
  141. Family uint16
  142. Port uint16
  143. Addr [4]byte /* in_addr */
  144. Zero [8]uint8
  145. }
  146. type RawSockaddrInet6 struct {
  147. Family uint16
  148. Port uint16
  149. Flowinfo uint32
  150. Addr [16]byte /* in6_addr */
  151. Scope_id uint32
  152. }
  153. type RawSockaddrUnix struct {
  154. Family uint16
  155. Path [108]int8
  156. }
  157. type RawSockaddrLinklayer struct {
  158. Family uint16
  159. Protocol uint16
  160. Ifindex int32
  161. Hatype uint16
  162. Pkttype uint8
  163. Halen uint8
  164. Addr [8]uint8
  165. }
  166. type RawSockaddrNetlink struct {
  167. Family uint16
  168. Pad uint16
  169. Pid uint32
  170. Groups uint32
  171. }
  172. type RawSockaddrHCI struct {
  173. Family uint16
  174. Dev uint16
  175. Channel uint16
  176. }
  177. type RawSockaddr struct {
  178. Family uint16
  179. Data [14]uint8
  180. }
  181. type RawSockaddrAny struct {
  182. Addr RawSockaddr
  183. Pad [96]uint8
  184. }
  185. type _Socklen uint32
  186. type Linger struct {
  187. Onoff int32
  188. Linger int32
  189. }
  190. type Iovec struct {
  191. Base *byte
  192. Len uint32
  193. }
  194. type IPMreq struct {
  195. Multiaddr [4]byte /* in_addr */
  196. Interface [4]byte /* in_addr */
  197. }
  198. type IPMreqn struct {
  199. Multiaddr [4]byte /* in_addr */
  200. Address [4]byte /* in_addr */
  201. Ifindex int32
  202. }
  203. type IPv6Mreq struct {
  204. Multiaddr [16]byte /* in6_addr */
  205. Interface uint32
  206. }
  207. type Msghdr struct {
  208. Name *byte
  209. Namelen uint32
  210. Iov *Iovec
  211. Iovlen uint32
  212. Control *byte
  213. Controllen uint32
  214. Flags int32
  215. }
  216. type Cmsghdr struct {
  217. Len uint32
  218. Level int32
  219. Type int32
  220. X__cmsg_data [0]uint8
  221. }
  222. type Inet4Pktinfo struct {
  223. Ifindex int32
  224. Spec_dst [4]byte /* in_addr */
  225. Addr [4]byte /* in_addr */
  226. }
  227. type Inet6Pktinfo struct {
  228. Addr [16]byte /* in6_addr */
  229. Ifindex uint32
  230. }
  231. type IPv6MTUInfo struct {
  232. Addr RawSockaddrInet6
  233. Mtu uint32
  234. }
  235. type ICMPv6Filter struct {
  236. Data [8]uint32
  237. }
  238. type Ucred struct {
  239. Pid int32
  240. Uid uint32
  241. Gid uint32
  242. }
  243. type TCPInfo struct {
  244. State uint8
  245. Ca_state uint8
  246. Retransmits uint8
  247. Probes uint8
  248. Backoff uint8
  249. Options uint8
  250. Pad_cgo_0 [2]byte
  251. Rto uint32
  252. Ato uint32
  253. Snd_mss uint32
  254. Rcv_mss uint32
  255. Unacked uint32
  256. Sacked uint32
  257. Lost uint32
  258. Retrans uint32
  259. Fackets uint32
  260. Last_data_sent uint32
  261. Last_ack_sent uint32
  262. Last_data_recv uint32
  263. Last_ack_recv uint32
  264. Pmtu uint32
  265. Rcv_ssthresh uint32
  266. Rtt uint32
  267. Rttvar uint32
  268. Snd_ssthresh uint32
  269. Snd_cwnd uint32
  270. Advmss uint32
  271. Reordering uint32
  272. Rcv_rtt uint32
  273. Rcv_space uint32
  274. Total_retrans uint32
  275. }
  276. const (
  277. SizeofSockaddrInet4 = 0x10
  278. SizeofSockaddrInet6 = 0x1c
  279. SizeofSockaddrAny = 0x70
  280. SizeofSockaddrUnix = 0x6e
  281. SizeofSockaddrLinklayer = 0x14
  282. SizeofSockaddrNetlink = 0xc
  283. SizeofSockaddrHCI = 0x6
  284. SizeofLinger = 0x8
  285. SizeofIPMreq = 0x8
  286. SizeofIPMreqn = 0xc
  287. SizeofIPv6Mreq = 0x14
  288. SizeofMsghdr = 0x1c
  289. SizeofCmsghdr = 0xc
  290. SizeofInet4Pktinfo = 0xc
  291. SizeofInet6Pktinfo = 0x14
  292. SizeofIPv6MTUInfo = 0x20
  293. SizeofICMPv6Filter = 0x20
  294. SizeofUcred = 0xc
  295. SizeofTCPInfo = 0x68
  296. )
  297. const (
  298. IFA_UNSPEC = 0x0
  299. IFA_ADDRESS = 0x1
  300. IFA_LOCAL = 0x2
  301. IFA_LABEL = 0x3
  302. IFA_BROADCAST = 0x4
  303. IFA_ANYCAST = 0x5
  304. IFA_CACHEINFO = 0x6
  305. IFA_MULTICAST = 0x7
  306. IFLA_UNSPEC = 0x0
  307. IFLA_ADDRESS = 0x1
  308. IFLA_BROADCAST = 0x2
  309. IFLA_IFNAME = 0x3
  310. IFLA_MTU = 0x4
  311. IFLA_LINK = 0x5
  312. IFLA_QDISC = 0x6
  313. IFLA_STATS = 0x7
  314. IFLA_COST = 0x8
  315. IFLA_PRIORITY = 0x9
  316. IFLA_MASTER = 0xa
  317. IFLA_WIRELESS = 0xb
  318. IFLA_PROTINFO = 0xc
  319. IFLA_TXQLEN = 0xd
  320. IFLA_MAP = 0xe
  321. IFLA_WEIGHT = 0xf
  322. IFLA_OPERSTATE = 0x10
  323. IFLA_LINKMODE = 0x11
  324. IFLA_LINKINFO = 0x12
  325. IFLA_NET_NS_PID = 0x13
  326. IFLA_IFALIAS = 0x14
  327. IFLA_MAX = 0x1d
  328. RT_SCOPE_UNIVERSE = 0x0
  329. RT_SCOPE_SITE = 0xc8
  330. RT_SCOPE_LINK = 0xfd
  331. RT_SCOPE_HOST = 0xfe
  332. RT_SCOPE_NOWHERE = 0xff
  333. RT_TABLE_UNSPEC = 0x0
  334. RT_TABLE_COMPAT = 0xfc
  335. RT_TABLE_DEFAULT = 0xfd
  336. RT_TABLE_MAIN = 0xfe
  337. RT_TABLE_LOCAL = 0xff
  338. RT_TABLE_MAX = 0xffffffff
  339. RTA_UNSPEC = 0x0
  340. RTA_DST = 0x1
  341. RTA_SRC = 0x2
  342. RTA_IIF = 0x3
  343. RTA_OIF = 0x4
  344. RTA_GATEWAY = 0x5
  345. RTA_PRIORITY = 0x6
  346. RTA_PREFSRC = 0x7
  347. RTA_METRICS = 0x8
  348. RTA_MULTIPATH = 0x9
  349. RTA_FLOW = 0xb
  350. RTA_CACHEINFO = 0xc
  351. RTA_TABLE = 0xf
  352. RTN_UNSPEC = 0x0
  353. RTN_UNICAST = 0x1
  354. RTN_LOCAL = 0x2
  355. RTN_BROADCAST = 0x3
  356. RTN_ANYCAST = 0x4
  357. RTN_MULTICAST = 0x5
  358. RTN_BLACKHOLE = 0x6
  359. RTN_UNREACHABLE = 0x7
  360. RTN_PROHIBIT = 0x8
  361. RTN_THROW = 0x9
  362. RTN_NAT = 0xa
  363. RTN_XRESOLVE = 0xb
  364. RTNLGRP_NONE = 0x0
  365. RTNLGRP_LINK = 0x1
  366. RTNLGRP_NOTIFY = 0x2
  367. RTNLGRP_NEIGH = 0x3
  368. RTNLGRP_TC = 0x4
  369. RTNLGRP_IPV4_IFADDR = 0x5
  370. RTNLGRP_IPV4_MROUTE = 0x6
  371. RTNLGRP_IPV4_ROUTE = 0x7
  372. RTNLGRP_IPV4_RULE = 0x8
  373. RTNLGRP_IPV6_IFADDR = 0x9
  374. RTNLGRP_IPV6_MROUTE = 0xa
  375. RTNLGRP_IPV6_ROUTE = 0xb
  376. RTNLGRP_IPV6_IFINFO = 0xc
  377. RTNLGRP_IPV6_PREFIX = 0x12
  378. RTNLGRP_IPV6_RULE = 0x13
  379. RTNLGRP_ND_USEROPT = 0x14
  380. SizeofNlMsghdr = 0x10
  381. SizeofNlMsgerr = 0x14
  382. SizeofRtGenmsg = 0x1
  383. SizeofNlAttr = 0x4
  384. SizeofRtAttr = 0x4
  385. SizeofIfInfomsg = 0x10
  386. SizeofIfAddrmsg = 0x8
  387. SizeofRtMsg = 0xc
  388. SizeofRtNexthop = 0x8
  389. )
  390. type NlMsghdr struct {
  391. Len uint32
  392. Type uint16
  393. Flags uint16
  394. Seq uint32
  395. Pid uint32
  396. }
  397. type NlMsgerr struct {
  398. Error int32
  399. Msg NlMsghdr
  400. }
  401. type RtGenmsg struct {
  402. Family uint8
  403. }
  404. type NlAttr struct {
  405. Len uint16
  406. Type uint16
  407. }
  408. type RtAttr struct {
  409. Len uint16
  410. Type uint16
  411. }
  412. type IfInfomsg struct {
  413. Family uint8
  414. X__ifi_pad uint8
  415. Type uint16
  416. Index int32
  417. Flags uint32
  418. Change uint32
  419. }
  420. type IfAddrmsg struct {
  421. Family uint8
  422. Prefixlen uint8
  423. Flags uint8
  424. Scope uint8
  425. Index uint32
  426. }
  427. type RtMsg struct {
  428. Family uint8
  429. Dst_len uint8
  430. Src_len uint8
  431. Tos uint8
  432. Table uint8
  433. Protocol uint8
  434. Scope uint8
  435. Type uint8
  436. Flags uint32
  437. }
  438. type RtNexthop struct {
  439. Len uint16
  440. Flags uint8
  441. Hops uint8
  442. Ifindex int32
  443. }
  444. const (
  445. SizeofSockFilter = 0x8
  446. SizeofSockFprog = 0x8
  447. )
  448. type SockFilter struct {
  449. Code uint16
  450. Jt uint8
  451. Jf uint8
  452. K uint32
  453. }
  454. type SockFprog struct {
  455. Len uint16
  456. Pad_cgo_0 [2]byte
  457. Filter *SockFilter
  458. }
  459. type InotifyEvent struct {
  460. Wd int32
  461. Mask uint32
  462. Cookie uint32
  463. Len uint32
  464. Name [0]uint8
  465. }
  466. const SizeofInotifyEvent = 0x10
  467. type PtraceRegs struct {
  468. Uregs [18]uint32
  469. }
  470. type FdSet struct {
  471. Bits [32]int32
  472. }
  473. type Sysinfo_t struct {
  474. Uptime int32
  475. Loads [3]uint32
  476. Totalram uint32
  477. Freeram uint32
  478. Sharedram uint32
  479. Bufferram uint32
  480. Totalswap uint32
  481. Freeswap uint32
  482. Procs uint16
  483. Pad uint16
  484. Totalhigh uint32
  485. Freehigh uint32
  486. Unit uint32
  487. X_f [8]uint8
  488. }
  489. type Utsname struct {
  490. Sysname [65]uint8
  491. Nodename [65]uint8
  492. Release [65]uint8
  493. Version [65]uint8
  494. Machine [65]uint8
  495. Domainname [65]uint8
  496. }
  497. type Ustat_t struct {
  498. Tfree int32
  499. Tinode uint32
  500. Fname [6]uint8
  501. Fpack [6]uint8
  502. }
  503. type EpollEvent struct {
  504. Events uint32
  505. PadFd int32
  506. Fd int32
  507. Pad int32
  508. }
  509. const (
  510. AT_FDCWD = -0x64
  511. AT_REMOVEDIR = 0x200
  512. AT_SYMLINK_FOLLOW = 0x400
  513. AT_SYMLINK_NOFOLLOW = 0x100
  514. )
  515. type PollFd struct {
  516. Fd int32
  517. Events int16
  518. Revents int16
  519. }
  520. const (
  521. POLLIN = 0x1
  522. POLLPRI = 0x2
  523. POLLOUT = 0x4
  524. POLLRDHUP = 0x2000
  525. POLLERR = 0x8
  526. POLLHUP = 0x10
  527. POLLNVAL = 0x20
  528. )
  529. type Sigset_t struct {
  530. X__val [16]uint64
  531. }
  532. type Termios struct {
  533. Iflag uint32
  534. Oflag uint32
  535. Cflag uint32
  536. Lflag uint32
  537. Line uint8
  538. Cc [19]uint8
  539. Ispeed uint32
  540. Ospeed uint32
  541. }