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

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

Issue 5294074: code review 5294074: src/pkg/[n-z]*: gofix -r error (Closed)
Left Patch Set: Created 13 years, 4 months ago
Right Patch Set: diff -r b78bb4f2d2a3 https://go.googlecode.com/hg/ Created 13 years, 4 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:
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/net/file.go ('k') | src/pkg/net/file_test.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
(no file at all)
1 // Copyright 2011 The Go Authors. All rights reserved. 1 // Copyright 2011 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 package net 5 package net
6 6
7 import ( 7 import (
8 "os" 8 "os"
9 ) 9 )
10 10
11 // FileConn returns a copy of the network connection corresponding to 11 // FileConn returns a copy of the network connection corresponding to
12 // the open file f. It is the caller's responsibility to close f when 12 // the open file f. It is the caller's responsibility to close f when
13 // finished. Closing c does not affect f, and closing f does not 13 // finished. Closing c does not affect f, and closing f does not
14 // affect c. 14 // affect c.
15 func FileConn(f *os.File) (c Conn, err os.Error) { 15 func FileConn(f *os.File) (c Conn, err error) {
16 return nil, os.EPLAN9 16 return nil, os.EPLAN9
17 } 17 }
18 18
19 // FileListener returns a copy of the network listener corresponding 19 // FileListener returns a copy of the network listener corresponding
20 // to the open file f. It is the caller's responsibility to close l 20 // to the open file f. It is the caller's responsibility to close l
21 // when finished. Closing c does not affect l, and closing l does not 21 // when finished. Closing c does not affect l, and closing l does not
22 // affect c. 22 // affect c.
23 func FileListener(f *os.File) (l Listener, err os.Error) { 23 func FileListener(f *os.File) (l Listener, err error) {
24 return nil, os.EPLAN9 24 return nil, os.EPLAN9
25 } 25 }
26 26
27 // FilePacketConn returns a copy of the packet network connection 27 // FilePacketConn returns a copy of the packet network connection
28 // corresponding to the open file f. It is the caller's 28 // corresponding to the open file f. It is the caller's
29 // responsibility to close f when finished. Closing c does not affect 29 // responsibility to close f when finished. Closing c does not affect
30 // f, and closing f does not affect c. 30 // f, and closing f does not affect c.
31 func FilePacketConn(f *os.File) (c PacketConn, err os.Error) { 31 func FilePacketConn(f *os.File) (c PacketConn, err error) {
32 return nil, os.EPLAN9 32 return nil, os.EPLAN9
33 } 33 }
LEFTRIGHT

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