github.com/fanux/shipyard@v0.0.0-20161009071005-6515ce223235/Godeps/_workspace/src/golang.org/x/sys/unix/ztypes_dragonfly_386.go (about)

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