summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2001-12-07 23:33:12 +0000
committermillert <millert@openbsd.org>2001-12-07 23:33:12 +0000
commit5a51c676931c8d2ed1ba93a1c787ca4b6ba31c08 (patch)
tree38561bf3aff96b3995796e90cdb1e2267ab1ef90 /lib
parentKill longjmp by not restarting system calls on receipt of SIGALRM. (diff)
downloadwireguard-openbsd-5a51c676931c8d2ed1ba93a1c787ca4b6ba31c08.tar.xz
wireguard-openbsd-5a51c676931c8d2ed1ba93a1c787ca4b6ba31c08.zip
From XPG4.2: read(2) can return EIO if the process is a member of
a background process attempting to read from its controlling terminal, the process is ignoring or blocking the SIGTTIN signal or the process group is orphaned. Verified against reality...
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/read.27
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/libc/sys/read.2 b/lib/libc/sys/read.2
index 8b160a61db1..255ac28f218 100644
--- a/lib/libc/sys/read.2
+++ b/lib/libc/sys/read.2
@@ -1,4 +1,4 @@
-.\" $OpenBSD: read.2,v 1.19 2001/05/14 15:11:26 espie Exp $
+.\" $OpenBSD: read.2,v 1.20 2001/12/07 23:33:12 millert Exp $
.\" $NetBSD: read.2,v 1.6 1995/02/27 12:35:47 cgd Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
@@ -158,7 +158,10 @@ is not a valid file or socket descriptor open for reading.
.Fa buf
points outside the allocated address space.
.It Bq Er EIO
-An I/O error occurred while reading from the file system.
+An I/O error occurred while reading from the file system,
+or the process is a member of a background process attempting to read
+from its controlling terminal, the process is ignoring or blocking
+the SIGTTIN signal or the process group is orphaned.
.It Bq Er EINTR
A read from a slow device was interrupted before
any data arrived by the delivery of a signal.