Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_solaris_amd64.go

Documentation: syscall

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

View as plain text