zsys_darwin_386.go 843 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 uint32
  13. }
  14. type msghdr struct {
  15. Name *byte
  16. Namelen uint32
  17. Iov *iovec
  18. Iovlen int32
  19. Control *byte
  20. Controllen uint32
  21. Flags int32
  22. }
  23. type cmsghdr struct {
  24. Len uint32
  25. Level int32
  26. Type int32
  27. }
  28. type sockaddrInet struct {
  29. Len uint8
  30. Family uint8
  31. Port uint16
  32. Addr [4]byte /* in_addr */
  33. Zero [8]int8
  34. }
  35. type sockaddrInet6 struct {
  36. Len uint8
  37. Family uint8
  38. Port uint16
  39. Flowinfo uint32
  40. Addr [16]byte /* in6_addr */
  41. Scope_id uint32
  42. }
  43. const (
  44. sizeofIovec = 0x8
  45. sizeofMsghdr = 0x1c
  46. sizeofCmsghdr = 0xc
  47. sizeofSockaddrInet = 0x10
  48. sizeofSockaddrInet6 = 0x1c
  49. )