github.com/hbdrawn/golang@v0.0.0-20141214014649-6b835209aba2/src/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  	S_IFMT   = 0xf000
    59  	S_IFIFO  = 0x1000
    60  	S_IFCHR  = 0x2000
    61  	S_IFDIR  = 0x4000
    62  	S_IFBLK  = 0x6000
    63  	S_IFREG  = 0x8000
    64  	S_IFLNK  = 0xa000
    65  	S_IFSOCK = 0xc000
    66  	S_ISUID  = 0x800
    67  	S_ISGID  = 0x400
    68  	S_ISVTX  = 0x200
    69  	S_IRUSR  = 0x100
    70  	S_IWUSR  = 0x80
    71  	S_IXUSR  = 0x40
    72  )
    73  
    74  type Stat_t struct {
    75  	Ino      uint64
    76  	Nlink    uint32
    77  	Dev      uint32
    78  	Mode     uint16
    79  	Padding1 uint16
    80  	Uid      uint32
    81  	Gid      uint32
    82  	Rdev     uint32
    83  	Atim     Timespec
    84  	Mtim     Timespec
    85  	Ctim     Timespec
    86  	Size     int64
    87  	Blocks   int64
    88  	Blksize  uint32
    89  	Flags    uint32
    90  	Gen      uint32
    91  	Lspare   int32
    92  	Qspare1  int64
    93  	Qspare2  int64
    94  }
    95  
    96  type Statfs_t struct {
    97  	Spare2      int64
    98  	Bsize       int64
    99  	Iosize      int64
   100  	Blocks      int64
   101  	Bfree       int64
   102  	Bavail      int64
   103  	Files       int64
   104  	Ffree       int64
   105  	Fsid        Fsid
   106  	Owner       uint32
   107  	Type        int32
   108  	Flags       int32
   109  	Pad_cgo_0   [4]byte
   110  	Syncwrites  int64
   111  	Asyncwrites int64
   112  	Fstypename  [16]int8
   113  	Mntonname   [80]int8
   114  	Syncreads   int64
   115  	Asyncreads  int64
   116  	Spares1     int16
   117  	Mntfromname [80]int8
   118  	Spares2     int16
   119  	Pad_cgo_1   [4]byte
   120  	Spare       [2]int64
   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  uint64
   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  	Pad_cgo_0  [4]byte
   217  	Iov        *Iovec
   218  	Iovlen     int32
   219  	Pad_cgo_1  [4]byte
   220  	Control    *byte
   221  	Controllen uint32
   222  	Flags      int32
   223  }
   224  
   225  type Cmsghdr struct {
   226  	Len   uint32
   227  	Level int32
   228  	Type  int32
   229  }
   230  
   231  type Inet6Pktinfo struct {
   232  	Addr    [16]byte /* in6_addr */
   233  	Ifindex uint32
   234  }
   235  
   236  type IPv6MTUInfo struct {
   237  	Addr RawSockaddrInet6
   238  	Mtu  uint32
   239  }
   240  
   241  type ICMPv6Filter struct {
   242  	Filt [8]uint32
   243  }
   244  
   245  const (
   246  	SizeofSockaddrInet4    = 0x10
   247  	SizeofSockaddrInet6    = 0x1c
   248  	SizeofSockaddrAny      = 0x6c
   249  	SizeofSockaddrUnix     = 0x6a
   250  	SizeofSockaddrDatalink = 0x36
   251  	SizeofLinger           = 0x8
   252  	SizeofIPMreq           = 0x8
   253  	SizeofIPv6Mreq         = 0x14
   254  	SizeofMsghdr           = 0x30
   255  	SizeofCmsghdr          = 0xc
   256  	SizeofInet6Pktinfo     = 0x14
   257  	SizeofIPv6MTUInfo      = 0x20
   258  	SizeofICMPv6Filter     = 0x20
   259  )
   260  
   261  const (
   262  	PTRACE_TRACEME = 0x0
   263  	PTRACE_CONT    = 0x7
   264  	PTRACE_KILL    = 0x8
   265  )
   266  
   267  type Kevent_t struct {
   268  	Ident  uint64
   269  	Filter int16
   270  	Flags  uint16
   271  	Fflags uint32
   272  	Data   int64
   273  	Udata  *byte
   274  }
   275  
   276  type FdSet struct {
   277  	Bits [16]uint64
   278  }
   279  
   280  const (
   281  	SizeofIfMsghdr         = 0xb0
   282  	SizeofIfData           = 0xa0
   283  	SizeofIfaMsghdr        = 0x14
   284  	SizeofIfmaMsghdr       = 0x10
   285  	SizeofIfAnnounceMsghdr = 0x18
   286  	SizeofRtMsghdr         = 0x98
   287  	SizeofRtMetrics        = 0x70
   288  )
   289  
   290  type IfMsghdr struct {
   291  	Msglen    uint16
   292  	Version   uint8
   293  	Type      uint8
   294  	Addrs     int32
   295  	Flags     int32
   296  	Index     uint16
   297  	Pad_cgo_0 [2]byte
   298  	Data      IfData
   299  }
   300  
   301  type IfData struct {
   302  	Type       uint8
   303  	Physical   uint8
   304  	Addrlen    uint8
   305  	Hdrlen     uint8
   306  	Recvquota  uint8
   307  	Xmitquota  uint8
   308  	Pad_cgo_0  [2]byte
   309  	Mtu        uint64
   310  	Metric     uint64
   311  	Link_state uint64
   312  	Baudrate   uint64
   313  	Ipackets   uint64
   314  	Ierrors    uint64
   315  	Opackets   uint64
   316  	Oerrors    uint64
   317  	Collisions uint64
   318  	Ibytes     uint64
   319  	Obytes     uint64
   320  	Imcasts    uint64
   321  	Omcasts    uint64
   322  	Iqdrops    uint64
   323  	Noproto    uint64
   324  	Hwassist   uint64
   325  	Unused     uint64
   326  	Lastchange Timeval
   327  }
   328  
   329  type IfaMsghdr struct {
   330  	Msglen    uint16
   331  	Version   uint8
   332  	Type      uint8
   333  	Addrs     int32
   334  	Flags     int32
   335  	Index     uint16
   336  	Pad_cgo_0 [2]byte
   337  	Metric    int32
   338  }
   339  
   340  type IfmaMsghdr struct {
   341  	Msglen    uint16
   342  	Version   uint8
   343  	Type      uint8
   344  	Addrs     int32
   345  	Flags     int32
   346  	Index     uint16
   347  	Pad_cgo_0 [2]byte
   348  }
   349  
   350  type IfAnnounceMsghdr struct {
   351  	Msglen  uint16
   352  	Version uint8
   353  	Type    uint8
   354  	Index   uint16
   355  	Name    [16]int8
   356  	What    uint16
   357  }
   358  
   359  type RtMsghdr struct {
   360  	Msglen    uint16
   361  	Version   uint8
   362  	Type      uint8
   363  	Index     uint16
   364  	Pad_cgo_0 [2]byte
   365  	Flags     int32
   366  	Addrs     int32
   367  	Pid       int32
   368  	Seq       int32
   369  	Errno     int32
   370  	Use       int32
   371  	Inits     uint64
   372  	Rmx       RtMetrics
   373  }
   374  
   375  type RtMetrics struct {
   376  	Locks     uint64
   377  	Mtu       uint64
   378  	Pksent    uint64
   379  	Expire    uint64
   380  	Sendpipe  uint64
   381  	Ssthresh  uint64
   382  	Rtt       uint64
   383  	Rttvar    uint64
   384  	Recvpipe  uint64
   385  	Hopcount  uint64
   386  	Mssopt    uint16
   387  	Pad       uint16
   388  	Pad_cgo_0 [4]byte
   389  	Msl       uint64
   390  	Iwmaxsegs uint64
   391  	Iwcapsegs uint64
   392  }
   393  
   394  const (
   395  	SizeofBpfVersion = 0x4
   396  	SizeofBpfStat    = 0x8
   397  	SizeofBpfProgram = 0x10
   398  	SizeofBpfInsn    = 0x8
   399  	SizeofBpfHdr     = 0x20
   400  )
   401  
   402  type BpfVersion struct {
   403  	Major uint16
   404  	Minor uint16
   405  }
   406  
   407  type BpfStat struct {
   408  	Recv uint32
   409  	Drop uint32
   410  }
   411  
   412  type BpfProgram struct {
   413  	Len       uint32
   414  	Pad_cgo_0 [4]byte
   415  	Insns     *BpfInsn
   416  }
   417  
   418  type BpfInsn struct {
   419  	Code uint16
   420  	Jt   uint8
   421  	Jf   uint8
   422  	K    uint32
   423  }
   424  
   425  type BpfHdr struct {
   426  	Tstamp    Timeval
   427  	Caplen    uint32
   428  	Datalen   uint32
   429  	Hdrlen    uint16
   430  	Pad_cgo_0 [6]byte
   431  }
   432  
   433  type Termios struct {
   434  	Iflag  uint32
   435  	Oflag  uint32
   436  	Cflag  uint32
   437  	Lflag  uint32
   438  	Cc     [20]uint8
   439  	Ispeed uint32
   440  	Ospeed uint32
   441  }