github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/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  // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris
     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