public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bruno at clisp dot org" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sources.redhat.com Subject: [Bug hurd/11537] New: ttyname_r not POSIX compliant Date: Sun, 25 Apr 2010 19:58:00 -0000 [thread overview] Message-ID: <20100425195759.11537.bruno@clisp.org> (raw) 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.
next reply other threads:[~2010-04-25 19:58 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2010-04-25 19:58 bruno at clisp dot org [this message] 2010-04-25 20:00 ` [Bug hurd/11537] " bruno at clisp dot org 2010-05-03 19:16 ` bruno at clisp dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20100425195759.11537.bruno@clisp.org \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sources.redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).