PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/Godeps/_workspace/src/golang.org/x/sys/unix/ztypes_darwin_arm.go

https://gitlab.com/cowboygneox/gitlab-ci-multi-runner
Go | 449 lines | 390 code | 55 blank | 4 comment | 0 complexity | 8915f7d436dd9088ef8999ef87952304 MD5 | raw file
  1. // NOTE: cgo can't generate struct Stat_t and struct Statfs_t yet
  2. // Created by cgo -godefs - DO NOT EDIT
  3. // cgo -godefs types_darwin.go
  4. // +build arm,darwin
  5. package unix
  6. const (
  7. sizeofPtr = 0x4
  8. sizeofShort = 0x2
  9. sizeofInt = 0x4
  10. sizeofLong = 0x4
  11. sizeofLongLong = 0x8
  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 Timeval32 [0]byte
  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 uint64
  48. Max uint64
  49. }
  50. type _Gid_t uint32
  51. type Stat_t struct {
  52. Dev int32
  53. Mode uint16
  54. Nlink uint16
  55. Ino uint64
  56. Uid uint32
  57. Gid uint32
  58. Rdev int32
  59. Atimespec Timespec
  60. Mtimespec Timespec
  61. Ctimespec Timespec
  62. Birthtimespec Timespec
  63. Size int64
  64. Blocks int64
  65. Blksize int32
  66. Flags uint32
  67. Gen uint32
  68. Lspare int32
  69. Qspare [2]int64
  70. }
  71. type Statfs_t struct {
  72. Bsize uint32
  73. Iosize int32
  74. Blocks uint64
  75. Bfree uint64
  76. Bavail uint64
  77. Files uint64
  78. Ffree uint64
  79. Fsid Fsid
  80. Owner uint32
  81. Type uint32
  82. Flags uint32
  83. Fssubtype uint32
  84. Fstypename [16]int8
  85. Mntonname [1024]int8
  86. Mntfromname [1024]int8
  87. Reserved [8]uint32
  88. }
  89. type Flock_t struct {
  90. Start int64
  91. Len int64
  92. Pid int32
  93. Type int16
  94. Whence int16
  95. }
  96. type Fstore_t struct {
  97. Flags uint32
  98. Posmode int32
  99. Offset int64
  100. Length int64
  101. Bytesalloc int64
  102. }
  103. type Radvisory_t struct {
  104. Offset int64
  105. Count int32
  106. }
  107. type Fbootstraptransfer_t struct {
  108. Offset int64
  109. Length uint32
  110. Buffer *byte
  111. }
  112. type Log2phys_t struct {
  113. Flags uint32
  114. Contigbytes int64
  115. Devoffset int64
  116. }
  117. type Fsid struct {
  118. Val [2]int32
  119. }
  120. type Dirent struct {
  121. Ino uint64
  122. Seekoff uint64
  123. Reclen uint16
  124. Namlen uint16
  125. Type uint8
  126. Name [1024]int8
  127. Pad_cgo_0 [3]byte
  128. }
  129. type RawSockaddrInet4 struct {
  130. Len uint8
  131. Family uint8
  132. Port uint16
  133. Addr [4]byte /* in_addr */
  134. Zero [8]int8
  135. }
  136. type RawSockaddrInet6 struct {
  137. Len uint8
  138. Family uint8
  139. Port uint16
  140. Flowinfo uint32
  141. Addr [16]byte /* in6_addr */
  142. Scope_id uint32
  143. }
  144. type RawSockaddrUnix struct {
  145. Len uint8
  146. Family uint8
  147. Path [104]int8
  148. }
  149. type RawSockaddrDatalink struct {
  150. Len uint8
  151. Family uint8
  152. Index uint16
  153. Type uint8
  154. Nlen uint8
  155. Alen uint8
  156. Slen uint8
  157. Data [12]int8
  158. }
  159. type RawSockaddr struct {
  160. Len uint8
  161. Family uint8
  162. Data [14]int8
  163. }
  164. type RawSockaddrAny struct {
  165. Addr RawSockaddr
  166. Pad [92]int8
  167. }
  168. type _Socklen uint32
  169. type Linger struct {
  170. Onoff int32
  171. Linger int32
  172. }
  173. type Iovec struct {
  174. Base *byte
  175. Len uint32
  176. }
  177. type IPMreq struct {
  178. Multiaddr [4]byte /* in_addr */
  179. Interface [4]byte /* in_addr */
  180. }
  181. type IPv6Mreq struct {
  182. Multiaddr [16]byte /* in6_addr */
  183. Interface uint32
  184. }
  185. type Msghdr struct {
  186. Name *byte
  187. Namelen uint32
  188. Iov *Iovec
  189. Iovlen int32
  190. Control *byte
  191. Controllen uint32
  192. Flags int32
  193. }
  194. type Cmsghdr struct {
  195. Len uint32
  196. Level int32
  197. Type int32
  198. }
  199. type Inet4Pktinfo struct {
  200. Ifindex uint32
  201. Spec_dst [4]byte /* in_addr */
  202. Addr [4]byte /* in_addr */
  203. }
  204. type Inet6Pktinfo struct {
  205. Addr [16]byte /* in6_addr */
  206. Ifindex uint32
  207. }
  208. type IPv6MTUInfo struct {
  209. Addr RawSockaddrInet6
  210. Mtu uint32
  211. }
  212. type ICMPv6Filter struct {
  213. Filt [8]uint32
  214. }
  215. const (
  216. SizeofSockaddrInet4 = 0x10
  217. SizeofSockaddrInet6 = 0x1c
  218. SizeofSockaddrAny = 0x6c
  219. SizeofSockaddrUnix = 0x6a
  220. SizeofSockaddrDatalink = 0x14
  221. SizeofLinger = 0x8
  222. SizeofIPMreq = 0x8
  223. SizeofIPv6Mreq = 0x14
  224. SizeofMsghdr = 0x1c
  225. SizeofCmsghdr = 0xc
  226. SizeofInet4Pktinfo = 0xc
  227. SizeofInet6Pktinfo = 0x14
  228. SizeofIPv6MTUInfo = 0x20
  229. SizeofICMPv6Filter = 0x20
  230. )
  231. const (
  232. PTRACE_TRACEME = 0x0
  233. PTRACE_CONT = 0x7
  234. PTRACE_KILL = 0x8
  235. )
  236. type Kevent_t struct {
  237. Ident uint32
  238. Filter int16
  239. Flags uint16
  240. Fflags uint32
  241. Data int32
  242. Udata *byte
  243. }
  244. type FdSet struct {
  245. Bits [32]int32
  246. }
  247. const (
  248. SizeofIfMsghdr = 0x70
  249. SizeofIfData = 0x60
  250. SizeofIfaMsghdr = 0x14
  251. SizeofIfmaMsghdr = 0x10
  252. SizeofIfmaMsghdr2 = 0x14
  253. SizeofRtMsghdr = 0x5c
  254. SizeofRtMetrics = 0x38
  255. )
  256. type IfMsghdr struct {
  257. Msglen uint16
  258. Version uint8
  259. Type uint8
  260. Addrs int32
  261. Flags int32
  262. Index uint16
  263. Pad_cgo_0 [2]byte
  264. Data IfData
  265. }
  266. type IfData struct {
  267. Type uint8
  268. Typelen uint8
  269. Physical uint8
  270. Addrlen uint8
  271. Hdrlen uint8
  272. Recvquota uint8
  273. Xmitquota uint8
  274. Unused1 uint8
  275. Mtu uint32
  276. Metric uint32
  277. Baudrate uint32
  278. Ipackets uint32
  279. Ierrors uint32
  280. Opackets uint32
  281. Oerrors uint32
  282. Collisions uint32
  283. Ibytes uint32
  284. Obytes uint32
  285. Imcasts uint32
  286. Omcasts uint32
  287. Iqdrops uint32
  288. Noproto uint32
  289. Recvtiming uint32
  290. Xmittiming uint32
  291. Lastchange Timeval
  292. Unused2 uint32
  293. Hwassist uint32
  294. Reserved1 uint32
  295. Reserved2 uint32
  296. }
  297. type IfaMsghdr struct {
  298. Msglen uint16
  299. Version uint8
  300. Type uint8
  301. Addrs int32
  302. Flags int32
  303. Index uint16
  304. Pad_cgo_0 [2]byte
  305. Metric int32
  306. }
  307. type IfmaMsghdr struct {
  308. Msglen uint16
  309. Version uint8
  310. Type uint8
  311. Addrs int32
  312. Flags int32
  313. Index uint16
  314. Pad_cgo_0 [2]byte
  315. }
  316. type IfmaMsghdr2 struct {
  317. Msglen uint16
  318. Version uint8
  319. Type uint8
  320. Addrs int32
  321. Flags int32
  322. Index uint16
  323. Pad_cgo_0 [2]byte
  324. Refcount int32
  325. }
  326. type RtMsghdr struct {
  327. Msglen uint16
  328. Version uint8
  329. Type uint8
  330. Index uint16
  331. Pad_cgo_0 [2]byte
  332. Flags int32
  333. Addrs int32
  334. Pid int32
  335. Seq int32
  336. Errno int32
  337. Use int32
  338. Inits uint32
  339. Rmx RtMetrics
  340. }
  341. type RtMetrics struct {
  342. Locks uint32
  343. Mtu uint32
  344. Hopcount uint32
  345. Expire int32
  346. Recvpipe uint32
  347. Sendpipe uint32
  348. Ssthresh uint32
  349. Rtt uint32
  350. Rttvar uint32
  351. Pksent uint32
  352. Filler [4]uint32
  353. }
  354. const (
  355. SizeofBpfVersion = 0x4
  356. SizeofBpfStat = 0x8
  357. SizeofBpfProgram = 0x8
  358. SizeofBpfInsn = 0x8
  359. SizeofBpfHdr = 0x14
  360. )
  361. type BpfVersion struct {
  362. Major uint16
  363. Minor uint16
  364. }
  365. type BpfStat struct {
  366. Recv uint32
  367. Drop uint32
  368. }
  369. type BpfProgram struct {
  370. Len uint32
  371. Insns *BpfInsn
  372. }
  373. type BpfInsn struct {
  374. Code uint16
  375. Jt uint8
  376. Jf uint8
  377. K uint32
  378. }
  379. type BpfHdr struct {
  380. Tstamp Timeval
  381. Caplen uint32
  382. Datalen uint32
  383. Hdrlen uint16
  384. Pad_cgo_0 [2]byte
  385. }
  386. type Termios struct {
  387. Iflag uint32
  388. Oflag uint32
  389. Cflag uint32
  390. Lflag uint32
  391. Cc [20]uint8
  392. Ispeed uint32
  393. Ospeed uint32
  394. }