diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2022-01-21 15:23:37 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2022-01-21 15:23:37 +0000 |
commit | f41e79d10eba835c1d3cf295c2df1da31e868c10 (patch) | |
tree | 53240f65fb702b7ef73743b30ce3f836b31600da | |
parent | a6f08bc8b05c33184509ccf89a353aaa155b5213 (diff) |
Document EAGAIN error return, as specified by POSIX.
Our poll does not use EAGAIN but code needs to handle it for portability.
OK deraadt@ visa@
-rw-r--r-- | lib/libc/sys/poll.2 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/poll.2 b/lib/libc/sys/poll.2 index edaa375c071..ec0b2881e72 100644 --- a/lib/libc/sys/poll.2 +++ b/lib/libc/sys/poll.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: poll.2,v 1.38 2021/11/21 23:44:55 jan Exp $ +.\" $OpenBSD: poll.2,v 1.39 2022/01/21 15:23:36 millert Exp $ .\" .\" Copyright (c) 1994 Jason R. Thorpe .\" All rights reserved. @@ -28,7 +28,7 @@ .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" -.Dd $Mdocdate: November 21 2021 $ +.Dd $Mdocdate: January 21 2022 $ .Dt POLL 2 .Os .Sh NAME @@ -300,6 +300,9 @@ and .Fn ppoll will fail if: .Bl -tag -width Er +.It Bq Er EAGAIN +The kernel failed to allocate memory for temporary data structures; +a later call may succeed. .It Bq Er EFAULT .Fa fds points outside the process's allocated address space. |