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

Side by Side Diff: src/pkg/net/fd.go

Issue 5011046: code review 5011046: build: add build comments to core packages (Closed)
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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/net/dnsconfig.go ('k') | src/pkg/net/file.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6
5 package net 7 package net
6 8
7 import ( 9 import (
8 "io" 10 "io"
9 "os" 11 "os"
10 "sync" 12 "sync"
11 "syscall" 13 "syscall"
12 "time" 14 "time"
13 ) 15 )
14 16
(...skipping 621 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 if e = syscall.SetNonblock(ns, false); e != 0 { 638 if e = syscall.SetNonblock(ns, false); e != 0 {
637 return nil, &OpError{"setnonblock", fd.net, fd.laddr, os.Errno(e )} 639 return nil, &OpError{"setnonblock", fd.net, fd.laddr, os.Errno(e )}
638 } 640 }
639 641
640 return os.NewFile(ns, fd.sysfile.Name()), nil 642 return os.NewFile(ns, fd.sysfile.Name()), nil
641 } 643 }
642 644
643 func closesocket(s int) (errno int) { 645 func closesocket(s int) (errno int) {
644 return syscall.Close(s) 646 return syscall.Close(s)
645 } 647 }
OLDNEW
« no previous file with comments | « src/pkg/net/dnsconfig.go ('k') | src/pkg/net/file.go » ('j') | no next file with comments »

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