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; 4+ 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] 4+ messages in thread
[parent not found: <bug-11537-131@http.sourceware.org/bugzilla/>]

end of thread, other threads:[~2014-06-30  9:19 UTC | newest]

Thread overview: 4+ 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
     [not found] <bug-11537-131@http.sourceware.org/bugzilla/>
2014-06-30  9:19 ` fweimer at redhat dot com

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).