1 // Copyright 2014 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.
9 // supportsCloseOnExec reports whether the platform supports the
11 var supportsCloseOnExec
bool
14 osrel
, err
:= syscall
.SysctlUint32("kern.osreldate")
18 // The O_CLOEXEC flag was introduced in FreeBSD 8.3.
19 // See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html.
21 supportsCloseOnExec
= true