This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug hurd/11537] New: ttyname_r not POSIX compliant
- From: "bruno at clisp dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 25 Apr 2010 19:58:00 -0000
- Subject: [Bug hurd/11537] New: ttyname_r not POSIX compliant
- Reply-to: sourceware-bugzilla at sourceware dot org
ttyname_r is specified in POSIX
<http://www.opengroup.org/onlinepubs/9699919799/functions/ttyname.html>.
The return value is specified like this:
"If successful, the ttyname_r() function shall return zero.
Otherwise, an error number shall be returned to indicate the error."
This means, ttyname_r should return the error number. Whether it
additionally stores it in errno, is not specified.
The Hurd implementation uses a return value of -1 in some cases.
This is wrong. Find a fix attached.
--
Summary: ttyname_r not POSIX compliant
Product: glibc
Version: 2.11
Status: NEW
Severity: normal
Priority: P2
Component: hurd
AssignedTo: roland at gnu dot org
ReportedBy: bruno at clisp dot org
CC: glibc-bugs at sources dot redhat dot com
GCC build triplet: i686-unknown-gnu
GCC host triplet: i686-unknown-gnu
GCC target triplet: i686-unknown-gnu
http://sourceware.org/bugzilla/show_bug.cgi?id=11537
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.