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.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. //go: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:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
  13. //go:linkname procreadv libc_readv
  14. //go:linkname procpreadv libc_preadv
  15. //go:linkname procwritev libc_writev
  16. //go:linkname procpwritev libc_pwritev
  17. //go:linkname procaccept4 libc_accept4
  18. var (
  19. procreadv,
  20. procpreadv,
  21. procwritev,
  22. procpwritev,
  23. procaccept4 syscallFunc
  24. )
  25. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  26. func readv(fd int, iovs []Iovec) (n int, err error) {
  27. var _p0 *Iovec
  28. if len(iovs) > 0 {
  29. _p0 = &iovs[0]
  30. }
  31. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  32. n = int(r0)
  33. if e1 != 0 {
  34. err = errnoErr(e1)
  35. }
  36. return
  37. }
  38. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  39. func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
  40. var _p0 *Iovec
  41. if len(iovs) > 0 {
  42. _p0 = &iovs[0]
  43. }
  44. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  45. n = int(r0)
  46. if e1 != 0 {
  47. err = errnoErr(e1)
  48. }
  49. return
  50. }
  51. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  52. func writev(fd int, iovs []Iovec) (n int, err error) {
  53. var _p0 *Iovec
  54. if len(iovs) > 0 {
  55. _p0 = &iovs[0]
  56. }
  57. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  58. n = int(r0)
  59. if e1 != 0 {
  60. err = errnoErr(e1)
  61. }
  62. return
  63. }
  64. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  65. func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
  66. var _p0 *Iovec
  67. if len(iovs) > 0 {
  68. _p0 = &iovs[0]
  69. }
  70. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  71. n = int(r0)
  72. if e1 != 0 {
  73. err = errnoErr(e1)
  74. }
  75. return
  76. }
  77. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  78. func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  79. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  80. fd = int(r0)
  81. if e1 != 0 {
  82. err = errnoErr(e1)
  83. }
  84. return
  85. }