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

Side by Side Diff: src/net/file_stub.go

Issue 152570049: [dev.power64] code review 152570049: all: merge default into dev.power64 (Closed)
Patch Set: diff -r 36f7fc9495481ed67a159eea0eb2fac35b7c46a5 https://code.google.com/p/go Created 10 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:
View unified diff | Download patch
« no previous file with comments | « src/net/fd_windows.go ('k') | src/net/file_test.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 // +build nacl
6
7 package net
8
9 import (
10 "os"
11 "syscall"
12 )
13
14 // FileConn returns a copy of the network connection corresponding to
15 // the open file f. It is the caller's responsibility to close f when
16 // finished. Closing c does not affect f, and closing f does not
17 // affect c.
18 func FileConn(f *os.File) (c Conn, err error) {
19 return nil, syscall.ENOPROTOOPT
20
21 }
22
23 // FileListener returns a copy of the network listener corresponding
24 // to the open file f. It is the caller's responsibility to close l
25 // when finished. Closing l does not affect f, and closing f does not
26 // affect l.
27 func FileListener(f *os.File) (l Listener, err error) {
28 return nil, syscall.ENOPROTOOPT
29
30 }
31
32 // FilePacketConn returns a copy of the packet network connection
33 // corresponding to the open file f. It is the caller's
34 // responsibility to close f when finished. Closing c does not affect
35 // f, and closing f does not affect c.
36 func FilePacketConn(f *os.File) (c PacketConn, err error) {
37 return nil, syscall.ENOPROTOOPT
38 }
OLDNEW
« no previous file with comments | « src/net/fd_windows.go ('k') | src/net/file_test.go » ('j') | no next file with comments »

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