zsys_netbsd_amd64.go 882 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_netbsd.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 mmsghdr struct {
  20. Hdr msghdr
  21. Len uint32
  22. Pad_cgo_0 [4]byte
  23. }
  24. type cmsghdr struct {
  25. Len uint32
  26. Level int32
  27. Type int32
  28. }
  29. type sockaddrInet struct {
  30. Len uint8
  31. Family uint8
  32. Port uint16
  33. Addr [4]byte /* in_addr */
  34. Zero [8]int8
  35. }
  36. type sockaddrInet6 struct {
  37. Len uint8
  38. Family uint8
  39. Port uint16
  40. Flowinfo uint32
  41. Addr [16]byte /* in6_addr */
  42. Scope_id uint32
  43. }
  44. const (
  45. sizeofIovec = 0x10
  46. sizeofMsghdr = 0x30
  47. sizeofCmsghdr = 0xc
  48. sizeofSockaddrInet = 0x10
  49. sizeofSockaddrInet6 = 0x1c
  50. )