Source file src/syscall/ztypes_solaris_amd64.go

     1  // Created by cgo -godefs - DO NOT EDIT
     2  // cgo -godefs types_solaris.go
     3  
     4  //go:build amd64 && solaris
     5  
     6  package syscall
     7  
     8  const (
     9  	sizeofPtr      = 0x8
    10  	sizeofShort    = 0x2
    11  	sizeofInt      = 0x4
    12  	sizeofLong     = 0x8
    13  	sizeofLongLong = 0x8
    14  	PathMax        = 0x400
    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 int64
    32  }
    33  
    34  type Timeval32 struct {
    35  	Sec  int32
    36  	Usec int32
    37  }
    38  
    39  type Rusage struct {
    40  	Utime    Timeval
    41  	Stime    Timeval
    42  	Maxrss   int64
    43  	Ixrss    int64
    44  	Idrss    int64
    45  	Isrss    int64
    46  	Minflt   int64
    47  	Majflt   int64
    48  	Nswap    int64
    49  	Inblock  int64
    50  	Oublock  int64
    51  	Msgsnd   int64
    52  	Msgrcv   int64
    53  	Nsignals int64
    54  	Nvcsw    int64
    55  	Nivcsw   int64
    56  }
    57  
    58  type Rlimit struct {
    59  	Cur uint64
    60  	Max uint64
    61  }
    62  
    63  type _Pid_t int32
    64  
    65  type _Gid_t uint32
    66  
    67  const (
    68  	S_IFMT   = 0xf000
    69  	S_IFIFO  = 0x1000
    70  	S_IFCHR  = 0x2000
    71  	S_IFDIR  = 0x4000
    72  	S_IFBLK  = 0x6000
    73  	S_IFREG  = 0x8000
    74  	S_IFLNK  = 0xa000
    75  	S_IFSOCK = 0xc000
    76  	S_ISUID  = 0x800
    77  	S_ISGID  = 0x400
    78  	S_ISVTX  = 0x200
    79  	S_IRUSR  = 0x100
    80  	S_IWUSR  = 0x80
    81  	S_IXUSR  = 0x40
    82  	S_IRWXG  = 0x38
    83  	S_IRWXO  = 0x7
    84  )
    85  
    86  type Stat_t struct {
    87  	Dev       uint64
    88  	Ino       uint64
    89  	Mode      uint32
    90  	Nlink     uint32
    91  	Uid       uint32
    92  	Gid       uint32
    93  	Rdev      uint64
    94  	Size      int64
    95  	Atim      Timespec
    96  	Mtim      Timespec
    97  	Ctim      Timespec
    98  	Blksize   int32
    99  	Pad_cgo_0 [4]byte
   100  	Blocks    int64
   101  	Fstype    [16]int8
   102  }
   103  
   104  type Flock_t struct {
   105  	Type      int16
   106  	Whence    int16
   107  	Pad_cgo_0 [4]byte
   108  	Start     int64
   109  	Len       int64
   110  	Sysid     int32
   111  	Pid       int32
   112  	Pad       [4]int64
   113  }
   114  
   115  type Dirent struct {
   116  	Ino       uint64
   117  	Off       int64
   118  	Reclen    uint16
   119  	Name      [1]int8
   120  	Pad_cgo_0 [5]byte
   121  }
   122  
   123  type RawSockaddrInet4 struct {
   124  	Family uint16
   125  	Port   uint16
   126  	Addr   [4]byte /* in_addr */
   127  	Zero   [8]int8
   128  }
   129  
   130  type RawSockaddrInet6 struct {
   131  	Family         uint16
   132  	Port           uint16
   133  	Flowinfo       uint32
   134  	Addr           [16]byte /* in6_addr */
   135  	Scope_id       uint32
   136  	X__sin6_src_id uint32
   137  }
   138  
   139  type RawSockaddrUnix struct {
   140  	Family uint16
   141  	Path   [108]int8
   142  }
   143  
   144  type RawSockaddrDatalink struct {
   145  	Family uint16
   146  	Index  uint16
   147  	Type   uint8
   148  	Nlen   uint8
   149  	Alen   uint8
   150  	Slen   uint8
   151  	Data   [244]int8
   152  }
   153  
   154  type RawSockaddr struct {
   155  	Family uint16
   156  	Data   [14]int8
   157  }
   158  
   159  type RawSockaddrAny struct {
   160  	Addr RawSockaddr
   161  	Pad  [236]int8
   162  }
   163  
   164  type _Socklen uint32
   165  
   166  type Linger struct {
   167  	Onoff  int32
   168  	Linger int32
   169  }
   170  
   171  type Iovec struct {
   172  	Base *int8
   173  	Len  uint64
   174  }
   175  
   176  type IPMreq struct {
   177  	Multiaddr [4]byte /* in_addr */
   178  	Interface [4]byte /* in_addr */
   179  }
   180  
   181  type IPv6Mreq struct {
   182  	Multiaddr [16]byte /* in6_addr */
   183  	Interface uint32
   184  }
   185  
   186  type Msghdr struct {
   187  	Name         *byte
   188  	Namelen      uint32
   189  	Pad_cgo_0    [4]byte
   190  	Iov          *Iovec
   191  	Iovlen       int32
   192  	Pad_cgo_1    [4]byte
   193  	Accrights    *int8
   194  	Accrightslen int32
   195  	Pad_cgo_2    [4]byte
   196  }
   197  
   198  type Cmsghdr struct {
   199  	Len   uint32
   200  	Level int32
   201  	Type  int32
   202  }
   203  
   204  type Inet6Pktinfo struct {
   205  	Addr    [16]byte /* in6_addr */
   206  	Ifindex uint32
   207  }
   208  
   209  type IPv6MTUInfo struct {
   210  	Addr RawSockaddrInet6
   211  	Mtu  uint32
   212  }
   213  
   214  type ICMPv6Filter struct {
   215  	X__icmp6_filt [8]uint32
   216  }
   217  
   218  const (
   219  	SizeofSockaddrInet4    = 0x10
   220  	SizeofSockaddrInet6    = 0x20
   221  	SizeofSockaddrAny      = 0xfc
   222  	SizeofSockaddrUnix     = 0x6e
   223  	SizeofSockaddrDatalink = 0xfc
   224  	SizeofLinger           = 0x8
   225  	SizeofIPMreq           = 0x8
   226  	SizeofIPv6Mreq         = 0x14
   227  	SizeofMsghdr           = 0x30
   228  	SizeofCmsghdr          = 0xc
   229  	SizeofInet6Pktinfo     = 0x14
   230  	SizeofIPv6MTUInfo      = 0x24
   231  	SizeofICMPv6Filter     = 0x20
   232  )
   233  
   234  type FdSet struct {
   235  	Bits [1024]int64
   236  }
   237  
   238  const (
   239  	SizeofIfMsghdr  = 0x54
   240  	SizeofIfData    = 0x44
   241  	SizeofIfaMsghdr = 0x14
   242  	SizeofRtMsghdr  = 0x4c
   243  	SizeofRtMetrics = 0x28
   244  )
   245  
   246  type IfMsghdr struct {
   247  	Msglen    uint16
   248  	Version   uint8
   249  	Type      uint8
   250  	Addrs     int32
   251  	Flags     int32
   252  	Index     uint16
   253  	Pad_cgo_0 [2]byte
   254  	Data      IfData
   255  }
   256  
   257  type IfData struct {
   258  	Type       uint8
   259  	Addrlen    uint8
   260  	Hdrlen     uint8
   261  	Pad_cgo_0  [1]byte
   262  	Mtu        uint32
   263  	Metric     uint32
   264  	Baudrate   uint32
   265  	Ipackets   uint32
   266  	Ierrors    uint32
   267  	Opackets   uint32
   268  	Oerrors    uint32
   269  	Collisions uint32
   270  	Ibytes     uint32
   271  	Obytes     uint32
   272  	Imcasts    uint32
   273  	Omcasts    uint32
   274  	Iqdrops    uint32
   275  	Noproto    uint32
   276  	Lastchange Timeval32
   277  }
   278  
   279  type IfaMsghdr struct {
   280  	Msglen    uint16
   281  	Version   uint8
   282  	Type      uint8
   283  	Addrs     int32
   284  	Flags     int32
   285  	Index     uint16
   286  	Pad_cgo_0 [2]byte
   287  	Metric    int32
   288  }
   289  
   290  type RtMsghdr struct {
   291  	Msglen    uint16
   292  	Version   uint8
   293  	Type      uint8
   294  	Index     uint16
   295  	Pad_cgo_0 [2]byte
   296  	Flags     int32
   297  	Addrs     int32
   298  	Pid       int32
   299  	Seq       int32
   300  	Errno     int32
   301  	Use       int32
   302  	Inits     uint32
   303  	Rmx       RtMetrics
   304  }
   305  
   306  type RtMetrics struct {
   307  	Locks    uint32
   308  	Mtu      uint32
   309  	Hopcount uint32
   310  	Expire   uint32
   311  	Recvpipe uint32
   312  	Sendpipe uint32
   313  	Ssthresh uint32
   314  	Rtt      uint32
   315  	Rttvar   uint32
   316  	Pksent   uint32
   317  }
   318  
   319  const (
   320  	SizeofBpfVersion = 0x4
   321  	SizeofBpfStat    = 0x80
   322  	SizeofBpfProgram = 0x10
   323  	SizeofBpfInsn    = 0x8
   324  	SizeofBpfHdr     = 0x14
   325  )
   326  
   327  type BpfVersion struct {
   328  	Major uint16
   329  	Minor uint16
   330  }
   331  
   332  type BpfStat struct {
   333  	Recv    uint64
   334  	Drop    uint64
   335  	Capt    uint64
   336  	Padding [13]uint64
   337  }
   338  
   339  type BpfProgram struct {
   340  	Len       uint32
   341  	Pad_cgo_0 [4]byte
   342  	Insns     *BpfInsn
   343  }
   344  
   345  type BpfInsn struct {
   346  	Code uint16
   347  	Jt   uint8
   348  	Jf   uint8
   349  	K    uint32
   350  }
   351  
   352  type BpfTimeval struct {
   353  	Sec  int32
   354  	Usec int32
   355  }
   356  
   357  type BpfHdr struct {
   358  	Tstamp    BpfTimeval
   359  	Caplen    uint32
   360  	Datalen   uint32
   361  	Hdrlen    uint16
   362  	Pad_cgo_0 [2]byte
   363  }
   364  
   365  const (
   366  	_AT_FDCWD = 0xffd19553
   367  )
   368  
   369  type Termios struct {
   370  	Iflag     uint32
   371  	Oflag     uint32
   372  	Cflag     uint32
   373  	Lflag     uint32
   374  	Cc        [19]uint8
   375  	Pad_cgo_0 [1]byte
   376  }
   377  

View as plain text