zsys_linux_riscv64.go 855 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. // Code generated by cmd/cgo -godefs; DO NOT EDIT.
  2. // cgo -godefs defs_linux.go
  3. // +build riscv64
  4. package socket
  5. type iovec struct {
  6. Base *byte
  7. Len uint64
  8. }
  9. type msghdr struct {
  10. Name *byte
  11. Namelen uint32
  12. Iov *iovec
  13. Iovlen uint64
  14. Control *byte
  15. Controllen uint64
  16. Flags int32
  17. Pad_cgo_0 [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. )