zsys_linux_386.go 784 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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 uint32
  7. }
  8. type msghdr struct {
  9. Name *byte
  10. Namelen uint32
  11. Iov *iovec
  12. Iovlen uint32
  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. Family uint16
  28. Port uint16
  29. Addr [4]byte /* in_addr */
  30. X__pad [8]uint8
  31. }
  32. type sockaddrInet6 struct {
  33. Family uint16
  34. Port uint16
  35. Flowinfo uint32
  36. Addr [16]byte /* in6_addr */
  37. Scope_id uint32
  38. }
  39. const (
  40. sizeofIovec = 0x8
  41. sizeofMsghdr = 0x1c
  42. sizeofCmsghdr = 0xc
  43. sizeofSockaddrInet = 0x10
  44. sizeofSockaddrInet6 = 0x1c
  45. )