summaryrefslogtreecommitdiff
path: root/libgo/go/net/hook_cloexec.go
blob: 870f0d78b128a511456fcfce175c7925ae7222ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
)