From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1919 invoked by alias); 28 Oct 2010 12:51:31 -0000 Received: (qmail 1907 invoked by uid 22791); 28 Oct 2010 12:51:30 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,MISSING_MID X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 28 Oct 2010 12:51:27 +0000 From: "miklos at szeredi dot hu" To: glibc-bugs@sources.redhat.com Subject: [Bug libc/12167] ttyname() and ttyname_r() may return wrong value X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: miklos at szeredi dot hu X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: drepper.fsp at gmail dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 28 Oct 2010 12:51:00 -0000 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-10/txt/msg00176.txt.bz2 Message-ID: <20101028125100.1UbAQz8v_P1qTbCqpW219VicYb04v1FwPa2Amp6pjt0@z> http://sourceware.org/bugzilla/show_bug.cgi?id=12167 --- Comment #1 from Miklos Szeredi 2010-10-28 12:51:15 UTC --- Created attachment 5093 --> http://sourceware.org/bugzilla/attachment.cgi?id=5093 Remove code duplication between ttyname_r and ttyname ttyname can be implemented by allocating a static buffer and calling ttyname_r. This removes much code duplication. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.