zsys_freebsd_arm64.go 804 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_freebsd.go
  3. package socket
  4. type iovec struct {
  5. Base *byte
  6. Len uint64
  7. }
  8. type msghdr struct {
  9. Name *byte
  10. Namelen uint32
  11. Pad_cgo_0 [4]byte
  12. Iov *iovec
  13. Iovlen int32
  14. Pad_cgo_1 [4]byte
  15. Control *byte
  16. Controllen uint32
  17. Flags int32
  18. }
  19. type cmsghdr struct {
  20. Len uint32
  21. Level int32
  22. Type int32
  23. }
  24. type sockaddrInet struct {
  25. Len uint8
  26. Family uint8
  27. Port uint16
  28. Addr [4]byte /* in_addr */
  29. Zero [8]int8
  30. }
  31. type sockaddrInet6 struct {
  32. Len uint8
  33. Family uint8
  34. Port uint16
  35. Flowinfo uint32
  36. Addr [16]byte /* in6_addr */
  37. Scope_id uint32
  38. }
  39. const (
  40. sizeofIovec = 0x10
  41. sizeofMsghdr = 0x30
  42. sizeofCmsghdr = 0xc
  43. sizeofSockaddrInet = 0x10
  44. sizeofSockaddrInet6 = 0x1c
  45. )