github.com/HACKERALERT/Picocrypt/src/external/sys@v0.0.0-20210609020157-e519952f829f/unix/ztypes_freebsd_386.go (about)

     1  // cgo -godefs types_freebsd.go | go run mkpost.go
     2  // Code generated by the command above; see README.md. DO NOT EDIT.
     3  
     4  //go:build 386 && freebsd
     5  // +build 386,freebsd
     6  
     7  package unix
     8  
     9  const (
    10  	SizeofPtr      = 0x4
    11  	SizeofShort    = 0x2
    12  	SizeofInt      = 0x4
    13  	SizeofLong     = 0x4
    14  	SizeofLongLong = 0x8
    15  )
    16  
    17  type (
    18  	_C_short     int16
    19  	_C_int       int32
    20  	_C_long      int32
    21  	_C_long_long int64
    22  )
    23  
    24  type Timespec struct {
    25  	Sec  int32
    26  	Nsec int32
    27  }
    28  
    29  type Timeval struct {
    30  	Sec  int32
    31  	Usec int32
    32  }
    33  
    34  type Rusage struct {
    35  	Utime    Timeval
    36  	Stime    Timeval
    37  	Maxrss   int32
    38  	Ixrss    int32
    39  	Idrss    int32
    40  	Isrss    int32
    41  	Minflt   int32
    42  	Majflt   int32
    43  	Nswap    int32
    44  	Inblock  int32
    45  	Oublock  int32
    46  	Msgsnd   int32
    47  	Msgrcv   int32
    48  	Nsignals int32
    49  	Nvcsw    int32
    50  	Nivcsw   int32
    51  }
    52  
    53  type Rlimit struct {
    54  	Cur int64
    55  	Max int64
    56  }
    57  
    58  type _Gid_t uint32
    59  
    60  const (
    61  	_statfsVersion = 0x20140518
    62  	_dirblksiz     = 0x400
    63  )
    64  
    65  type Stat_t struct {
    66  	Dev     uint64
    67  	Ino     uint64
    68  	Nlink   uint64
    69  	Mode    uint16
    70  	_0      int16
    71  	Uid     uint32
    72  	Gid     uint32
    73  	_1      int32
    74  	Rdev    uint64
    75  	_       int32
    76  	Atim    Timespec
    77  	_       int32
    78  	Mtim    Timespec
    79  	_       int32
    80  	Ctim    Timespec
    81  	_       int32
    82  	Btim    Timespec
    83  	Size    int64
    84  	Blocks  int64
    85  	Blksize int32
    86  	Flags   uint32
    87  	Gen     uint64
    88  	Spare   [10]uint64
    89  }
    90  
    91  type stat_freebsd11_t struct {
    92  	Dev     uint32
    93  	Ino     uint32
    94  	Mode    uint16
    95  	Nlink   uint16
    96  	Uid     uint32
    97  	Gid     uint32
    98  	Rdev    uint32
    99  	Atim    Timespec
   100  	Mtim    Timespec
   101  	Ctim    Timespec
   102  	Size    int64
   103  	Blocks  int64
   104  	Blksize int32
   105  	Flags   uint32
   106  	Gen     uint32
   107  	Lspare  int32
   108  	Btim    Timespec
   109  	_       [8]byte
   110  }
   111  
   112  type Statfs_t struct {
   113  	Version     uint32
   114  	Type        uint32
   115  	Flags       uint64
   116  	Bsize       uint64
   117  	Iosize      uint64
   118  	Blocks      uint64
   119  	Bfree       uint64
   120  	Bavail      int64
   121  	Files       uint64
   122  	Ffree       int64
   123  	Syncwrites  uint64
   124  	Asyncwrites uint64
   125  	Syncreads   uint64
   126  	Asyncreads  uint64
   127  	Spare       [10]uint64
   128  	Namemax     uint32
   129  	Owner       uint32
   130  	Fsid        Fsid
   131  	Charspare   [80]int8
   132  	Fstypename  [16]byte
   133  	Mntfromname [1024]byte
   134  	Mntonname   [1024]byte
   135  }
   136  
   137  type statfs_freebsd11_t struct {
   138  	Version     uint32
   139  	Type        uint32
   140  	Flags       uint64
   141  	Bsize       uint64
   142  	Iosize      uint64
   143  	Blocks      uint64
   144  	Bfree       uint64
   145  	Bavail      int64
   146  	Files       uint64
   147  	Ffree       int64
   148  	Syncwrites  uint64
   149  	Asyncwrites uint64
   150  	Syncreads   uint64
   151  	Asyncreads  uint64
   152  	Spare       [10]uint64
   153  	Namemax     uint32
   154  	Owner       uint32
   155  	Fsid        Fsid
   156  	Charspare   [80]int8
   157  	Fstypename  [16]byte
   158  	Mntfromname [88]byte
   159  	Mntonname   [88]byte
   160  }
   161  
   162  type Flock_t struct {
   163  	Start  int64
   164  	Len    int64
   165  	Pid    int32
   166  	Type   int16
   167  	Whence int16
   168  	Sysid  int32
   169  }
   170  
   171  type Dirent struct {
   172  	Fileno uint64
   173  	Off    int64
   174  	Reclen uint16
   175  	Type   uint8
   176  	Pad0   uint8
   177  	Namlen uint16
   178  	Pad1   uint16
   179  	Name   [256]int8
   180  }
   181  
   182  type dirent_freebsd11 struct {
   183  	Fileno uint32
   184  	Reclen uint16
   185  	Type   uint8
   186  	Namlen uint8
   187  	Name   [256]int8
   188  }
   189  
   190  type Fsid struct {
   191  	Val [2]int32
   192  }
   193  
   194  const (
   195  	PathMax = 0x400
   196  )
   197  
   198  const (
   199  	FADV_NORMAL     = 0x0
   200  	FADV_RANDOM     = 0x1
   201  	FADV_SEQUENTIAL = 0x2
   202  	FADV_WILLNEED   = 0x3
   203  	FADV_DONTNEED   = 0x4
   204  	FADV_NOREUSE    = 0x5
   205  )
   206  
   207  type RawSockaddrInet4 struct {
   208  	Len    uint8
   209  	Family uint8
   210  	Port   uint16
   211  	Addr   [4]byte /* in_addr */
   212  	Zero   [8]int8
   213  }
   214  
   215  type RawSockaddrInet6 struct {
   216  	Len      uint8
   217  	Family   uint8
   218  	Port     uint16
   219  	Flowinfo uint32
   220  	Addr     [16]byte /* in6_addr */
   221  	Scope_id uint32
   222  }
   223  
   224  type RawSockaddrUnix struct {
   225  	Len    uint8
   226  	Family uint8
   227  	Path   [104]int8
   228  }
   229  
   230  type RawSockaddrDatalink struct {
   231  	Len    uint8
   232  	Family uint8
   233  	Index  uint16
   234  	Type   uint8
   235  	Nlen   uint8
   236  	Alen   uint8
   237  	Slen   uint8
   238  	Data   [46]int8
   239  }
   240  
   241  type RawSockaddr struct {
   242  	Len    uint8
   243  	Family uint8
   244  	Data   [14]int8
   245  }
   246  
   247  type RawSockaddrAny struct {
   248  	Addr RawSockaddr
   249  	Pad  [92]int8
   250  }
   251  
   252  type _Socklen uint32
   253  
   254  type Xucred struct {
   255  	Version uint32
   256  	Uid     uint32
   257  	Ngroups int16
   258  	Groups  [16]uint32
   259  	_       *byte
   260  }
   261  
   262  type Linger struct {
   263  	Onoff  int32
   264  	Linger int32
   265  }
   266  
   267  type Iovec struct {
   268  	Base *byte
   269  	Len  uint32
   270  }
   271  
   272  type IPMreq struct {
   273  	Multiaddr [4]byte /* in_addr */
   274  	Interface [4]byte /* in_addr */
   275  }
   276  
   277  type IPMreqn struct {
   278  	Multiaddr [4]byte /* in_addr */
   279  	Address   [4]byte /* in_addr */
   280  	Ifindex   int32
   281  }
   282  
   283  type IPv6Mreq struct {
   284  	Multiaddr [16]byte /* in6_addr */
   285  	Interface uint32
   286  }
   287  
   288  type Msghdr struct {
   289  	Name       *byte
   290  	Namelen    uint32
   291  	Iov        *Iovec
   292  	Iovlen     int32
   293  	Control    *byte
   294  	Controllen uint32
   295  	Flags      int32
   296  }
   297  
   298  type Cmsghdr struct {
   299  	Len   uint32
   300  	Level int32
   301  	Type  int32
   302  }
   303  
   304  type Inet6Pktinfo struct {
   305  	Addr    [16]byte /* in6_addr */
   306  	Ifindex uint32
   307  }
   308  
   309  type IPv6MTUInfo struct {
   310  	Addr RawSockaddrInet6
   311  	Mtu  uint32
   312  }
   313  
   314  type ICMPv6Filter struct {
   315  	Filt [8]uint32
   316  }
   317  
   318  const (
   319  	SizeofSockaddrInet4    = 0x10
   320  	SizeofSockaddrInet6    = 0x1c
   321  	SizeofSockaddrAny      = 0x6c
   322  	SizeofSockaddrUnix     = 0x6a
   323  	SizeofSockaddrDatalink = 0x36
   324  	SizeofXucred           = 0x50
   325  	SizeofLinger           = 0x8
   326  	SizeofIovec            = 0x8
   327  	SizeofIPMreq           = 0x8
   328  	SizeofIPMreqn          = 0xc
   329  	SizeofIPv6Mreq         = 0x14
   330  	SizeofMsghdr           = 0x1c
   331  	SizeofCmsghdr          = 0xc
   332  	SizeofInet6Pktinfo     = 0x14
   333  	SizeofIPv6MTUInfo      = 0x20
   334  	SizeofICMPv6Filter     = 0x20
   335  )
   336  
   337  const (
   338  	PTRACE_ATTACH     = 0xa
   339  	PTRACE_CONT       = 0x7
   340  	PTRACE_DETACH     = 0xb
   341  	PTRACE_GETFPREGS  = 0x23
   342  	PTRACE_GETFSBASE  = 0x47
   343  	PTRACE_GETLWPLIST = 0xf
   344  	PTRACE_GETNUMLWPS = 0xe
   345  	PTRACE_GETREGS    = 0x21
   346  	PTRACE_GETXSTATE  = 0x45
   347  	PTRACE_IO         = 0xc
   348  	PTRACE_KILL       = 0x8
   349  	PTRACE_LWPEVENTS  = 0x18
   350  	PTRACE_LWPINFO    = 0xd
   351  	PTRACE_SETFPREGS  = 0x24
   352  	PTRACE_SETREGS    = 0x22
   353  	PTRACE_SINGLESTEP = 0x9
   354  	PTRACE_TRACEME    = 0x0
   355  )
   356  
   357  const (
   358  	PIOD_READ_D  = 0x1
   359  	PIOD_WRITE_D = 0x2
   360  	PIOD_READ_I  = 0x3
   361  	PIOD_WRITE_I = 0x4
   362  )
   363  
   364  const (
   365  	PL_FLAG_BORN   = 0x100
   366  	PL_FLAG_EXITED = 0x200
   367  	PL_FLAG_SI     = 0x20
   368  )
   369  
   370  const (
   371  	TRAP_BRKPT = 0x1
   372  	TRAP_TRACE = 0x2
   373  )
   374  
   375  type PtraceLwpInfoStruct struct {
   376  	Lwpid        int32
   377  	Event        int32
   378  	Flags        int32
   379  	Sigmask      Sigset_t
   380  	Siglist      Sigset_t
   381  	Siginfo      __Siginfo
   382  	Tdname       [20]int8
   383  	Child_pid    int32
   384  	Syscall_code uint32
   385  	Syscall_narg uint32
   386  }
   387  
   388  type __Siginfo struct {
   389  	Signo  int32
   390  	Errno  int32
   391  	Code   int32
   392  	Pid    int32
   393  	Uid    uint32
   394  	Status int32
   395  	Addr   *byte
   396  	Value  [4]byte
   397  	_      [32]byte
   398  }
   399  
   400  type Sigset_t struct {
   401  	Val [4]uint32
   402  }
   403  
   404  type Reg struct {
   405  	Fs     uint32
   406  	Es     uint32
   407  	Ds     uint32
   408  	Edi    uint32
   409  	Esi    uint32
   410  	Ebp    uint32
   411  	Isp    uint32
   412  	Ebx    uint32
   413  	Edx    uint32
   414  	Ecx    uint32
   415  	Eax    uint32
   416  	Trapno uint32
   417  	Err    uint32
   418  	Eip    uint32
   419  	Cs     uint32
   420  	Eflags uint32
   421  	Esp    uint32
   422  	Ss     uint32
   423  	Gs     uint32
   424  }
   425  
   426  type FpReg struct {
   427  	Env   [7]uint32
   428  	Acc   [8][10]uint8
   429  	Ex_sw uint32
   430  	Pad   [64]uint8
   431  }
   432  
   433  type PtraceIoDesc struct {
   434  	Op   int32
   435  	Offs *byte
   436  	Addr *byte
   437  	Len  uint32
   438  }
   439  
   440  type Kevent_t struct {
   441  	Ident  uint32
   442  	Filter int16
   443  	Flags  uint16
   444  	Fflags uint32
   445  	Data   int32
   446  	Udata  *byte
   447  }
   448  
   449  type FdSet struct {
   450  	Bits [32]uint32
   451  }
   452  
   453  const (
   454  	sizeofIfMsghdr         = 0xa8
   455  	SizeofIfMsghdr         = 0x60
   456  	sizeofIfData           = 0x98
   457  	SizeofIfData           = 0x50
   458  	SizeofIfaMsghdr        = 0x14
   459  	SizeofIfmaMsghdr       = 0x10
   460  	SizeofIfAnnounceMsghdr = 0x18
   461  	SizeofRtMsghdr         = 0x5c
   462  	SizeofRtMetrics        = 0x38
   463  )
   464  
   465  type ifMsghdr struct {
   466  	Msglen  uint16
   467  	Version uint8
   468  	Type    uint8
   469  	Addrs   int32
   470  	Flags   int32
   471  	Index   uint16
   472  	_       uint16
   473  	Data    ifData
   474  }
   475  
   476  type IfMsghdr struct {
   477  	Msglen  uint16
   478  	Version uint8
   479  	Type    uint8
   480  	Addrs   int32
   481  	Flags   int32
   482  	Index   uint16
   483  	Data    IfData
   484  }
   485  
   486  type ifData struct {
   487  	Type       uint8
   488  	Physical   uint8
   489  	Addrlen    uint8
   490  	Hdrlen     uint8
   491  	Link_state uint8
   492  	Vhid       uint8
   493  	Datalen    uint16
   494  	Mtu        uint32
   495  	Metric     uint32
   496  	Baudrate   uint64
   497  	Ipackets   uint64
   498  	Ierrors    uint64
   499  	Opackets   uint64
   500  	Oerrors    uint64
   501  	Collisions uint64
   502  	Ibytes     uint64
   503  	Obytes     uint64
   504  	Imcasts    uint64
   505  	Omcasts    uint64
   506  	Iqdrops    uint64
   507  	Oqdrops    uint64
   508  	Noproto    uint64
   509  	Hwassist   uint64
   510  	_          [8]byte
   511  	_          [16]byte
   512  }
   513  
   514  type IfData struct {
   515  	Type        uint8
   516  	Physical    uint8
   517  	Addrlen     uint8
   518  	Hdrlen      uint8
   519  	Link_state  uint8
   520  	Spare_char1 uint8
   521  	Spare_char2 uint8
   522  	Datalen     uint8
   523  	Mtu         uint32
   524  	Metric      uint32
   525  	Baudrate    uint32
   526  	Ipackets    uint32
   527  	Ierrors     uint32
   528  	Opackets    uint32
   529  	Oerrors     uint32
   530  	Collisions  uint32
   531  	Ibytes      uint32
   532  	Obytes      uint32
   533  	Imcasts     uint32
   534  	Omcasts     uint32
   535  	Iqdrops     uint32
   536  	Noproto     uint32
   537  	Hwassist    uint32
   538  	Epoch       int32
   539  	Lastchange  Timeval
   540  }
   541  
   542  type IfaMsghdr struct {
   543  	Msglen  uint16
   544  	Version uint8
   545  	Type    uint8
   546  	Addrs   int32
   547  	Flags   int32
   548  	Index   uint16
   549  	_       uint16
   550  	Metric  int32
   551  }
   552  
   553  type IfmaMsghdr struct {
   554  	Msglen  uint16
   555  	Version uint8
   556  	Type    uint8
   557  	Addrs   int32
   558  	Flags   int32
   559  	Index   uint16
   560  	_       uint16
   561  }
   562  
   563  type IfAnnounceMsghdr struct {
   564  	Msglen  uint16
   565  	Version uint8
   566  	Type    uint8
   567  	Index   uint16
   568  	Name    [16]int8
   569  	What    uint16
   570  }
   571  
   572  type RtMsghdr struct {
   573  	Msglen  uint16
   574  	Version uint8
   575  	Type    uint8
   576  	Index   uint16
   577  	_       uint16
   578  	Flags   int32
   579  	Addrs   int32
   580  	Pid     int32
   581  	Seq     int32
   582  	Errno   int32
   583  	Fmask   int32
   584  	Inits   uint32
   585  	Rmx     RtMetrics
   586  }
   587  
   588  type RtMetrics struct {
   589  	Locks    uint32
   590  	Mtu      uint32
   591  	Hopcount uint32
   592  	Expire   uint32
   593  	Recvpipe uint32
   594  	Sendpipe uint32
   595  	Ssthresh uint32
   596  	Rtt      uint32
   597  	Rttvar   uint32
   598  	Pksent   uint32
   599  	Weight   uint32
   600  	Filler   [3]uint32
   601  }
   602  
   603  const (
   604  	SizeofBpfVersion    = 0x4
   605  	SizeofBpfStat       = 0x8
   606  	SizeofBpfZbuf       = 0xc
   607  	SizeofBpfProgram    = 0x8
   608  	SizeofBpfInsn       = 0x8
   609  	SizeofBpfHdr        = 0x14
   610  	SizeofBpfZbufHeader = 0x20
   611  )
   612  
   613  type BpfVersion struct {
   614  	Major uint16
   615  	Minor uint16
   616  }
   617  
   618  type BpfStat struct {
   619  	Recv uint32
   620  	Drop uint32
   621  }
   622  
   623  type BpfZbuf struct {
   624  	Bufa   *byte
   625  	Bufb   *byte
   626  	Buflen uint32
   627  }
   628  
   629  type BpfProgram struct {
   630  	Len   uint32
   631  	Insns *BpfInsn
   632  }
   633  
   634  type BpfInsn struct {
   635  	Code uint16
   636  	Jt   uint8
   637  	Jf   uint8
   638  	K    uint32
   639  }
   640  
   641  type BpfHdr struct {
   642  	Tstamp  Timeval
   643  	Caplen  uint32
   644  	Datalen uint32
   645  	Hdrlen  uint16
   646  	_       [2]byte
   647  }
   648  
   649  type BpfZbufHeader struct {
   650  	Kernel_gen uint32
   651  	Kernel_len uint32
   652  	User_gen   uint32
   653  	_          [5]uint32
   654  }
   655  
   656  type Termios struct {
   657  	Iflag  uint32
   658  	Oflag  uint32
   659  	Cflag  uint32
   660  	Lflag  uint32
   661  	Cc     [20]uint8
   662  	Ispeed uint32
   663  	Ospeed uint32
   664  }
   665  
   666  type Winsize struct {
   667  	Row    uint16
   668  	Col    uint16
   669  	Xpixel uint16
   670  	Ypixel uint16
   671  }
   672  
   673  const (
   674  	AT_FDCWD            = -0x64
   675  	AT_REMOVEDIR        = 0x800
   676  	AT_SYMLINK_FOLLOW   = 0x400
   677  	AT_SYMLINK_NOFOLLOW = 0x200
   678  )
   679  
   680  type PollFd struct {
   681  	Fd      int32
   682  	Events  int16
   683  	Revents int16
   684  }
   685  
   686  const (
   687  	POLLERR      = 0x8
   688  	POLLHUP      = 0x10
   689  	POLLIN       = 0x1
   690  	POLLINIGNEOF = 0x2000
   691  	POLLNVAL     = 0x20
   692  	POLLOUT      = 0x4
   693  	POLLPRI      = 0x2
   694  	POLLRDBAND   = 0x80
   695  	POLLRDNORM   = 0x40
   696  	POLLWRBAND   = 0x100
   697  	POLLWRNORM   = 0x4
   698  )
   699  
   700  type CapRights struct {
   701  	Rights [2]uint64
   702  }
   703  
   704  type Utsname struct {
   705  	Sysname  [256]byte
   706  	Nodename [256]byte
   707  	Release  [256]byte
   708  	Version  [256]byte
   709  	Machine  [256]byte
   710  }
   711  
   712  const SizeofClockinfo = 0x14
   713  
   714  type Clockinfo struct {
   715  	Hz     int32
   716  	Tick   int32
   717  	Spare  int32
   718  	Stathz int32
   719  	Profhz int32
   720  }