summaryrefslogtreecommitdiff
path: root/src/pkg/os/sys_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/os/sys_freebsd.go')
-rw-r--r--src/pkg/os/sys_freebsd.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/pkg/os/sys_freebsd.go b/src/pkg/os/sys_freebsd.go
deleted file mode 100644
index c567f5c35..000000000
--- a/src/pkg/os/sys_freebsd.go
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2009 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.
-
-package os
-
-import "syscall"
-
-func Hostname() (name string, err Error) {
- var errno int
- name, errno = syscall.Sysctl("kern.hostname")
- if errno != 0 {
- return "", NewSyscallError("sysctl kern.hostname", errno)
- }
- return name, nil
-}