...

Source file src/os/sys_unix.go

Documentation: os

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

View as plain text