Source file src/syscall/ztypes_darwin_amd64.go

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

View as plain text