Source file src/syscall/ztypes_solaris_amd64.go

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

View as plain text