libgo patch committed: Change Dup2 to only return an error

Ian Lance Taylor iant@google.com
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.

Ian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 3045 bytes
Desc: patch
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20120214/6287f296/attachment.bin>


More information about the Gcc-patches mailing list