github.com/lovishpuri/go-40569/src@v0.0.0-20230519171745-f8623e7c56cf/os/sys_unix.go (about)

     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  //go:build unix
     6  
     7  package 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.
    14  const supportsCloseOnExec = true