summaryrefslogtreecommitdiff
path: root/libgo/go/internal/x/net/lif/syscall.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/internal/x/net/lif/syscall.go')
-rw-r--r--libgo/go/internal/x/net/lif/syscall.go22
1 files changed, 0 insertions, 22 deletions
diff --git a/libgo/go/internal/x/net/lif/syscall.go b/libgo/go/internal/x/net/lif/syscall.go
deleted file mode 100644
index ea7541456bd..00000000000
--- a/libgo/go/internal/x/net/lif/syscall.go
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright 2016 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 solaris
-
-package lif
-
-import (
- "syscall"
- "unsafe"
-)
-
-//extern __go_ioctl_ptr
-func libc_ioctl(int32, int32, unsafe.Pointer) int32
-
-func ioctl(s, ioc uintptr, arg unsafe.Pointer) error {
- if libc_ioctl(int32(s), int32(ioc), arg) < 0 {
- return syscall.GetErrno()
- }
- return nil
-}