1
0
mirror of https://github.com/golang/go synced 2024-10-05 00:21:21 -06:00
go/src/pkg/os
Brad Fitzpatrick 1dfe3d1f6e os: don't trust O_CLOEXEC on OS X
OS X 10.6 doesn't do O_CLOEXEC.
OS X 10.7 does.

For now, always fall back to using syscall.CloseOnExec on darwin.

This can removed when 10.6 is old news, or if we find a
way to cheaply & reliably detect 10.6 vs 10.7 at runtime.

Fixes #2587

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/5500053
2011-12-20 15:41:37 -08:00
..
exec os: don't trust O_CLOEXEC on OS X 2011-12-20 15:41:37 -08:00
signal os: add Process.Kill and Process.Signal 2011-06-06 19:53:30 +10:00
user os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
dir_plan9.go os: fix Plan 9 build for new FileInfo API 2011-12-12 16:14:00 -05:00
dir_unix.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
dir_windows.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
env_test.go os: add Expand function to evaluate environment variables. 2010-11-08 13:25:01 -08:00
env.go syscall: take over env implementation 2011-11-14 14:06:50 -05:00
error_plan9.go syscall, os, time: fix Plan 9 build 2011-11-16 17:37:54 -05:00
error_posix.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
error.go os: use error, io.EOF 2011-11-01 21:49:08 -04:00
exec_plan9.go syscall: use error 2011-11-13 22:44:52 -05:00
exec_posix.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
exec_unix.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
exec_windows.go syscall: make windows build again after d3963c0fca78 change 2011-11-15 12:48:22 -05:00
exec.go os: Plan 9: add Process.Signal as a way to send notes. 2011-07-13 16:29:37 -07:00
export_test.go os: fix windows build 2011-11-30 12:38:54 -05:00
file_plan9.go os: fix Plan 9 build for new FileInfo API 2011-12-12 16:14:00 -05:00
file_posix.go os: make sure Remove returns correct error on windows 2011-12-20 11:52:20 +11:00
file_unix.go os: don't trust O_CLOEXEC on OS X 2011-12-20 15:41:37 -08:00
file_windows.go os: make sure Remove returns correct error on windows 2011-12-20 11:52:20 +11:00
file.go os: be consistent with receiver names for godoc TOC alignment 2011-12-01 11:23:39 -08:00
getwd.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
Makefile os: make compatible with go/build 2011-12-15 12:33:36 -05:00
mksignals.sh os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
mkunixsignals.sh os: make compatible with go/build 2011-12-15 12:33:36 -05:00
os_test.go govet: add checking for printf verbs 2011-12-15 15:17:52 -08:00
os_unix_test.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
path_plan9.go os: fix os.MkdirAll with backslash path separator. 2011-05-29 13:03:49 +10:00
path_test.go all: sort imports 2011-11-02 15:54:16 -04:00
path_unix.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
path_windows.go os: fixed PathListSeparator to ';' for windows. 2011-06-24 15:00:59 +10:00
path.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
proc.go os: fix comment per CL 5370091 2011-11-15 14:54:00 -05:00
stat_darwin.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
stat_freebsd.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
stat_linux.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
stat_netbsd.go os: OS-dependent bits to support NetBSD. 2011-12-15 12:19:19 -05:00
stat_openbsd.go os: new FileInfo, FileMode types + update tree 2011-11-30 12:04:16 -05:00
stat_plan9.go os: fix Plan 9 build for new FileInfo API 2011-12-12 16:14:00 -05:00
stat_windows.go os: fix path/filepath test on Windows 2011-11-30 13:42:14 -05:00
str.go build: add build comments to core packages 2011-09-15 16:48:57 -04:00
sys_bsd.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
sys_linux.go os: use error, io.EOF 2011-11-01 21:49:08 -04:00
sys_plan9.go os: use error, io.EOF 2011-11-01 21:49:08 -04:00
sys_windows.go syscall: use error 2011-11-13 22:44:52 -05:00
time.go syscall: use error 2011-11-13 22:44:52 -05:00
types.go os: add ModeType constant to mask file type bits 2011-12-01 17:35:43 -02:00
zsignal_darwin_386.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_darwin_amd64.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_freebsd_386.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_freebsd_amd64.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_linux_386.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_linux_amd64.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_linux_arm.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_netbsd_386.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
zsignal_netbsd_amd64.go os: Add NetBSD support for recent signal changes. 2011-12-18 02:29:18 +11:00
zsignal_openbsd_386.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_openbsd_amd64.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_windows_386.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00
zsignal_windows_amd64.go os: make compatible with go/build 2011-12-15 12:33:36 -05:00