zsys_solaris_amd64.go 848 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_solaris.go
  3. package socket
  4. type iovec struct {
  5. Base *int8
  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. Accrights *int8
  16. Accrightslen int32
  17. Pad_cgo_2 [4]byte
  18. }
  19. type cmsghdr struct {
  20. Len uint32
  21. Level int32
  22. Type int32
  23. }
  24. type sockaddrInet struct {
  25. Family uint16
  26. Port uint16
  27. Addr [4]byte /* in_addr */
  28. Zero [8]int8
  29. }
  30. type sockaddrInet6 struct {
  31. Family uint16
  32. Port uint16
  33. Flowinfo uint32
  34. Addr [16]byte /* in6_addr */
  35. Scope_id uint32
  36. X__sin6_src_id uint32
  37. }
  38. const (
  39. sizeofIovec = 0x10
  40. sizeofMsghdr = 0x30
  41. sizeofCmsghdr = 0xc
  42. sizeofSockaddrInet = 0x10
  43. sizeofSockaddrInet6 = 0x20
  44. )