zsys_darwin_amd64.go 884 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Created by cgo -godefs - DO NOT EDIT
  2. // cgo -godefs defs_darwin.go
  3. package socket
  4. const (
  5. sysAF_UNSPEC = 0x0
  6. sysAF_INET = 0x2
  7. sysAF_INET6 = 0x1e
  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 cmsghdr struct {
  26. Len uint32
  27. Level int32
  28. Type int32
  29. }
  30. type sockaddrInet struct {
  31. Len uint8
  32. Family uint8
  33. Port uint16
  34. Addr [4]byte /* in_addr */
  35. Zero [8]int8
  36. }
  37. type sockaddrInet6 struct {
  38. Len uint8
  39. Family uint8
  40. Port uint16
  41. Flowinfo uint32
  42. Addr [16]byte /* in6_addr */
  43. Scope_id uint32
  44. }
  45. const (
  46. sizeofIovec = 0x10
  47. sizeofMsghdr = 0x30
  48. sizeofCmsghdr = 0xc
  49. sizeofSockaddrInet = 0x10
  50. sizeofSockaddrInet6 = 0x1c
  51. )