aboutsummaryrefslogtreecommitdiffstats
path: root/man3
diff options
context:
space:
mode:
Diffstat (limited to 'man3')
-rw-r--r--man3/isatty.312
1 files changed, 7 insertions, 5 deletions
diff --git a/man3/isatty.3 b/man3/isatty.3
index 60639c617b..ffb0ff24cb 100644
--- a/man3/isatty.3
+++ b/man3/isatty.3
@@ -52,13 +52,15 @@ is set to indicate the error.
.I fd
is not a valid file descriptor.
.TP
-.B EINVAL
+.B ENOTTY
.I fd
refers to a file other than a terminal.
-POSIX.1 specifies the error
-.BR ENOTTY
-.\" FIXME . File a bug for this?
-for this case.
+On some older kernels, some types of files
+.\" e.g., FIFOs and pipes on 2.6.32)
+resulted in the error
+.B EINVAL
+in this case (which is a violation of POSIX, which specifies the error
+.BR ENOTTY ).
.SH ATTRIBUTES
For an explanation of the terms used in this section, see
.BR attributes (7).