vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go
changeset 260 445e01aede7e
parent 256 6d9efbef00a9
equal deleted inserted replaced
259:db4911b0c721 260:445e01aede7e
   207 	Sc_id       uint32
   207 	Sc_id       uint32
   208 	Sc_unit     uint32
   208 	Sc_unit     uint32
   209 	Sc_reserved [5]uint32
   209 	Sc_reserved [5]uint32
   210 }
   210 }
   211 
   211 
       
   212 type RawSockaddrVM struct {
       
   213 	Len       uint8
       
   214 	Family    uint8
       
   215 	Reserved1 uint16
       
   216 	Port      uint32
       
   217 	Cid       uint32
       
   218 }
       
   219 
       
   220 type XVSockPCB struct {
       
   221 	Xv_len           uint32
       
   222 	Xv_vsockpp       uint64
       
   223 	Xvp_local_cid    uint32
       
   224 	Xvp_local_port   uint32
       
   225 	Xvp_remote_cid   uint32
       
   226 	Xvp_remote_port  uint32
       
   227 	Xvp_rxcnt        uint32
       
   228 	Xvp_txcnt        uint32
       
   229 	Xvp_peer_rxhiwat uint32
       
   230 	Xvp_peer_rxcnt   uint32
       
   231 	Xvp_last_pid     int32
       
   232 	Xvp_gencnt       uint64
       
   233 	Xv_socket        XSocket
       
   234 	_                [4]byte
       
   235 }
       
   236 
       
   237 type XSocket struct {
       
   238 	Xso_len      uint32
       
   239 	Xso_so       uint32
       
   240 	So_type      int16
       
   241 	So_options   int16
       
   242 	So_linger    int16
       
   243 	So_state     int16
       
   244 	So_pcb       uint32
       
   245 	Xso_protocol int32
       
   246 	Xso_family   int32
       
   247 	So_qlen      int16
       
   248 	So_incqlen   int16
       
   249 	So_qlimit    int16
       
   250 	So_timeo     int16
       
   251 	So_error     uint16
       
   252 	So_pgid      int32
       
   253 	So_oobmark   uint32
       
   254 	So_rcv       XSockbuf
       
   255 	So_snd       XSockbuf
       
   256 	So_uid       uint32
       
   257 }
       
   258 
       
   259 type XSocket64 struct {
       
   260 	Xso_len      uint32
       
   261 	_            [8]byte
       
   262 	So_type      int16
       
   263 	So_options   int16
       
   264 	So_linger    int16
       
   265 	So_state     int16
       
   266 	_            [8]byte
       
   267 	Xso_protocol int32
       
   268 	Xso_family   int32
       
   269 	So_qlen      int16
       
   270 	So_incqlen   int16
       
   271 	So_qlimit    int16
       
   272 	So_timeo     int16
       
   273 	So_error     uint16
       
   274 	So_pgid      int32
       
   275 	So_oobmark   uint32
       
   276 	So_rcv       XSockbuf
       
   277 	So_snd       XSockbuf
       
   278 	So_uid       uint32
       
   279 }
       
   280 
       
   281 type XSockbuf struct {
       
   282 	Cc    uint32
       
   283 	Hiwat uint32
       
   284 	Mbcnt uint32
       
   285 	Mbmax uint32
       
   286 	Lowat int32
       
   287 	Flags int16
       
   288 	Timeo int16
       
   289 }
       
   290 
       
   291 type XVSockPgen struct {
       
   292 	Len   uint32
       
   293 	Count uint64
       
   294 	Gen   uint64
       
   295 	Sogen uint64
       
   296 }
       
   297 
   212 type _Socklen uint32
   298 type _Socklen uint32
   213 
   299 
   214 type Xucred struct {
   300 type Xucred struct {
   215 	Version uint32
   301 	Version uint32
   216 	Uid     uint32
   302 	Uid     uint32
   278 
   364 
   279 type ICMPv6Filter struct {
   365 type ICMPv6Filter struct {
   280 	Filt [8]uint32
   366 	Filt [8]uint32
   281 }
   367 }
   282 
   368 
   283 const (
   369 type TCPConnectionInfo struct {
   284 	SizeofSockaddrInet4    = 0x10
   370 	State               uint8
   285 	SizeofSockaddrInet6    = 0x1c
   371 	Snd_wscale          uint8
   286 	SizeofSockaddrAny      = 0x6c
   372 	Rcv_wscale          uint8
   287 	SizeofSockaddrUnix     = 0x6a
   373 	_                   uint8
   288 	SizeofSockaddrDatalink = 0x14
   374 	Options             uint32
   289 	SizeofSockaddrCtl      = 0x20
   375 	Flags               uint32
   290 	SizeofXucred           = 0x4c
   376 	Rto                 uint32
   291 	SizeofLinger           = 0x8
   377 	Maxseg              uint32
   292 	SizeofIovec            = 0x10
   378 	Snd_ssthresh        uint32
   293 	SizeofIPMreq           = 0x8
   379 	Snd_cwnd            uint32
   294 	SizeofIPMreqn          = 0xc
   380 	Snd_wnd             uint32
   295 	SizeofIPv6Mreq         = 0x14
   381 	Snd_sbbytes         uint32
   296 	SizeofMsghdr           = 0x30
   382 	Rcv_wnd             uint32
   297 	SizeofCmsghdr          = 0xc
   383 	Rttcur              uint32
   298 	SizeofInet4Pktinfo     = 0xc
   384 	Srtt                uint32
   299 	SizeofInet6Pktinfo     = 0x14
   385 	Rttvar              uint32
   300 	SizeofIPv6MTUInfo      = 0x20
   386 	Txpackets           uint64
   301 	SizeofICMPv6Filter     = 0x20
   387 	Txbytes             uint64
       
   388 	Txretransmitbytes   uint64
       
   389 	Rxpackets           uint64
       
   390 	Rxbytes             uint64
       
   391 	Rxoutoforderbytes   uint64
       
   392 	Txretransmitpackets uint64
       
   393 }
       
   394 
       
   395 const (
       
   396 	SizeofSockaddrInet4     = 0x10
       
   397 	SizeofSockaddrInet6     = 0x1c
       
   398 	SizeofSockaddrAny       = 0x6c
       
   399 	SizeofSockaddrUnix      = 0x6a
       
   400 	SizeofSockaddrDatalink  = 0x14
       
   401 	SizeofSockaddrCtl       = 0x20
       
   402 	SizeofSockaddrVM        = 0xc
       
   403 	SizeofXvsockpcb         = 0xa8
       
   404 	SizeofXSocket           = 0x64
       
   405 	SizeofXSockbuf          = 0x18
       
   406 	SizeofXVSockPgen        = 0x20
       
   407 	SizeofXucred            = 0x4c
       
   408 	SizeofLinger            = 0x8
       
   409 	SizeofIovec             = 0x10
       
   410 	SizeofIPMreq            = 0x8
       
   411 	SizeofIPMreqn           = 0xc
       
   412 	SizeofIPv6Mreq          = 0x14
       
   413 	SizeofMsghdr            = 0x30
       
   414 	SizeofCmsghdr           = 0xc
       
   415 	SizeofInet4Pktinfo      = 0xc
       
   416 	SizeofInet6Pktinfo      = 0x14
       
   417 	SizeofIPv6MTUInfo       = 0x20
       
   418 	SizeofICMPv6Filter      = 0x20
       
   419 	SizeofTCPConnectionInfo = 0x70
   302 )
   420 )
   303 
   421 
   304 const (
   422 const (
   305 	PTRACE_TRACEME = 0x0
   423 	PTRACE_TRACEME = 0x0
   306 	PTRACE_CONT    = 0x7
   424 	PTRACE_CONT    = 0x7
   548 	Pgid    int32
   666 	Pgid    int32
   549 	Jobc    int16
   667 	Jobc    int16
   550 	Tdev    int32
   668 	Tdev    int32
   551 	Tpgid   int32
   669 	Tpgid   int32
   552 	Tsess   uintptr
   670 	Tsess   uintptr
   553 	Wmesg   [8]int8
   671 	Wmesg   [8]byte
   554 	Xsize   int32
   672 	Xsize   int32
   555 	Xrssize int16
   673 	Xrssize int16
   556 	Xccount int16
   674 	Xccount int16
   557 	Xswrss  int16
   675 	Xswrss  int16
   558 	Flag    int32
   676 	Flag    int32
   559 	Login   [12]int8
   677 	Login   [12]byte
   560 	Spare   [4]int32
   678 	Spare   [4]int32
   561 	_       [4]byte
   679 	_       [4]byte
   562 }
   680 }
   563 
   681 
   564 type ExternProc struct {
   682 type ExternProc struct {
   595 	P_sigignore uint32
   713 	P_sigignore uint32
   596 	P_sigcatch  uint32
   714 	P_sigcatch  uint32
   597 	P_priority  uint8
   715 	P_priority  uint8
   598 	P_usrpri    uint8
   716 	P_usrpri    uint8
   599 	P_nice      int8
   717 	P_nice      int8
   600 	P_comm      [17]int8
   718 	P_comm      [17]byte
   601 	P_pgrp      uintptr
   719 	P_pgrp      uintptr
   602 	P_addr      uintptr
   720 	P_addr      uintptr
   603 	P_xstat     uint16
   721 	P_xstat     uint16
   604 	P_acflag    uint16
   722 	P_acflag    uint16
   605 	P_ru        *Rusage
   723 	P_ru        *Rusage
   637 	Ref     int32
   755 	Ref     int32
   638 	Uid     uint32
   756 	Uid     uint32
   639 	Ngroups int16
   757 	Ngroups int16
   640 	Groups  [16]uint32
   758 	Groups  [16]uint32
   641 }
   759 }
       
   760 
       
   761 type SysvIpcPerm struct {
       
   762 	Uid  uint32
       
   763 	Gid  uint32
       
   764 	Cuid uint32
       
   765 	Cgid uint32
       
   766 	Mode uint16
       
   767 	_    uint16
       
   768 	_    int32
       
   769 }
       
   770 type SysvShmDesc struct {
       
   771 	Perm   SysvIpcPerm
       
   772 	Segsz  uint64
       
   773 	Lpid   int32
       
   774 	Cpid   int32
       
   775 	Nattch uint16
       
   776 	_      [34]byte
       
   777 }
       
   778 
       
   779 const (
       
   780 	IPC_CREAT   = 0x200
       
   781 	IPC_EXCL    = 0x400
       
   782 	IPC_NOWAIT  = 0x800
       
   783 	IPC_PRIVATE = 0x0
       
   784 )
       
   785 
       
   786 const (
       
   787 	IPC_RMID = 0x0
       
   788 	IPC_SET  = 0x1
       
   789 	IPC_STAT = 0x2
       
   790 )
       
   791 
       
   792 const (
       
   793 	SHM_RDONLY = 0x1000
       
   794 	SHM_RND    = 0x2000
       
   795 )