PageRenderTime 76ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 0ms

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

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