zsyscall_illumos_amd64.go 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  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. // +build illumos,amd64
  5. package unix
  6. import (
  7. "unsafe"
  8. )
  9. //go:cgo_import_dynamic libc_readv readv "libc.so"
  10. //go:cgo_import_dynamic libc_preadv preadv "libc.so"
  11. //go:cgo_import_dynamic libc_writev writev "libc.so"
  12. //go:cgo_import_dynamic libc_pwritev pwritev "libc.so"
  13. //go:cgo_import_dynamic libc_accept4 accept4 "libsocket.so"
  14. //go:cgo_import_dynamic libc_putmsg putmsg "libc.so"
  15. //go:cgo_import_dynamic libc_getmsg getmsg "libc.so"
  16. //go:linkname procreadv libc_readv
  17. //go:linkname procpreadv libc_preadv
  18. //go:linkname procwritev libc_writev
  19. //go:linkname procpwritev libc_pwritev
  20. //go:linkname procaccept4 libc_accept4
  21. //go:linkname procputmsg libc_putmsg
  22. //go:linkname procgetmsg libc_getmsg
  23. var (
  24. procreadv,
  25. procpreadv,
  26. procwritev,
  27. procpwritev,
  28. procaccept4,
  29. procputmsg,
  30. procgetmsg syscallFunc
  31. )
  32. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  33. func readv(fd int, iovs []Iovec) (n int, err error) {
  34. var _p0 *Iovec
  35. if len(iovs) > 0 {
  36. _p0 = &iovs[0]
  37. }
  38. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procreadv)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  39. n = int(r0)
  40. if e1 != 0 {
  41. err = e1
  42. }
  43. return
  44. }
  45. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  46. func preadv(fd int, iovs []Iovec, off int64) (n int, err error) {
  47. var _p0 *Iovec
  48. if len(iovs) > 0 {
  49. _p0 = &iovs[0]
  50. }
  51. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpreadv)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  52. n = int(r0)
  53. if e1 != 0 {
  54. err = e1
  55. }
  56. return
  57. }
  58. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  59. func writev(fd int, iovs []Iovec) (n int, err error) {
  60. var _p0 *Iovec
  61. if len(iovs) > 0 {
  62. _p0 = &iovs[0]
  63. }
  64. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procwritev)), 3, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), 0, 0, 0)
  65. n = int(r0)
  66. if e1 != 0 {
  67. err = e1
  68. }
  69. return
  70. }
  71. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  72. func pwritev(fd int, iovs []Iovec, off int64) (n int, err error) {
  73. var _p0 *Iovec
  74. if len(iovs) > 0 {
  75. _p0 = &iovs[0]
  76. }
  77. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procpwritev)), 4, uintptr(fd), uintptr(unsafe.Pointer(_p0)), uintptr(len(iovs)), uintptr(off), 0, 0)
  78. n = int(r0)
  79. if e1 != 0 {
  80. err = e1
  81. }
  82. return
  83. }
  84. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  85. func accept4(s int, rsa *RawSockaddrAny, addrlen *_Socklen, flags int) (fd int, err error) {
  86. r0, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procaccept4)), 4, uintptr(s), uintptr(unsafe.Pointer(rsa)), uintptr(unsafe.Pointer(addrlen)), uintptr(flags), 0, 0)
  87. fd = int(r0)
  88. if e1 != 0 {
  89. err = e1
  90. }
  91. return
  92. }
  93. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  94. func putmsg(fd int, clptr *strbuf, dataptr *strbuf, flags int) (err error) {
  95. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procputmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(flags), 0, 0)
  96. if e1 != 0 {
  97. err = e1
  98. }
  99. return
  100. }
  101. // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT
  102. func getmsg(fd int, clptr *strbuf, dataptr *strbuf, flags *int) (err error) {
  103. _, _, e1 := sysvicall6(uintptr(unsafe.Pointer(&procgetmsg)), 4, uintptr(fd), uintptr(unsafe.Pointer(clptr)), uintptr(unsafe.Pointer(dataptr)), uintptr(unsafe.Pointer(flags)), 0, 0)
  104. if e1 != 0 {
  105. err = e1
  106. }
  107. return
  108. }