github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/syscall/ztypes_dragonfly_386.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      = 0x4
     8  	sizeofShort    = 0x2
     9  	sizeofInt      = 0x4
    10  	sizeofLong     = 0x4
    11  	sizeofLongLong = 0x8
    12  )
    13  
    14  type (
    15  	_C_short     int16
    16  	_C_int       int32
    17  	_C_long      int32
    18  	_C_long_long int64
    19  )
    20  
    21  type Timespec struct {
    22  	Sec  int32
    23  	Nsec int32
    24  }
    25  
    26  type Timeval struct {
    27  	Sec  int32
    28  	Usec int32
    29  }
    30  
    31  type Rusage struct {
    32  	Utime    Timeval
    33  	Stime    Timeval
    34  	Maxrss   int32
    35  	Ixrss    int32
    36  	Idrss    int32
    37  	Isrss    int32
    38  	Minflt   int32
    39  	Majflt   int32
    40  	Nswap    int32
    41  	Inblock  int32
    42  	Oublock  int32
    43  	Msgsnd   int32
    44  	Msgrcv   int32
    45  	Nsignals int32
    46  	Nvcsw    int32
    47  	Nivcsw   int32
    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      int32
   102  	Bsize       int32
   103  	Iosize      int32
   104  	Blocks      int32
   105  	Bfree       int32
   106  	Bavail      int32
   107  	Files       int32
   108  	Ffree       int32
   109  	Fsid        Fsid
   110  	Owner       uint32
   111  	Type        int32
   112  	Flags       int32
   113  	Syncwrites  int32
   114  	Asyncwrites int32
   115  	Fstypename  [16]int8
   116  	Mntonname   [80]int8
   117  	Syncreads   int32
   118  	Asyncreads  int32
   119  	Spares1     int16
   120  	Mntfromname [80]int8
   121  	Spares2     int16
   122  	Spare       [2]int32
   123  }
   124  
   125  type Flock_t struct {
   126  	Start  int64
   127  	Len    int64
   128  	Pid    int32
   129  	Type   int16
   130  	Whence int16
   131  }
   132  
   133  type Dirent struct {
   134  	Fileno  uint64
   135  	Namlen  uint16
   136  	Type    uint8
   137  	Unused1 uint8
   138  	Unused2 uint32
   139  	Name    [256]int8
   140  }
   141  
   142  type Fsid struct {
   143  	Val [2]int32
   144  }
   145  
   146  type RawSockaddrInet4 struct {
   147  	Len    uint8
   148  	Family uint8
   149  	Port   uint16
   150  	Addr   [4]byte /* in_addr */
   151  	Zero   [8]int8
   152  }
   153  
   154  type RawSockaddrInet6 struct {
   155  	Len      uint8
   156  	Family   uint8
   157  	Port     uint16
   158  	Flowinfo uint32
   159  	Addr     [16]byte /* in6_addr */
   160  	Scope_id uint32
   161  }
   162  
   163  type RawSockaddrUnix struct {
   164  	Len    uint8
   165  	Family uint8
   166  	Path   [104]int8
   167  }
   168  
   169  type RawSockaddrDatalink struct {
   170  	Len    uint8
   171  	Family uint8
   172  	Index  uint16
   173  	Type   uint8
   174  	Nlen   uint8
   175  	Alen   uint8
   176  	Slen   uint8
   177  	Data   [12]int8
   178  	Rcf    uint16
   179  	Route  [16]uint16
   180  }
   181  
   182  type RawSockaddr struct {
   183  	Len    uint8
   184  	Family uint8
   185  	Data   [14]int8
   186  }
   187  
   188  type RawSockaddrAny struct {
   189  	Addr RawSockaddr
   190  	Pad  [92]int8
   191  }
   192  
   193  type _Socklen uint32
   194  
   195  type Linger struct {
   196  	Onoff  int32
   197  	Linger int32
   198  }
   199  
   200  type Iovec struct {
   201  	Base *byte
   202  	Len  uint32
   203  }
   204  
   205  type IPMreq struct {
   206  	Multiaddr [4]byte /* in_addr */
   207  	Interface [4]byte /* in_addr */
   208  }
   209  
   210  type IPv6Mreq struct {
   211  	Multiaddr [16]byte /* in6_addr */
   212  	Interface uint32
   213  }
   214  
   215  type Msghdr struct {
   216  	Name       *byte
   217  	Namelen    uint32
   218  	Iov        *Iovec
   219  	Iovlen     int32
   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           = 0x1c
   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  uint32
   269  	Filter int16
   270  	Flags  uint16
   271  	Fflags uint32
   272  	Data   int32
   273  	Udata  *byte
   274  }
   275  
   276  type FdSet struct {
   277  	Bits [32]uint32
   278  }
   279  
   280  const (
   281  	SizeofIfMsghdr         = 0x68
   282  	SizeofIfData           = 0x58
   283  	SizeofIfaMsghdr        = 0x14
   284  	SizeofIfmaMsghdr       = 0x10
   285  	SizeofIfAnnounceMsghdr = 0x18
   286  	SizeofRtMsghdr         = 0x5c
   287  	SizeofRtMetrics        = 0x38
   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        uint32
   310  	Metric     uint32
   311  	Link_state uint32
   312  	Baudrate   uint64
   313  	Ipackets   uint32
   314  	Ierrors    uint32
   315  	Opackets   uint32
   316  	Oerrors    uint32
   317  	Collisions uint32
   318  	Ibytes     uint32
   319  	Obytes     uint32
   320  	Imcasts    uint32
   321  	Omcasts    uint32
   322  	Iqdrops    uint32
   323  	Noproto    uint32
   324  	Hwassist   uint32
   325  	Unused     uint32
   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     uint32
   372  	Rmx       RtMetrics
   373  }
   374  
   375  type RtMetrics struct {
   376  	Locks     uint32
   377  	Mtu       uint32
   378  	Pksent    uint32
   379  	Expire    uint32
   380  	Sendpipe  uint32
   381  	Ssthresh  uint32
   382  	Rtt       uint32
   383  	Rttvar    uint32
   384  	Recvpipe  uint32
   385  	Hopcount  uint32
   386  	Mssopt    uint16
   387  	Pad       uint16
   388  	Msl       uint32
   389  	Iwmaxsegs uint32
   390  	Iwcapsegs uint32
   391  }
   392  
   393  const (
   394  	SizeofBpfVersion = 0x4
   395  	SizeofBpfStat    = 0x8
   396  	SizeofBpfProgram = 0x8
   397  	SizeofBpfInsn    = 0x8
   398  	SizeofBpfHdr     = 0x14
   399  )
   400  
   401  type BpfVersion struct {
   402  	Major uint16
   403  	Minor uint16
   404  }
   405  
   406  type BpfStat struct {
   407  	Recv uint32
   408  	Drop uint32
   409  }
   410  
   411  type BpfProgram struct {
   412  	Len   uint32
   413  	Insns *BpfInsn
   414  }
   415  
   416  type BpfInsn struct {
   417  	Code uint16
   418  	Jt   uint8
   419  	Jf   uint8
   420  	K    uint32
   421  }
   422  
   423  type BpfHdr struct {
   424  	Tstamp    Timeval
   425  	Caplen    uint32
   426  	Datalen   uint32
   427  	Hdrlen    uint16
   428  	Pad_cgo_0 [2]byte
   429  }