From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127941 invoked by alias); 6 Mar 2015 03:24:02 -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 Received: (qmail 127859 invoked by uid 48); 6 Mar 2015 03:23:58 -0000 From: "jennieveenhuizen at gmail dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/18086] New: nice() sets errno to 0 on success Date: Fri, 06 Mar 2015 03:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: 2.21 X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: jennieveenhuizen at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00042.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18086 Bug ID: 18086 Summary: nice() sets errno to 0 on success Product: glibc Version: 2.21 Status: NEW Severity: minor Priority: P2 Component: libc Assignee: unassigned at sourceware dot org Reporter: jennieveenhuizen at gmail dot com CC: drepper.fsp at gmail dot com Created attachment 8176 --> https://sourceware.org/bugzilla/attachment.cgi?id=8176&action=edit Diff against the current development source tree The implementation of nice() sets errno to 0 on success. Quoting POSIX: "No function in this volume of POSIX.1-2008 shall set errno to 0." See attachment for the suggested fix. -- You are receiving this mail because: You are on the CC list for the bug.