aboutsummaryrefslogtreecommitdiff
path: root/libgo/go/syscall/exec_unix.go
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2012-02-14 19:36:31 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2012-02-14 19:36:31 +0000
commit2b120fe98e786016576a60b30d0e0a3e3c780c78 (patch)
treed141e2b8f5bbcb23f5f627e341aad3a1edc52b73 /libgo/go/syscall/exec_unix.go
parent4b386d4d6a3aafa96a50990ac36422848eef3219 (diff)
downloadgcc-2b120fe98e786016576a60b30d0e0a3e3c780c78.zip
gcc-2b120fe98e786016576a60b30d0e0a3e3c780c78.tar.gz
gcc-2b120fe98e786016576a60b30d0e0a3e3c780c78.tar.bz2
syscall: Change Dup2 to only return an error.
From-SVN: r184222
Diffstat (limited to 'libgo/go/syscall/exec_unix.go')
-rw-r--r--libgo/go/syscall/exec_unix.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/libgo/go/syscall/exec_unix.go b/libgo/go/syscall/exec_unix.go
index 75f0f45..49441f8 100644
--- a/libgo/go/syscall/exec_unix.go
+++ b/libgo/go/syscall/exec_unix.go
@@ -47,6 +47,9 @@ import (
//sysnb raw_exit(status int)
//_exit(status int)
+//sysnb raw_dup2(oldfd int, newfd int) (err Errno)
+//dup2(oldfd int, newfd int) int
+
// Note: not raw, returns error rather than Errno.
//sys read(fd int, p *byte, np int) (n int, err error)
//read(fd int, buf *byte, count Size_t) Ssize_t