Black Lives Matter. Support the Equal Justice Initiative.

Source file src/internal/poll/export_posix_test.go

Documentation: internal/poll

     1  // Copyright 2017 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.
     4  
     5  //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || windows
     6  // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris windows
     7  
     8  // Export guts for testing on posix.
     9  // Since testing imports os and os imports internal/poll,
    10  // the internal/poll tests can not be in package poll.
    11  
    12  package poll
    13  
    14  func (fd *FD) EOFError(n int, err error) error {
    15  	return fd.eofError(n, err)
    16  }
    17  

View as plain text