go/src/os
Tobias Klauser e82c9bd816 os, internal/syscall/unix: use pipe2 instead of pipe on illumos
Illumos provides the pipe2 syscall. Add a wrapper to
internal/syscall/unix and use it to implement os.Pipe.

Change-Id: I26ecdbcae1e8d51f80e2bc8a86fb129826387b1f
Reviewed-on: https://go-review.googlesource.com/c/go/+/254981
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2020-09-16 08:49:14 +00:00
..
exec os/exec: build TestExtraFiles subprocess without cgo 2020-04-18 19:58:12 +00:00
signal os/signal: add NotifyContext to cancel context using system signals 2020-09-15 23:14:33 +00:00
testdata/issue37161 os: seek should invalidate any cached directory reads 2020-03-01 22:26:33 +00:00
user syscall, internal/syscall/windows: remove utf16PtrToString parameter 2020-05-03 07:23:32 +00:00
dir.go os: change Readdirnames doc to follow that of Readdir 2019-08-02 21:52:01 +00:00
dir_darwin.go os: return a *PathError from Readdirnames and Readdir on POSIX platforms 2020-08-25 04:39:40 +00:00
dir_plan9.go
dir_unix.go os: return a *PathError from Readdirnames and Readdir on POSIX platforms 2020-08-25 04:39:40 +00:00
dir_windows.go
env.go
env_test.go
env_unix_test.go os: add AIX operating system 2018-10-11 15:41:04 +00:00
error.go os, net: define and use os.ErrDeadlineExceeded 2020-04-25 00:26:48 +00:00
error_errno.go os: don't consult Is methods on non-syscall error types 2019-08-02 21:09:50 +00:00
error_plan9.go os: don't consult Is methods on non-syscall error types 2019-08-02 21:09:50 +00:00
error_posix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
error_test.go os: don't consult Is methods on non-syscall error types 2019-08-02 21:09:50 +00:00
error_unix_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
error_windows_test.go
example_test.go os: don't leak file in ExampleOpenFile_append failure path 2019-04-11 21:47:52 +00:00
exec.go
exec_plan9.go os/exec: less allocs in the common case 2019-03-04 09:45:46 +00:00
exec_posix.go os/exec: use environment variables for user token when present 2020-02-25 02:05:29 +00:00
exec_unix.go internal/poll, os: loop on EINTR 2020-05-11 22:38:32 +00:00
exec_windows.go syscall, internal/syscall/windows: remove utf16PtrToString parameter 2020-05-03 07:23:32 +00:00
executable.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
executable_darwin.go
executable_freebsd.go
executable_path.go os: add AIX operating system 2018-10-11 15:41:04 +00:00
executable_plan9.go
executable_procfs.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
executable_solaris.go
executable_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
executable_windows.go
export_linux_test.go os, internal/poll, internal/syscall/unix: use copy_file_range on Linux 2020-04-28 00:59:36 +00:00
export_test.go os: use an actual RemoveAll failure in TestRemoveAllWithMoreErrorThanReqSize 2019-10-26 01:46:02 +00:00
export_unix_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
export_windows_test.go
fifo_test.go
file.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
file_plan9.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
file_posix.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
file_unix.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
file_windows.go os: in Symlink, stat the correct target path for drive-relative targets on Windows 2020-05-28 21:41:10 +00:00
getwd.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
getwd_darwin.go
os_test.go os: implement File.Chmod on Windows 2020-09-11 22:10:02 +00:00
os_unix_test.go os, net: define and use os.ErrDeadlineExceeded 2020-04-25 00:26:48 +00:00
os_windows_test.go os: in Symlink, stat the correct target path for drive-relative targets on Windows 2020-05-28 21:41:10 +00:00
path.go os: return from TestRemoveAllWithMoreErrorThanReqSize when RemoveAll succeeds on Windows 2019-10-29 18:24:40 +00:00
path_plan9.go
path_test.go all: remove scattered remnants of darwin/arm 2020-04-08 18:35:49 +00:00
path_unix.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
path_windows.go
path_windows_test.go os: handle backslash and slash both in the path on Windows 2019-11-14 00:58:33 +00:00
pipe2_bsd.go Revert "syscall, os: use pipe2 syscall on DragonflyBSD instead of pipe" 2018-08-26 21:30:35 +00:00
pipe2_illumos.go os, internal/syscall/unix: use pipe2 instead of pipe on illumos 2020-09-16 08:49:14 +00:00
pipe_bsd.go os, internal/syscall/unix: use pipe2 instead of pipe on illumos 2020-09-16 08:49:14 +00:00
pipe_linux.go
pipe_test.go runtime: mark OpenBSD raise function nosplit 2020-07-08 19:50:20 +00:00
proc.go cmd/go, testing, os: fail test that calls os.Exit(0) 2020-08-27 23:19:15 +00:00
rawconn.go os: add SyscallConn method for os.File 2018-12-27 16:36:34 +00:00
rawconn_test.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
readfrom_linux.go os: fix regression with handling of nil *File 2020-07-08 18:29:38 +00:00
readfrom_linux_test.go os: fix regression with handling of nil *File 2020-07-08 18:29:38 +00:00
readfrom_stub.go os, internal/poll, internal/syscall/unix: use copy_file_range on Linux 2020-04-28 00:59:36 +00:00
removeall_at.go os: always check for EINTR in calls to open 2020-06-08 22:06:39 +00:00
removeall_noat.go Revert "os: handle long path in RemoveAll for windows" 2020-01-13 23:35:18 +00:00
removeall_test.go Revert "os: handle long path in RemoveAll for windows" 2020-01-13 23:35:18 +00:00
stat.go
stat_aix.go os: add AIX operating system 2018-10-11 15:41:04 +00:00
stat_darwin.go
stat_dragonfly.go
stat_freebsd.go syscall: revert to pre-FreeBSD 10 / POSIX-2008 timespec field names in Stat_t on FreeBSD 2018-12-30 19:36:52 +00:00
stat_js.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
stat_linux.go
stat_netbsd.go
stat_openbsd.go
stat_plan9.go
stat_solaris.go
stat_test.go os: use CreateFile for Stat of symlinks 2018-11-02 07:30:03 +00:00
stat_unix.go os, internal/poll: loop on EINTR for all file syscalls 2020-08-19 21:49:56 +00:00
stat_windows.go os: return an error when the argument of Mkdir on Windows is os.DevNull 2019-08-29 09:53:56 +00:00
sticky_bsd.go os,syscall: implement functions related to uid, gid and pid on js/wasm 2019-03-22 15:40:37 +00:00
sticky_notbsd.go os,syscall: implement functions related to uid, gid and pid on js/wasm 2019-03-22 15:40:37 +00:00
str.go
sys.go
sys_aix.go os: add AIX operating system 2018-10-11 15:41:04 +00:00
sys_bsd.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
sys_js.go
sys_linux.go
sys_plan9.go
sys_solaris.go
sys_unix.go os: add AIX operating system 2018-10-11 15:41:04 +00:00
sys_windows.go
timeout_test.go os, net: define and use os.ErrDeadlineExceeded 2020-04-25 00:26:48 +00:00
types.go os: add ModeCharDevice to ModeType 2018-09-13 09:52:57 +00:00
types_plan9.go
types_unix.go
types_windows.go os: fix windows Lstat missing name for some files 2019-03-20 08:35:29 +00:00
wait_unimp.go all: remove the nacl port (part 1) 2019-10-09 06:14:44 +00:00
wait_wait6.go internal/poll, os: loop on EINTR 2020-05-11 22:38:32 +00:00
wait_waitid.go internal/poll, os: loop on EINTR 2020-05-11 22:38:32 +00:00