This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/17909] getline/getdelim sets errno to ENOTTY after trying to read from /dev/null
- From: "fweimer at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Fri, 06 Feb 2015 09:32:43 +0000
- Subject: [Bug stdio/17909] getline/getdelim sets errno to ENOTTY after trying to read from /dev/null
- Auto-submitted: auto-generated
- References: <bug-17909-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17909
Florian Weimer <fweimer at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
CC| |fweimer at redhat dot com
Resolution|INVALID |---
--- Comment #2 from Florian Weimer <fweimer at redhat dot com> ---
(In reply to Andreas Schwab from comment #1)
> Since there is no error condition, the value of errno is undefined.
We should at least document how to reliably tell EOF from an error. The
examples in the manual all ignore errors.
--
You are receiving this mail because:
You are on the CC list for the bug.