* libgo patch committed: Fix splice syscall
@ 2012-12-05 8:49 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2012-12-05 8:49 UTC (permalink / raw)
To: gcc-patches, gofrontend-dev
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
There was a bug in syscall.Splice: it ignored the offsets that were
passed in. This patch fixes it. Bootstrapped and ran Go testsuite on
x86_64-unknown-linux-gnu. Committed to mainline and 4.7 branch.
Ian
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 495 bytes --]
diff -r 36bbf2143cba libgo/go/syscall/libcall_linux.go
--- a/libgo/go/syscall/libcall_linux.go Tue Dec 04 17:08:39 2012 -0800
+++ b/libgo/go/syscall/libcall_linux.go Wed Dec 05 00:40:42 2012 -0800
@@ -313,11 +313,13 @@
var lroff _loff_t
var plroff *_loff_t
if roff != nil {
+ lroff = _loff_t(*roff)
plroff = &lroff
}
var lwoff _loff_t
var plwoff *_loff_t
if woff != nil {
+ lwoff = _loff_t(*woff)
plwoff = &lwoff
}
n, err = splice(rfd, plroff, wfd, plwoff, len, flags)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-05 8:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-05 8:49 libgo patch committed: Fix splice syscall Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).