public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug hurd/11537] New: ttyname_r not POSIX compliant
@ 2010-04-25 19:58 bruno at clisp dot org
2010-04-25 20:00 ` [Bug hurd/11537] " bruno at clisp dot org
2010-05-03 19:16 ` bruno at clisp dot org
0 siblings, 2 replies; 3+ messages in thread
From: bruno at clisp dot org @ 2010-04-25 19:58 UTC (permalink / raw)
To: glibc-bugs
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug hurd/11537] ttyname_r not POSIX compliant
2010-04-25 19:58 [Bug hurd/11537] New: ttyname_r not POSIX compliant bruno at clisp dot org
@ 2010-04-25 20:00 ` bruno at clisp dot org
2010-05-03 19:16 ` bruno at clisp dot org
1 sibling, 0 replies; 3+ messages in thread
From: bruno at clisp dot org @ 2010-04-25 20:00 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From bruno at clisp dot org 2010-04-25 20:00 -------
Created an attachment (id=4751)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4751&action=view)
proposed fix
--
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug hurd/11537] ttyname_r not POSIX compliant
2010-04-25 19:58 [Bug hurd/11537] New: ttyname_r not POSIX compliant bruno at clisp dot org
2010-04-25 20:00 ` [Bug hurd/11537] " bruno at clisp dot org
@ 2010-05-03 19:16 ` bruno at clisp dot org
1 sibling, 0 replies; 3+ messages in thread
From: bruno at clisp dot org @ 2010-05-03 19:16 UTC (permalink / raw)
To: glibc-bugs
------- Additional Comments From bruno at clisp dot org 2010-05-03 19:15 -------
Roland applied the proposed fix on 2010-04-26.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-05-03 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-25 19:58 [Bug hurd/11537] New: ttyname_r not POSIX compliant bruno at clisp dot org
2010-04-25 20:00 ` [Bug hurd/11537] " bruno at clisp dot org
2010-05-03 19:16 ` bruno at clisp dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).