LEFT | RIGHT |
(no file at all) | |
1 // Copyright 2013 The Go Authors. All rights reserved. | 1 // Copyright 2013 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 freebsd linux netbsd openbsd | 5 // +build freebsd linux,arm netbsd openbsd |
6 | 6 |
7 package net | 7 package net |
8 | 8 |
9 import ( | 9 import ( |
10 "os" | 10 "os" |
11 "runtime" | 11 "runtime" |
12 "sync" | 12 "sync" |
13 "syscall" | 13 "syscall" |
14 "time" | 14 "time" |
15 ) | 15 ) |
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 func setWriteDeadline(fd *netFD, t time.Time) error { | 351 func setWriteDeadline(fd *netFD, t time.Time) error { |
352 fd.pd.wdeadline.setTime(t) | 352 fd.pd.wdeadline.setTime(t) |
353 return nil | 353 return nil |
354 } | 354 } |
355 | 355 |
356 func setDeadline(fd *netFD, t time.Time) error { | 356 func setDeadline(fd *netFD, t time.Time) error { |
357 setReadDeadline(fd, t) | 357 setReadDeadline(fd, t) |
358 setWriteDeadline(fd, t) | 358 setWriteDeadline(fd, t) |
359 return nil | 359 return nil |
360 } | 360 } |
LEFT | RIGHT |