zsys_solaris_amd64.go 929 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_solaris.go
  3. package socket
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0x1a
  8. sysSOCK_RAW = 0x4
  9. )
  10. type iovec struct {
  11. Base *int8
  12. Len uint64
  13. }
  14. type msghdr struct {
  15. Name *byte
  16. Namelen uint32
  17. Pad_cgo_0 [4]byte
  18. Iov *iovec
  19. Iovlen int32
  20. Pad_cgo_1 [4]byte
  21. Accrights *int8
  22. Accrightslen int32
  23. Pad_cgo_2 [4]byte
  24. }
  25. type cmsghdr struct {
  26. Len uint32
  27. Level int32
  28. Type int32
  29. }
  30. type sockaddrInet struct {
  31. Family uint16
  32. Port uint16
  33. Addr [4]byte /* in_addr */
  34. Zero [8]int8
  35. }
  36. type sockaddrInet6 struct {
  37. Family uint16
  38. Port uint16
  39. Flowinfo uint32
  40. Addr [16]byte /* in6_addr */
  41. Scope_id uint32
  42. X__sin6_src_id uint32
  43. }
  44. const (
  45. sizeofIovec = 0x10
  46. sizeofMsghdr = 0x30
  47. sizeofCmsghdr = 0xc
  48. sizeofSockaddrInet = 0x10
  49. sizeofSockaddrInet6 = 0x20
  50. )