Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(456)

Delta Between Two Patch Sets: src/pkg/net/sock.go

Issue 5011046: code review 5011046: build: add build comments to core packages (Closed)
Left Patch Set: diff -r db14453eda18 https://go.googlecode.com/hg Created 12 years, 6 months ago
Right Patch Set: diff -r a12d99eb48bb https://go.googlecode.com/hg Created 12 years, 6 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/net/sendfile_stub.go ('k') | src/pkg/net/sock_bsd.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 //build darwin freebsd linux openbsd windows 5 // +build darwin freebsd linux openbsd windows
6 6
7 // Sockets 7 // Sockets
8 8
9 package net 9 package net
10 10
11 import ( 11 import (
12 "io" 12 "io"
13 "os" 13 "os"
14 "reflect" 14 "reflect"
15 "syscall" 15 "syscall"
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 type writerOnly struct { 159 type writerOnly struct {
160 io.Writer 160 io.Writer
161 } 161 }
162 162
163 // Fallback implementation of io.ReaderFrom's ReadFrom, when sendfile isn't 163 // Fallback implementation of io.ReaderFrom's ReadFrom, when sendfile isn't
164 // applicable. 164 // applicable.
165 func genericReadFrom(w io.Writer, r io.Reader) (n int64, err os.Error) { 165 func genericReadFrom(w io.Writer, r io.Reader) (n int64, err os.Error) {
166 // Use wrapper to hide existing r.ReadFrom from io.Copy. 166 // Use wrapper to hide existing r.ReadFrom from io.Copy.
167 return io.Copy(writerOnly{w}, r) 167 return io.Copy(writerOnly{w}, r)
168 } 168 }
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b