From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29461 invoked by alias); 10 Aug 2004 18:13:46 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 29444 invoked from network); 10 Aug 2004 18:13:45 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.81.54.130) by sourceware.org with SMTP; 10 Aug 2004 18:13:45 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 0C80F357B; Tue, 10 Aug 2004 11:13:43 -0700 (PDT) Received: from magilla.sf.frob.com (localhost.localdomain [127.0.0.1]) by magilla.sf.frob.com (8.12.11/8.12.9) with ESMTP id i7AIDfrW009191; Tue, 10 Aug 2004 11:13:41 -0700 Received: (from roland@localhost) by magilla.sf.frob.com (8.12.11/8.12.11/Submit) id i7AIDfca009188; Tue, 10 Aug 2004 11:13:41 -0700 Date: Tue, 10 Aug 2004 18:13:00 -0000 Message-Id: <200408101813.i7AIDfca009188@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Jakub Jelinek Cc: Ulrich Drepper , Glibc hackers Subject: Re: [PATCH] Fix plus testcase In-Reply-To: Jakub Jelinek's message of Tuesday, 10 August 2004 12:17:33 +0200 <20040810101733.GR30497@sunsite.ms.mff.cuni.cz> X-Shopping-List: (1) Precious inversions (2) Analytical geese (3) Delirious eruption yies (4) Spontaneous secretions (5) Rigorous oblivion apparitions X-SW-Source: 2004-08/txt/msg00027.txt.bz2 > 2004-08-10 Jakub Jelinek > > * libio/bits/stdio.h (fread_unlocked): Cast 0 to (size_t). > (fwrite_unlocked): When checking if size * n is <= 8, cast each > argument to size_t individually. Cast n to (void) instead of > (size_t), surround with (), return (size_t) 0 if one of n or size > is 0. [BZ #316] > * stdio-common/Makefile (tests): Add tst-unlockedio. > * stdio-common/tst-unlockedio.c: New test. Applied.