zsys_netbsd_386.go 810 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 uint32
  7. }
  8. type msghdr struct {
  9. Name *byte
  10. Namelen uint32
  11. Iov *iovec
  12. Iovlen int32
  13. Control *byte
  14. Controllen uint32
  15. Flags int32
  16. }
  17. type mmsghdr struct {
  18. Hdr msghdr
  19. Len uint32
  20. }
  21. type cmsghdr struct {
  22. Len uint32
  23. Level int32
  24. Type int32
  25. }
  26. type sockaddrInet struct {
  27. Len uint8
  28. Family uint8
  29. Port uint16
  30. Addr [4]byte /* in_addr */
  31. Zero [8]int8
  32. }
  33. type sockaddrInet6 struct {
  34. Len uint8
  35. Family uint8
  36. Port uint16
  37. Flowinfo uint32
  38. Addr [16]byte /* in6_addr */
  39. Scope_id uint32
  40. }
  41. const (
  42. sizeofIovec = 0x8
  43. sizeofMsghdr = 0x1c
  44. sizeofCmsghdr = 0xc
  45. sizeofSockaddrInet = 0x10
  46. sizeofSockaddrInet6 = 0x1c
  47. )