From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14536 invoked by alias); 25 Apr 2010 19:58:12 -0000 Received: (qmail 14490 invoked by uid 48); 25 Apr 2010 19:58:00 -0000 Date: Sun, 25 Apr 2010 19:58:00 -0000 From: "bruno at clisp dot org" To: glibc-bugs@sources.redhat.com Message-ID: <20100425195759.11537.bruno@clisp.org> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug hurd/11537] New: ttyname_r not POSIX compliant X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-04/txt/msg00161.txt.bz2 ttyname_r is specified in POSIX . 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.