zsys_linux_mips64le.go 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_linux.go
  3. package socket
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0xa
  8. sysSOCK_RAW = 0x3
  9. )
  10. type iovec struct {
  11. Base *byte
  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 uint64
  20. Control *byte
  21. Controllen uint64
  22. Flags int32
  23. Pad_cgo_1 [4]byte
  24. }
  25. type mmsghdr struct {
  26. Hdr msghdr
  27. Len uint32
  28. Pad_cgo_0 [4]byte
  29. }
  30. type cmsghdr struct {
  31. Len uint64
  32. Level int32
  33. Type int32
  34. }
  35. type sockaddrInet struct {
  36. Family uint16
  37. Port uint16
  38. Addr [4]byte /* in_addr */
  39. X__pad [8]uint8
  40. }
  41. type sockaddrInet6 struct {
  42. Family uint16
  43. Port uint16
  44. Flowinfo uint32
  45. Addr [16]byte /* in6_addr */
  46. Scope_id uint32
  47. }
  48. const (
  49. sizeofIovec = 0x10
  50. sizeofMsghdr = 0x38
  51. sizeofMmsghdr = 0x40
  52. sizeofCmsghdr = 0x10
  53. sizeofSockaddrInet = 0x10
  54. sizeofSockaddrInet6 = 0x1c
  55. )