1 // Copyright 2009 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.
5 // +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris windows
14 // eofError returns io.EOF when fd is available for reading end of
16 func (fd
*netFD
) eofError(n
int, err error
) error
{
17 if n
== 0 && err
== nil && fd
.sotype
!= syscall
.SOCK_DGRAM
&& fd
.sotype
!= syscall
.SOCK_RAW
{