libgo patch committed: Change Dup2 to only return an error

Ian Lance Taylor
Tue Feb 14 19:40:00 GMT 2012

In the master Go library the syscall.Dup2 function was changed to only
return an error, rather than returning both the new file descriptor and
and an error (when there is no error the new file descriptor is always
the second argument anyhow).  This patch makes the same change to
libgo.  Bootstrapped and ran Go testsuite on x86_64-unknown-linux-gnu.
Committed to mainline.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3045 bytes
Desc: patch
URL: <>

More information about the Gcc-patches mailing list