1 // Copyright 2019 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // This is a stripped down version of sysSocket from net/sock_cloexec.go.
8 func cloexecSocket(family
, sotype
, proto
int) (int, error
) {
9 s
, err
:= Socket(family
, sotype|SOCK_CLOEXEC
, proto
)
19 s
, err
= Socket(family
, sotype
, proto
)