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

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

Issue 6489056: code review 6489056: net: rename files to clarify platform dependency (Closed)
Patch Set: diff -r 26b1cb07dc52 https://code.google.com/p/go 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_unix.go ('k') | src/pkg/net/file_unix.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 netbsd openbsd 5 // +build darwin freebsd linux netbsd openbsd
6 6
7 package net 7 package net
8 8
9 import ( 9 import (
10 "errors" 10 "errors"
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 if err = syscall.SetNonblock(ns, false); err != nil { 633 if err = syscall.SetNonblock(ns, false); err != nil {
634 return nil, &OpError{"setnonblock", fd.net, fd.laddr, err} 634 return nil, &OpError{"setnonblock", fd.net, fd.laddr, err}
635 } 635 }
636 636
637 return os.NewFile(uintptr(ns), fd.sysfile.Name()), nil 637 return os.NewFile(uintptr(ns), fd.sysfile.Name()), nil
638 } 638 }
639 639
640 func closesocket(s int) error { 640 func closesocket(s int) error {
641 return syscall.Close(s) 641 return syscall.Close(s)
642 } 642 }
OLDNEW
« no previous file with comments | « src/pkg/net/dnsconfig_unix.go ('k') | src/pkg/net/file_unix.go » ('j') | no next file with comments »

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