github.com/mfpierre/corectl@v0.5.6/Godeps/_workspace/src/golang.org/x/sys/unix/ztypes_freebsd_amd64.go (about)

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