vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go
changeset 256 6d9efbef00a9
parent 251 1c52a0eeb952
child 260 445e01aede7e
equal deleted inserted replaced
255:4f153a23adab 256:6d9efbef00a9
     1 // cgo -godefs types_freebsd.go | go run mkpost.go
     1 // cgo -godefs -- -fsigned-char types_freebsd.go | go run mkpost.go
     2 // Code generated by the command above; see README.md. DO NOT EDIT.
     2 // Code generated by the command above; see README.md. DO NOT EDIT.
     3 
     3 
       
     4 //go:build arm64 && freebsd
     4 // +build arm64,freebsd
     5 // +build arm64,freebsd
     5 
     6 
     6 package unix
     7 package unix
     7 
     8 
     8 const (
     9 const (
   121 	Spare       [10]uint64
   122 	Spare       [10]uint64
   122 	Namemax     uint32
   123 	Namemax     uint32
   123 	Owner       uint32
   124 	Owner       uint32
   124 	Fsid        Fsid
   125 	Fsid        Fsid
   125 	Charspare   [80]int8
   126 	Charspare   [80]int8
   126 	Fstypename  [16]int8
   127 	Fstypename  [16]byte
   127 	Mntfromname [1024]int8
   128 	Mntfromname [1024]byte
   128 	Mntonname   [1024]int8
   129 	Mntonname   [1024]byte
   129 }
   130 }
   130 
   131 
   131 type statfs_freebsd11_t struct {
   132 type statfs_freebsd11_t struct {
   132 	Version     uint32
   133 	Version     uint32
   133 	Type        uint32
   134 	Type        uint32
   146 	Spare       [10]uint64
   147 	Spare       [10]uint64
   147 	Namemax     uint32
   148 	Namemax     uint32
   148 	Owner       uint32
   149 	Owner       uint32
   149 	Fsid        Fsid
   150 	Fsid        Fsid
   150 	Charspare   [80]int8
   151 	Charspare   [80]int8
   151 	Fstypename  [16]int8
   152 	Fstypename  [16]byte
   152 	Mntfromname [88]int8
   153 	Mntfromname [88]byte
   153 	Mntonname   [88]int8
   154 	Mntonname   [88]byte
   154 }
   155 }
   155 
   156 
   156 type Flock_t struct {
   157 type Flock_t struct {
   157 	Start  int64
   158 	Start  int64
   158 	Len    int64
   159 	Len    int64
   244 	Pad  [92]int8
   245 	Pad  [92]int8
   245 }
   246 }
   246 
   247 
   247 type _Socklen uint32
   248 type _Socklen uint32
   248 
   249 
       
   250 type Xucred struct {
       
   251 	Version uint32
       
   252 	Uid     uint32
       
   253 	Ngroups int16
       
   254 	Groups  [16]uint32
       
   255 	_       *byte
       
   256 }
       
   257 
   249 type Linger struct {
   258 type Linger struct {
   250 	Onoff  int32
   259 	Onoff  int32
   251 	Linger int32
   260 	Linger int32
   252 }
   261 }
   253 
   262 
   273 }
   282 }
   274 
   283 
   275 type Msghdr struct {
   284 type Msghdr struct {
   276 	Name       *byte
   285 	Name       *byte
   277 	Namelen    uint32
   286 	Namelen    uint32
   278 	_          [4]byte
       
   279 	Iov        *Iovec
   287 	Iov        *Iovec
   280 	Iovlen     int32
   288 	Iovlen     int32
   281 	_          [4]byte
       
   282 	Control    *byte
   289 	Control    *byte
   283 	Controllen uint32
   290 	Controllen uint32
   284 	Flags      int32
   291 	Flags      int32
   285 }
   292 }
   286 
   293 
   308 	SizeofSockaddrInet4    = 0x10
   315 	SizeofSockaddrInet4    = 0x10
   309 	SizeofSockaddrInet6    = 0x1c
   316 	SizeofSockaddrInet6    = 0x1c
   310 	SizeofSockaddrAny      = 0x6c
   317 	SizeofSockaddrAny      = 0x6c
   311 	SizeofSockaddrUnix     = 0x6a
   318 	SizeofSockaddrUnix     = 0x6a
   312 	SizeofSockaddrDatalink = 0x36
   319 	SizeofSockaddrDatalink = 0x36
       
   320 	SizeofXucred           = 0x58
   313 	SizeofLinger           = 0x8
   321 	SizeofLinger           = 0x8
       
   322 	SizeofIovec            = 0x10
   314 	SizeofIPMreq           = 0x8
   323 	SizeofIPMreq           = 0x8
   315 	SizeofIPMreqn          = 0xc
   324 	SizeofIPMreqn          = 0xc
   316 	SizeofIPv6Mreq         = 0x14
   325 	SizeofIPv6Mreq         = 0x14
   317 	SizeofMsghdr           = 0x30
   326 	SizeofMsghdr           = 0x30
   318 	SizeofCmsghdr          = 0xc
   327 	SizeofCmsghdr          = 0xc
   324 const (
   333 const (
   325 	PTRACE_ATTACH     = 0xa
   334 	PTRACE_ATTACH     = 0xa
   326 	PTRACE_CONT       = 0x7
   335 	PTRACE_CONT       = 0x7
   327 	PTRACE_DETACH     = 0xb
   336 	PTRACE_DETACH     = 0xb
   328 	PTRACE_GETFPREGS  = 0x23
   337 	PTRACE_GETFPREGS  = 0x23
   329 	PTRACE_GETFSBASE  = 0x47
       
   330 	PTRACE_GETLWPLIST = 0xf
   338 	PTRACE_GETLWPLIST = 0xf
   331 	PTRACE_GETNUMLWPS = 0xe
   339 	PTRACE_GETNUMLWPS = 0xe
   332 	PTRACE_GETREGS    = 0x21
   340 	PTRACE_GETREGS    = 0x21
   333 	PTRACE_GETXSTATE  = 0x45
       
   334 	PTRACE_IO         = 0xc
   341 	PTRACE_IO         = 0xc
   335 	PTRACE_KILL       = 0x8
   342 	PTRACE_KILL       = 0x8
   336 	PTRACE_LWPEVENTS  = 0x18
   343 	PTRACE_LWPEVENTS  = 0x18
   337 	PTRACE_LWPINFO    = 0xd
   344 	PTRACE_LWPINFO    = 0xd
   338 	PTRACE_SETFPREGS  = 0x24
   345 	PTRACE_SETFPREGS  = 0x24
   371 	Syscall_code uint32
   378 	Syscall_code uint32
   372 	Syscall_narg uint32
   379 	Syscall_narg uint32
   373 }
   380 }
   374 
   381 
   375 type __Siginfo struct {
   382 type __Siginfo struct {
   376 	Signo    int32
   383 	Signo  int32
   377 	Errno    int32
   384 	Errno  int32
   378 	Code     int32
   385 	Code   int32
   379 	Pid      int32
   386 	Pid    int32
   380 	Uid      uint32
   387 	Uid    uint32
   381 	Status   int32
   388 	Status int32
   382 	Addr     *byte
   389 	Addr   *byte
   383 	Value    [8]byte
   390 	Value  [8]byte
   384 	X_reason [40]byte
   391 	_      [40]byte
   385 }
   392 }
   386 
   393 
   387 type Sigset_t struct {
   394 type Sigset_t struct {
   388 	Val [4]uint32
   395 	Val [4]uint32
   389 }
   396 }
   392 	X    [30]uint64
   399 	X    [30]uint64
   393 	Lr   uint64
   400 	Lr   uint64
   394 	Sp   uint64
   401 	Sp   uint64
   395 	Elr  uint64
   402 	Elr  uint64
   396 	Spsr uint32
   403 	Spsr uint32
       
   404 	_    [4]byte
   397 }
   405 }
   398 
   406 
   399 type FpReg struct {
   407 type FpReg struct {
   400 	Fp_q  [512]uint8
   408 	Q  [32][16]uint8
   401 	Fp_sr uint32
   409 	Sr uint32
   402 	Fp_cr uint32
   410 	Cr uint32
       
   411 	_  [8]byte
   403 }
   412 }
   404 
   413 
   405 type PtraceIoDesc struct {
   414 type PtraceIoDesc struct {
   406 	Op   int32
   415 	Op   int32
   407 	Offs *byte
   416 	Offs *byte
   439 	Version uint8
   448 	Version uint8
   440 	Type    uint8
   449 	Type    uint8
   441 	Addrs   int32
   450 	Addrs   int32
   442 	Flags   int32
   451 	Flags   int32
   443 	Index   uint16
   452 	Index   uint16
   444 	_       [2]byte
   453 	_       uint16
   445 	Data    ifData
   454 	Data    ifData
   446 }
   455 }
   447 
   456 
   448 type IfMsghdr struct {
   457 type IfMsghdr struct {
   449 	Msglen  uint16
   458 	Msglen  uint16
   450 	Version uint8
   459 	Version uint8
   451 	Type    uint8
   460 	Type    uint8
   452 	Addrs   int32
   461 	Addrs   int32
   453 	Flags   int32
   462 	Flags   int32
   454 	Index   uint16
   463 	Index   uint16
   455 	_       [2]byte
       
   456 	Data    IfData
   464 	Data    IfData
   457 }
   465 }
   458 
   466 
   459 type ifData struct {
   467 type ifData struct {
   460 	Type       uint8
   468 	Type       uint8
   517 	Version uint8
   525 	Version uint8
   518 	Type    uint8
   526 	Type    uint8
   519 	Addrs   int32
   527 	Addrs   int32
   520 	Flags   int32
   528 	Flags   int32
   521 	Index   uint16
   529 	Index   uint16
   522 	_       [2]byte
   530 	_       uint16
   523 	Metric  int32
   531 	Metric  int32
   524 }
   532 }
   525 
   533 
   526 type IfmaMsghdr struct {
   534 type IfmaMsghdr struct {
   527 	Msglen  uint16
   535 	Msglen  uint16
   528 	Version uint8
   536 	Version uint8
   529 	Type    uint8
   537 	Type    uint8
   530 	Addrs   int32
   538 	Addrs   int32
   531 	Flags   int32
   539 	Flags   int32
   532 	Index   uint16
   540 	Index   uint16
   533 	_       [2]byte
   541 	_       uint16
   534 }
   542 }
   535 
   543 
   536 type IfAnnounceMsghdr struct {
   544 type IfAnnounceMsghdr struct {
   537 	Msglen  uint16
   545 	Msglen  uint16
   538 	Version uint8
   546 	Version uint8
   545 type RtMsghdr struct {
   553 type RtMsghdr struct {
   546 	Msglen  uint16
   554 	Msglen  uint16
   547 	Version uint8
   555 	Version uint8
   548 	Type    uint8
   556 	Type    uint8
   549 	Index   uint16
   557 	Index   uint16
   550 	_       [2]byte
   558 	_       uint16
   551 	Flags   int32
   559 	Flags   int32
   552 	Addrs   int32
   560 	Addrs   int32
   553 	Pid     int32
   561 	Pid     int32
   554 	Seq     int32
   562 	Seq     int32
   555 	Errno   int32
   563 	Errno   int32
   599 	Buflen uint64
   607 	Buflen uint64
   600 }
   608 }
   601 
   609 
   602 type BpfProgram struct {
   610 type BpfProgram struct {
   603 	Len   uint32
   611 	Len   uint32
   604 	_     [4]byte
       
   605 	Insns *BpfInsn
   612 	Insns *BpfInsn
   606 }
   613 }
   607 
   614 
   608 type BpfInsn struct {
   615 type BpfInsn struct {
   609 	Code uint16
   616 	Code uint16
   644 	Ypixel uint16
   651 	Ypixel uint16
   645 }
   652 }
   646 
   653 
   647 const (
   654 const (
   648 	AT_FDCWD            = -0x64
   655 	AT_FDCWD            = -0x64
       
   656 	AT_EACCESS          = 0x100
       
   657 	AT_SYMLINK_NOFOLLOW = 0x200
       
   658 	AT_SYMLINK_FOLLOW   = 0x400
   649 	AT_REMOVEDIR        = 0x800
   659 	AT_REMOVEDIR        = 0x800
   650 	AT_SYMLINK_FOLLOW   = 0x400
       
   651 	AT_SYMLINK_NOFOLLOW = 0x200
       
   652 )
   660 )
   653 
   661 
   654 type PollFd struct {
   662 type PollFd struct {
   655 	Fd      int32
   663 	Fd      int32
   656 	Events  int16
   664 	Events  int16