zsys_freebsd_386.go 763 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 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 cmsghdr struct {
  18. Len uint32
  19. Level int32
  20. Type int32
  21. }
  22. type sockaddrInet struct {
  23. Len uint8
  24. Family uint8
  25. Port uint16
  26. Addr [4]byte /* in_addr */
  27. Zero [8]int8
  28. }
  29. type sockaddrInet6 struct {
  30. Len uint8
  31. Family uint8
  32. Port uint16
  33. Flowinfo uint32
  34. Addr [16]byte /* in6_addr */
  35. Scope_id uint32
  36. }
  37. const (
  38. sizeofIovec = 0x8
  39. sizeofMsghdr = 0x1c
  40. sizeofCmsghdr = 0xc
  41. sizeofSockaddrInet = 0x10
  42. sizeofSockaddrInet6 = 0x1c
  43. )