github.com/jgarto/itcv@v0.0.0-20180826224514-4eea09c1aa0d/_vendor/src/golang.org/x/sys/unix/ztypes_solaris_amd64.go (about)

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