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. 4 5// +build aix darwin dragonfly freebsd hurd linux netbsd openbsd solaris 6 7package os 8 9// supportsCloseOnExec reports whether the platform supports the 10// O_CLOEXEC flag. 11// On Darwin, the O_CLOEXEC flag was introduced in OS X 10.7 (Darwin 11.0.0). 12// See https://support.apple.com/kb/HT1633. 13// On FreeBSD, the O_CLOEXEC flag was introduced in version 8.3. 14const supportsCloseOnExec = true 15