github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/syscall/ztypes_dragonfly_amd64.go (about)

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