summaryrefslogtreecommitdiff
path: root/libgo/go/net/hook_cloexec.go
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/go/net/hook_cloexec.go')
-rw-r--r--libgo/go/net/hook_cloexec.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/libgo/go/net/hook_cloexec.go b/libgo/go/net/hook_cloexec.go
new file mode 100644
index 00000000000..870f0d78b12
--- /dev/null
+++ b/libgo/go/net/hook_cloexec.go
@@ -0,0 +1,14 @@
+// Copyright 2015 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 freebsd linux
+
+package net
+
+import "syscall"
+
+var (
+ // Placeholders for socket system calls.
+ accept4Func func(int, int) (int, syscall.Sockaddr, error) = syscall.Accept4
+)