From 2b120fe98e786016576a60b30d0e0a3e3c780c78 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 14 Feb 2012 19:36:31 +0000 Subject: syscall: Change Dup2 to only return an error. From-SVN: r184222 --- libgo/go/syscall/exec_unix.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libgo/go/syscall/exec_unix.go') 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 -- cgit v1.1