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_arm64.go 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805
  1. // cgo -godefs types_darwin.go | go run mkpost.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. //go:build arm64 && 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. _ [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. Atim Timespec
  63. Mtim Timespec
  64. Ctim Timespec
  65. Btim Timespec
  66. Size int64
  67. Blocks int64
  68. Blksize int32
  69. Flags uint32
  70. Gen uint32
  71. Lspare int32
  72. Qspare [2]int64
  73. }
  74. type Statfs_t struct {
  75. Bsize uint32
  76. Iosize int32
  77. Blocks uint64
  78. Bfree uint64
  79. Bavail uint64
  80. Files uint64
  81. Ffree uint64
  82. Fsid Fsid
  83. Owner uint32
  84. Type uint32
  85. Flags uint32
  86. Fssubtype uint32
  87. Fstypename [16]byte
  88. Mntonname [1024]byte
  89. Mntfromname [1024]byte
  90. Flags_ext uint32
  91. Reserved [7]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. _ [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. _ [16]byte
  120. }
  121. type Fsid struct {
  122. Val [2]int32
  123. }
  124. type Dirent struct {
  125. Ino uint64
  126. Seekoff uint64
  127. Reclen uint16
  128. Namlen uint16
  129. Type uint8
  130. Name [1024]int8
  131. _ [3]byte
  132. }
  133. type Attrlist struct {
  134. Bitmapcount uint16
  135. Reserved uint16
  136. Commonattr uint32
  137. Volattr uint32
  138. Dirattr uint32
  139. Fileattr uint32
  140. Forkattr uint32
  141. }
  142. const (
  143. PathMax = 0x400
  144. )
  145. type RawSockaddrInet4 struct {
  146. Len uint8
  147. Family uint8
  148. Port uint16
  149. Addr [4]byte /* in_addr */
  150. Zero [8]int8
  151. }
  152. type RawSockaddrInet6 struct {
  153. Len uint8
  154. Family uint8
  155. Port uint16
  156. Flowinfo uint32
  157. Addr [16]byte /* in6_addr */
  158. Scope_id uint32
  159. }
  160. type RawSockaddrUnix struct {
  161. Len uint8
  162. Family uint8
  163. Path [104]int8
  164. }
  165. type RawSockaddrDatalink struct {
  166. Len uint8
  167. Family uint8
  168. Index uint16
  169. Type uint8
  170. Nlen uint8
  171. Alen uint8
  172. Slen uint8
  173. Data [12]int8
  174. }
  175. type RawSockaddr struct {
  176. Len uint8
  177. Family uint8
  178. Data [14]int8
  179. }
  180. type RawSockaddrAny struct {
  181. Addr RawSockaddr
  182. Pad [92]int8
  183. }
  184. type RawSockaddrCtl struct {
  185. Sc_len uint8
  186. Sc_family uint8
  187. Ss_sysaddr uint16
  188. Sc_id uint32
  189. Sc_unit uint32
  190. Sc_reserved [5]uint32
  191. }
  192. type RawSockaddrVM struct {
  193. Len uint8
  194. Family uint8
  195. Reserved1 uint16
  196. Port uint32
  197. Cid uint32
  198. }
  199. type XVSockPCB struct {
  200. Xv_len uint32
  201. Xv_vsockpp uint64
  202. Xvp_local_cid uint32
  203. Xvp_local_port uint32
  204. Xvp_remote_cid uint32
  205. Xvp_remote_port uint32
  206. Xvp_rxcnt uint32
  207. Xvp_txcnt uint32
  208. Xvp_peer_rxhiwat uint32
  209. Xvp_peer_rxcnt uint32
  210. Xvp_last_pid int32
  211. Xvp_gencnt uint64
  212. Xv_socket XSocket
  213. _ [4]byte
  214. }
  215. type XSocket struct {
  216. Xso_len uint32
  217. Xso_so uint32
  218. So_type int16
  219. So_options int16
  220. So_linger int16
  221. So_state int16
  222. So_pcb uint32
  223. Xso_protocol int32
  224. Xso_family int32
  225. So_qlen int16
  226. So_incqlen int16
  227. So_qlimit int16
  228. So_timeo int16
  229. So_error uint16
  230. So_pgid int32
  231. So_oobmark uint32
  232. So_rcv XSockbuf
  233. So_snd XSockbuf
  234. So_uid uint32
  235. }
  236. type XSocket64 struct {
  237. Xso_len uint32
  238. _ [8]byte
  239. So_type int16
  240. So_options int16
  241. So_linger int16
  242. So_state int16
  243. _ [8]byte
  244. Xso_protocol int32
  245. Xso_family int32
  246. So_qlen int16
  247. So_incqlen int16
  248. So_qlimit int16
  249. So_timeo int16
  250. So_error uint16
  251. So_pgid int32
  252. So_oobmark uint32
  253. So_rcv XSockbuf
  254. So_snd XSockbuf
  255. So_uid uint32
  256. }
  257. type XSockbuf struct {
  258. Cc uint32
  259. Hiwat uint32
  260. Mbcnt uint32
  261. Mbmax uint32
  262. Lowat int32
  263. Flags int16
  264. Timeo int16
  265. }
  266. type XVSockPgen struct {
  267. Len uint32
  268. Count uint64
  269. Gen uint64
  270. Sogen uint64
  271. }
  272. type _Socklen uint32
  273. type Xucred struct {
  274. Version uint32
  275. Uid uint32
  276. Ngroups int16
  277. Groups [16]uint32
  278. }
  279. type Linger struct {
  280. Onoff int32
  281. Linger int32
  282. }
  283. type Iovec struct {
  284. Base *byte
  285. Len uint64
  286. }
  287. type IPMreq struct {
  288. Multiaddr [4]byte /* in_addr */
  289. Interface [4]byte /* in_addr */
  290. }
  291. type IPMreqn struct {
  292. Multiaddr [4]byte /* in_addr */
  293. Address [4]byte /* in_addr */
  294. Ifindex int32
  295. }
  296. type IPv6Mreq struct {
  297. Multiaddr [16]byte /* in6_addr */
  298. Interface uint32
  299. }
  300. type Msghdr struct {
  301. Name *byte
  302. Namelen uint32
  303. Iov *Iovec
  304. Iovlen int32
  305. Control *byte
  306. Controllen uint32
  307. Flags int32
  308. }
  309. type Cmsghdr struct {
  310. Len uint32
  311. Level int32
  312. Type int32
  313. }
  314. type Inet4Pktinfo struct {
  315. Ifindex uint32
  316. Spec_dst [4]byte /* in_addr */
  317. Addr [4]byte /* in_addr */
  318. }
  319. type Inet6Pktinfo struct {
  320. Addr [16]byte /* in6_addr */
  321. Ifindex uint32
  322. }
  323. type IPv6MTUInfo struct {
  324. Addr RawSockaddrInet6
  325. Mtu uint32
  326. }
  327. type ICMPv6Filter struct {
  328. Filt [8]uint32
  329. }
  330. type TCPConnectionInfo struct {
  331. State uint8
  332. Snd_wscale uint8
  333. Rcv_wscale uint8
  334. _ uint8
  335. Options uint32
  336. Flags uint32
  337. Rto uint32
  338. Maxseg uint32
  339. Snd_ssthresh uint32
  340. Snd_cwnd uint32
  341. Snd_wnd uint32
  342. Snd_sbbytes uint32
  343. Rcv_wnd uint32
  344. Rttcur uint32
  345. Srtt uint32
  346. Rttvar uint32
  347. Txpackets uint64
  348. Txbytes uint64
  349. Txretransmitbytes uint64
  350. Rxpackets uint64
  351. Rxbytes uint64
  352. Rxoutoforderbytes uint64
  353. Txretransmitpackets uint64
  354. }
  355. const (
  356. SizeofSockaddrInet4 = 0x10
  357. SizeofSockaddrInet6 = 0x1c
  358. SizeofSockaddrAny = 0x6c
  359. SizeofSockaddrUnix = 0x6a
  360. SizeofSockaddrDatalink = 0x14
  361. SizeofSockaddrCtl = 0x20
  362. SizeofSockaddrVM = 0xc
  363. SizeofXvsockpcb = 0xa8
  364. SizeofXSocket = 0x64
  365. SizeofXSockbuf = 0x18
  366. SizeofXVSockPgen = 0x20
  367. SizeofXucred = 0x4c
  368. SizeofLinger = 0x8
  369. SizeofIovec = 0x10
  370. SizeofIPMreq = 0x8
  371. SizeofIPMreqn = 0xc
  372. SizeofIPv6Mreq = 0x14
  373. SizeofMsghdr = 0x30
  374. SizeofCmsghdr = 0xc
  375. SizeofInet4Pktinfo = 0xc
  376. SizeofInet6Pktinfo = 0x14
  377. SizeofIPv6MTUInfo = 0x20
  378. SizeofICMPv6Filter = 0x20
  379. SizeofTCPConnectionInfo = 0x70
  380. )
  381. const (
  382. PTRACE_TRACEME = 0x0
  383. PTRACE_CONT = 0x7
  384. PTRACE_KILL = 0x8
  385. )
  386. type Kevent_t struct {
  387. Ident uint64
  388. Filter int16
  389. Flags uint16
  390. Fflags uint32
  391. Data int64
  392. Udata *byte
  393. }
  394. type FdSet struct {
  395. Bits [32]int32
  396. }
  397. const (
  398. SizeofIfMsghdr = 0x70
  399. SizeofIfData = 0x60
  400. SizeofIfaMsghdr = 0x14
  401. SizeofIfmaMsghdr = 0x10
  402. SizeofIfmaMsghdr2 = 0x14
  403. SizeofRtMsghdr = 0x5c
  404. SizeofRtMetrics = 0x38
  405. )
  406. type IfMsghdr struct {
  407. Msglen uint16
  408. Version uint8
  409. Type uint8
  410. Addrs int32
  411. Flags int32
  412. Index uint16
  413. Data IfData
  414. }
  415. type IfData struct {
  416. Type uint8
  417. Typelen uint8
  418. Physical uint8
  419. Addrlen uint8
  420. Hdrlen uint8
  421. Recvquota uint8
  422. Xmitquota uint8
  423. Unused1 uint8
  424. Mtu uint32
  425. Metric uint32
  426. Baudrate uint32
  427. Ipackets uint32
  428. Ierrors uint32
  429. Opackets uint32
  430. Oerrors uint32
  431. Collisions uint32
  432. Ibytes uint32
  433. Obytes uint32
  434. Imcasts uint32
  435. Omcasts uint32
  436. Iqdrops uint32
  437. Noproto uint32
  438. Recvtiming uint32
  439. Xmittiming uint32
  440. Lastchange Timeval32
  441. Unused2 uint32
  442. Hwassist uint32
  443. Reserved1 uint32
  444. Reserved2 uint32
  445. }
  446. type IfaMsghdr struct {
  447. Msglen uint16
  448. Version uint8
  449. Type uint8
  450. Addrs int32
  451. Flags int32
  452. Index uint16
  453. Metric int32
  454. }
  455. type IfmaMsghdr struct {
  456. Msglen uint16
  457. Version uint8
  458. Type uint8
  459. Addrs int32
  460. Flags int32
  461. Index uint16
  462. _ [2]byte
  463. }
  464. type IfmaMsghdr2 struct {
  465. Msglen uint16
  466. Version uint8
  467. Type uint8
  468. Addrs int32
  469. Flags int32
  470. Index uint16
  471. Refcount int32
  472. }
  473. type RtMsghdr struct {
  474. Msglen uint16
  475. Version uint8
  476. Type uint8
  477. Index uint16
  478. Flags int32
  479. Addrs int32
  480. Pid int32
  481. Seq int32
  482. Errno int32
  483. Use int32
  484. Inits uint32
  485. Rmx RtMetrics
  486. }
  487. type RtMetrics struct {
  488. Locks uint32
  489. Mtu uint32
  490. Hopcount uint32
  491. Expire int32
  492. Recvpipe uint32
  493. Sendpipe uint32
  494. Ssthresh uint32
  495. Rtt uint32
  496. Rttvar uint32
  497. Pksent uint32
  498. State uint32
  499. Filler [3]uint32
  500. }
  501. const (
  502. SizeofBpfVersion = 0x4
  503. SizeofBpfStat = 0x8
  504. SizeofBpfProgram = 0x10
  505. SizeofBpfInsn = 0x8
  506. SizeofBpfHdr = 0x14
  507. )
  508. type BpfVersion struct {
  509. Major uint16
  510. Minor uint16
  511. }
  512. type BpfStat struct {
  513. Recv uint32
  514. Drop uint32
  515. }
  516. type BpfProgram struct {
  517. Len uint32
  518. Insns *BpfInsn
  519. }
  520. type BpfInsn struct {
  521. Code uint16
  522. Jt uint8
  523. Jf uint8
  524. K uint32
  525. }
  526. type BpfHdr struct {
  527. Tstamp Timeval32
  528. Caplen uint32
  529. Datalen uint32
  530. Hdrlen uint16
  531. _ [2]byte
  532. }
  533. type Termios struct {
  534. Iflag uint64
  535. Oflag uint64
  536. Cflag uint64
  537. Lflag uint64
  538. Cc [20]uint8
  539. Ispeed uint64
  540. Ospeed uint64
  541. }
  542. type Winsize struct {
  543. Row uint16
  544. Col uint16
  545. Xpixel uint16
  546. Ypixel uint16
  547. }
  548. const (
  549. AT_FDCWD = -0x2
  550. AT_REMOVEDIR = 0x80
  551. AT_SYMLINK_FOLLOW = 0x40
  552. AT_SYMLINK_NOFOLLOW = 0x20
  553. AT_EACCESS = 0x10
  554. )
  555. type PollFd struct {
  556. Fd int32
  557. Events int16
  558. Revents int16
  559. }
  560. const (
  561. POLLERR = 0x8
  562. POLLHUP = 0x10
  563. POLLIN = 0x1
  564. POLLNVAL = 0x20
  565. POLLOUT = 0x4
  566. POLLPRI = 0x2
  567. POLLRDBAND = 0x80
  568. POLLRDNORM = 0x40
  569. POLLWRBAND = 0x100
  570. POLLWRNORM = 0x4
  571. )
  572. type Utsname struct {
  573. Sysname [256]byte
  574. Nodename [256]byte
  575. Release [256]byte
  576. Version [256]byte
  577. Machine [256]byte
  578. }
  579. const SizeofClockinfo = 0x14
  580. type Clockinfo struct {
  581. Hz int32
  582. Tick int32
  583. Tickadj int32
  584. Stathz int32
  585. Profhz int32
  586. }
  587. type CtlInfo struct {
  588. Id uint32
  589. Name [96]byte
  590. }
  591. const SizeofKinfoProc = 0x288
  592. type Eproc struct {
  593. Paddr uintptr
  594. Sess uintptr
  595. Pcred Pcred
  596. Ucred Ucred
  597. Vm Vmspace
  598. Ppid int32
  599. Pgid int32
  600. Jobc int16
  601. Tdev int32
  602. Tpgid int32
  603. Tsess uintptr
  604. Wmesg [8]byte
  605. Xsize int32
  606. Xrssize int16
  607. Xccount int16
  608. Xswrss int16
  609. Flag int32
  610. Login [12]byte
  611. Spare [4]int32
  612. _ [4]byte
  613. }
  614. type ExternProc struct {
  615. P_starttime Timeval
  616. P_vmspace *Vmspace
  617. P_sigacts uintptr
  618. P_flag int32
  619. P_stat int8
  620. P_pid int32
  621. P_oppid int32
  622. P_dupfd int32
  623. User_stack *int8
  624. Exit_thread *byte
  625. P_debugger int32
  626. Sigwait int32
  627. P_estcpu uint32
  628. P_cpticks int32
  629. P_pctcpu uint32
  630. P_wchan *byte
  631. P_wmesg *int8
  632. P_swtime uint32
  633. P_slptime uint32
  634. P_realtimer Itimerval
  635. P_rtime Timeval
  636. P_uticks uint64
  637. P_sticks uint64
  638. P_iticks uint64
  639. P_traceflag int32
  640. P_tracep uintptr
  641. P_siglist int32
  642. P_textvp uintptr
  643. P_holdcnt int32
  644. P_sigmask uint32
  645. P_sigignore uint32
  646. P_sigcatch uint32
  647. P_priority uint8
  648. P_usrpri uint8
  649. P_nice int8
  650. P_comm [17]byte
  651. P_pgrp uintptr
  652. P_addr uintptr
  653. P_xstat uint16
  654. P_acflag uint16
  655. P_ru *Rusage
  656. }
  657. type Itimerval struct {
  658. Interval Timeval
  659. Value Timeval
  660. }
  661. type KinfoProc struct {
  662. Proc ExternProc
  663. Eproc Eproc
  664. }
  665. type Vmspace struct {
  666. Dummy int32
  667. Dummy2 *int8
  668. Dummy3 [5]int32
  669. Dummy4 [3]*int8
  670. }
  671. type Pcred struct {
  672. Pc_lock [72]int8
  673. Pc_ucred uintptr
  674. P_ruid uint32
  675. P_svuid uint32
  676. P_rgid uint32
  677. P_svgid uint32
  678. P_refcnt int32
  679. _ [4]byte
  680. }
  681. type Ucred struct {
  682. Ref int32
  683. Uid uint32
  684. Ngroups int16
  685. Groups [16]uint32
  686. }
  687. type SysvIpcPerm struct {
  688. Uid uint32
  689. Gid uint32
  690. Cuid uint32
  691. Cgid uint32
  692. Mode uint16
  693. _ uint16
  694. _ int32
  695. }
  696. type SysvShmDesc struct {
  697. Perm SysvIpcPerm
  698. Segsz uint64
  699. Lpid int32
  700. Cpid int32
  701. Nattch uint16
  702. _ [34]byte
  703. }
  704. const (
  705. IPC_CREAT = 0x200
  706. IPC_EXCL = 0x400
  707. IPC_NOWAIT = 0x800
  708. IPC_PRIVATE = 0x0
  709. )
  710. const (
  711. IPC_RMID = 0x0
  712. IPC_SET = 0x1
  713. IPC_STAT = 0x2
  714. )
  715. const (
  716. SHM_RDONLY = 0x1000
  717. SHM_RND = 0x2000
  718. )