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

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

Issue 6460108: net: epoll dispatcher 2
Left Patch Set: diff -r 9e610a78455c https://go.googlecode.com/hg/ Created 11 years, 7 months ago
Right Patch Set: diff -r f2755950769b https://dvyukov%40google.com@code.google.com/p/go/ Created 11 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:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | src/pkg/net/fd_unix.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
5 // +build none
4 6
5 package net 7 package net
6 8
7 import ( 9 import (
8 //"fmt" 10 //"fmt"
9 "errors" 11 "errors"
10 "io" 12 "io"
11 "os" 13 "os"
12 "sync" 14 "sync"
13 "syscall" 15 "syscall"
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 if err = syscall.SetNonblock(ns, false); err != nil { 504 if err = syscall.SetNonblock(ns, false); err != nil {
503 return nil, &OpError{"setnonblock", fd.net, fd.laddr, err} 505 return nil, &OpError{"setnonblock", fd.net, fd.laddr, err}
504 } 506 }
505 507
506 return os.NewFile(uintptr(ns), fd.sysfile.Name()), nil 508 return os.NewFile(uintptr(ns), fd.sysfile.Name()), nil
507 } 509 }
508 510
509 func closesocket(s int) error { 511 func closesocket(s int) error {
510 return syscall.Close(s) 512 return syscall.Close(s)
511 } 513 }
LEFTRIGHT

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