zsys_linux_amd64.go 857 B

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