summaryrefslogtreecommitdiffstats
path: root/src/internal/poll/fd_writev_illumos.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal/poll/fd_writev_illumos.go')
-rw-r--r--src/internal/poll/fd_writev_illumos.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/internal/poll/fd_writev_illumos.go b/src/internal/poll/fd_writev_illumos.go
new file mode 100644
index 0000000..1fa47ab
--- /dev/null
+++ b/src/internal/poll/fd_writev_illumos.go
@@ -0,0 +1,16 @@
+// Copyright 2020 The Go Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style
+// license that can be found in the LICENSE file.
+
+// +build illumos
+
+package poll
+
+import (
+ "internal/syscall/unix"
+ "syscall"
+)
+
+func writev(fd int, iovecs []syscall.Iovec) (uintptr, error) {
+ return unix.Writev(fd, iovecs)
+}