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_darwin_arm.go 7.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515
  1. // cgo -godefs types_darwin.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build arm,darwin
  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 Timeval32 struct{}
  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 uint64
  47. Max uint64
  48. }
  49. type _Gid_t uint32
  50. type Stat_t struct {
  51. Dev int32
  52. Mode uint16
  53. Nlink uint16
  54. Ino uint64
  55. Uid uint32
  56. Gid uint32
  57. Rdev int32
  58. Atim Timespec
  59. Mtim Timespec
  60. Ctim Timespec
  61. Btim Timespec
  62. Size int64
  63. Blocks int64
  64. Blksize int32
  65. Flags uint32
  66. Gen uint32
  67. Lspare int32
  68. Qspare [2]int64
  69. }
  70. type Statfs_t struct {
  71. Bsize uint32
  72. Iosize int32
  73. Blocks uint64
  74. Bfree uint64
  75. Bavail uint64
  76. Files uint64
  77. Ffree uint64
  78. Fsid Fsid
  79. Owner uint32
  80. Type uint32
  81. Flags uint32
  82. Fssubtype uint32
  83. Fstypename [16]byte
  84. Mntonname [1024]byte
  85. Mntfromname [1024]byte
  86. Reserved [8]uint32
  87. }
  88. type Flock_t struct {
  89. Start int64
  90. Len int64
  91. Pid int32
  92. Type int16
  93. Whence int16
  94. }
  95. type Fstore_t struct {
  96. Flags uint32
  97. Posmode int32
  98. Offset int64
  99. Length int64
  100. Bytesalloc int64
  101. }
  102. type Radvisory_t struct {
  103. Offset int64
  104. Count int32
  105. }
  106. type Fbootstraptransfer_t struct {
  107. Offset int64
  108. Length uint32
  109. Buffer *byte
  110. }
  111. type Log2phys_t struct {
  112. Flags uint32
  113. Contigbytes int64
  114. Devoffset int64
  115. }
  116. type Fsid struct {
  117. Val [2]int32
  118. }
  119. type Dirent struct {
  120. Ino uint64
  121. Seekoff uint64
  122. Reclen uint16
  123. Namlen uint16
  124. Type uint8
  125. Name [1024]int8
  126. _ [3]byte
  127. }
  128. const (
  129. PathMax = 0x400
  130. )
  131. type RawSockaddrInet4 struct {
  132. Len uint8
  133. Family uint8
  134. Port uint16
  135. Addr [4]byte /* in_addr */
  136. Zero [8]int8
  137. }
  138. type RawSockaddrInet6 struct {
  139. Len uint8
  140. Family uint8
  141. Port uint16
  142. Flowinfo uint32
  143. Addr [16]byte /* in6_addr */
  144. Scope_id uint32
  145. }
  146. type RawSockaddrUnix struct {
  147. Len uint8
  148. Family uint8
  149. Path [104]int8
  150. }
  151. type RawSockaddrDatalink struct {
  152. Len uint8
  153. Family uint8
  154. Index uint16
  155. Type uint8
  156. Nlen uint8
  157. Alen uint8
  158. Slen uint8
  159. Data [12]int8
  160. }
  161. type RawSockaddr struct {
  162. Len uint8
  163. Family uint8
  164. Data [14]int8
  165. }
  166. type RawSockaddrAny struct {
  167. Addr RawSockaddr
  168. Pad [92]int8
  169. }
  170. type RawSockaddrCtl struct {
  171. Sc_len uint8
  172. Sc_family uint8
  173. Ss_sysaddr uint16
  174. Sc_id uint32
  175. Sc_unit uint32
  176. Sc_reserved [5]uint32
  177. }
  178. type _Socklen uint32
  179. type Linger struct {
  180. Onoff int32
  181. Linger int32
  182. }
  183. type Iovec struct {
  184. Base *byte
  185. Len uint32
  186. }
  187. type IPMreq struct {
  188. Multiaddr [4]byte /* in_addr */
  189. Interface [4]byte /* in_addr */
  190. }
  191. type IPv6Mreq struct {
  192. Multiaddr [16]byte /* in6_addr */
  193. Interface uint32
  194. }
  195. type Msghdr struct {
  196. Name *byte
  197. Namelen uint32
  198. Iov *Iovec
  199. Iovlen int32
  200. Control *byte
  201. Controllen uint32
  202. Flags int32
  203. }
  204. type Cmsghdr struct {
  205. Len uint32
  206. Level int32
  207. Type int32
  208. }
  209. type Inet4Pktinfo struct {
  210. Ifindex uint32
  211. Spec_dst [4]byte /* in_addr */
  212. Addr [4]byte /* in_addr */
  213. }
  214. type Inet6Pktinfo struct {
  215. Addr [16]byte /* in6_addr */
  216. Ifindex uint32
  217. }
  218. type IPv6MTUInfo struct {
  219. Addr RawSockaddrInet6
  220. Mtu uint32
  221. }
  222. type ICMPv6Filter struct {
  223. Filt [8]uint32
  224. }
  225. const (
  226. SizeofSockaddrInet4 = 0x10
  227. SizeofSockaddrInet6 = 0x1c
  228. SizeofSockaddrAny = 0x6c
  229. SizeofSockaddrUnix = 0x6a
  230. SizeofSockaddrDatalink = 0x14
  231. SizeofSockaddrCtl = 0x20
  232. SizeofLinger = 0x8
  233. SizeofIPMreq = 0x8
  234. SizeofIPv6Mreq = 0x14
  235. SizeofMsghdr = 0x1c
  236. SizeofCmsghdr = 0xc
  237. SizeofInet4Pktinfo = 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. Bits [32]int32
  257. }
  258. const (
  259. SizeofIfMsghdr = 0x70
  260. SizeofIfData = 0x60
  261. SizeofIfaMsghdr = 0x14
  262. SizeofIfmaMsghdr = 0x10
  263. SizeofIfmaMsghdr2 = 0x14
  264. SizeofRtMsghdr = 0x5c
  265. SizeofRtMetrics = 0x38
  266. )
  267. type IfMsghdr struct {
  268. Msglen uint16
  269. Version uint8
  270. Type uint8
  271. Addrs int32
  272. Flags int32
  273. Index uint16
  274. Data IfData
  275. }
  276. type IfData struct {
  277. Type uint8
  278. Typelen uint8
  279. Physical uint8
  280. Addrlen uint8
  281. Hdrlen uint8
  282. Recvquota uint8
  283. Xmitquota uint8
  284. Unused1 uint8
  285. Mtu uint32
  286. Metric uint32
  287. Baudrate uint32
  288. Ipackets uint32
  289. Ierrors uint32
  290. Opackets uint32
  291. Oerrors uint32
  292. Collisions uint32
  293. Ibytes uint32
  294. Obytes uint32
  295. Imcasts uint32
  296. Omcasts uint32
  297. Iqdrops uint32
  298. Noproto uint32
  299. Recvtiming uint32
  300. Xmittiming uint32
  301. Lastchange Timeval
  302. Unused2 uint32
  303. Hwassist uint32
  304. Reserved1 uint32
  305. Reserved2 uint32
  306. }
  307. type IfaMsghdr struct {
  308. Msglen uint16
  309. Version uint8
  310. Type uint8
  311. Addrs int32
  312. Flags int32
  313. Index uint16
  314. Metric int32
  315. }
  316. type IfmaMsghdr struct {
  317. Msglen uint16
  318. Version uint8
  319. Type uint8
  320. Addrs int32
  321. Flags int32
  322. Index uint16
  323. _ [2]byte
  324. }
  325. type IfmaMsghdr2 struct {
  326. Msglen uint16
  327. Version uint8
  328. Type uint8
  329. Addrs int32
  330. Flags int32
  331. Index uint16
  332. Refcount int32
  333. }
  334. type RtMsghdr struct {
  335. Msglen uint16
  336. Version uint8
  337. Type uint8
  338. Index uint16
  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. State uint32
  360. Filler [3]uint32
  361. }
  362. const (
  363. SizeofBpfVersion = 0x4
  364. SizeofBpfStat = 0x8
  365. SizeofBpfProgram = 0x8
  366. SizeofBpfInsn = 0x8
  367. SizeofBpfHdr = 0x14
  368. )
  369. type BpfVersion struct {
  370. Major uint16
  371. Minor uint16
  372. }
  373. type BpfStat struct {
  374. Recv uint32
  375. Drop uint32
  376. }
  377. type BpfProgram struct {
  378. Len uint32
  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 Timeval
  389. Caplen uint32
  390. Datalen uint32
  391. Hdrlen uint16
  392. _ [2]byte
  393. }
  394. type Termios struct {
  395. Iflag uint32
  396. Oflag uint32
  397. Cflag uint32
  398. Lflag uint32
  399. Cc [20]uint8
  400. Ispeed uint32
  401. Ospeed uint32
  402. }
  403. type Winsize struct {
  404. Row uint16
  405. Col uint16
  406. Xpixel uint16
  407. Ypixel uint16
  408. }
  409. const (
  410. AT_FDCWD = -0x2
  411. AT_REMOVEDIR = 0x80
  412. AT_SYMLINK_FOLLOW = 0x40
  413. AT_SYMLINK_NOFOLLOW = 0x20
  414. )
  415. type PollFd struct {
  416. Fd int32
  417. Events int16
  418. Revents int16
  419. }
  420. const (
  421. POLLERR = 0x8
  422. POLLHUP = 0x10
  423. POLLIN = 0x1
  424. POLLNVAL = 0x20
  425. POLLOUT = 0x4
  426. POLLPRI = 0x2
  427. POLLRDBAND = 0x80
  428. POLLRDNORM = 0x40
  429. POLLWRBAND = 0x100
  430. POLLWRNORM = 0x4
  431. )
  432. type Utsname struct {
  433. Sysname [256]byte
  434. Nodename [256]byte
  435. Release [256]byte
  436. Version [256]byte
  437. Machine [256]byte
  438. }
  439. const SizeofClockinfo = 0x14
  440. type Clockinfo struct {
  441. Hz int32
  442. Tick int32
  443. Tickadj int32
  444. Stathz int32
  445. Profhz int32
  446. }
  447. type CtlInfo struct {
  448. Id uint32
  449. Name [96]byte
  450. }