Black Lives Matter. Support the Equal Justice Initiative.

Source file src/syscall/ztypes_dragonfly_amd64.go

Documentation: syscall

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

View as plain text