This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug hurd/11537] New: ttyname_r not POSIX compliant


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]