sys_unix.go 575 B

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