Source file src/syscall/ztypes_dragonfly_amd64.go

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

View as plain text