You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

zsyscall_illumos_amd64.go 2.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. // go run mksyscall_solaris.go -illumos -tags illumos,amd64 syscall_illumos.go
  2. // Code generated by the command above; see README.md. DO NOT EDIT.
  3. // +build illumos,amd64
  4. package unix
  5. import (
  6. "unsafe"
  7. )
  8. //go:cgo_import_dynamic libc_readv readv "libc.so"
  9. //go:cgo_import_dynamic libc_preadv preadv "libc.so"
  10. //go:cgo_import_dynamic libc_writev writev "libc.so"
  11. //go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
  12. //go:linkname procreadv libc_readv
  13. //go:linkname procpreadv libc_preadv
  14. //go:linkname procwritev libc_writev
  15. //go:linkname procpwritev libc_pwritev
  16. var (
  17. procreadv,
  18. procpreadv,
  19. procwritev,
  20. procpwritev syscallFunc
  21. )
  22. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  23. func readv(fd int, iovs []Iovec) (n int, err error) {
  24. var _p0 *Iovec
  25. if len(iovs) > 0 {
  26. _p0 = &iovs[0]
  27. }
  28. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  29. n = int(r0)
  30. if e1 != 0 {
  31. err = e1
  32. }
  33. return
  34. }
  35. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  36. func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
  37. var _p0 *Iovec
  38. if len(iovs) > 0 {
  39. _p0 = &iovs[0]
  40. }
  41. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  42. n = int(r0)
  43. if e1 != 0 {
  44. err = e1
  45. }
  46. return
  47. }
  48. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  49. func writev(fd int, iovs []Iovec) (n int, err error) {
  50. var _p0 *Iovec
  51. if len(iovs) > 0 {
  52. _p0 = &iovs[0]
  53. }
  54. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  55. n = int(r0)
  56. if e1 != 0 {
  57. err = e1
  58. }
  59. return
  60. }
  61. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  62. func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
  63. var _p0 *Iovec
  64. if len(iovs) > 0 {
  65. _p0 = &iovs[0]
  66. }
  67. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  68. n = int(r0)
  69. if e1 != 0 {
  70. err = e1
  71. }
  72. return
  73. }