zsys_netbsd_amd64.go 986 B

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