From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Couder Subject: Re: [PATCH] fread does not return negative on error Date: Wed, 24 Jun 2009 12:53:51 +0200 Message-ID: References: <4A3FB09D.9050903@gmail.com> <20090622153431.GA18466@elte.hu> <25e057c00906220847t15425f38maf486c291d1d2468@mail.gmail.com> <4A3FB479.2090902@lsrfire.ath.cx> <7vhby64i8f.fsf@alter.siamese.dyndns.org> <20090624081819.GA10436@elte.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Junio C Hamano , =?ISO-8859-1?Q?Ren=E9_Scharfe?= , roel kluin , git@vger.kernel.org, LKML , Andrew Morton To: Ingo Molnar X-From: git-owner@vger.kernel.org Wed Jun 24 12:54:07 2009 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJQ7C-0007No-IX for gcvg-git-2@gmane.org; Wed, 24 Jun 2009 12:54:07 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752581AbZFXKxy convert rfc822-to-quoted-printable (ORCPT ); Wed, 24 Jun 2009 06:53:54 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751721AbZFXKxy (ORCPT ); Wed, 24 Jun 2009 06:53:54 -0400 Received: from mail-fx0-f213.google.com ([209.85.220.213]:57728 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751042AbZFXKxx convert rfc822-to-8bit (ORCPT ); Wed, 24 Jun 2009 06:53:53 -0400 Received: by fxm9 with SMTP id 9so653313fxm.37 for ; Wed, 24 Jun 2009 03:53:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eNKCq6p3JsFcWR/3YMZshaGx3TMZMWfjIKZMv0fr5Ec=; b=hGL6aGKACcUeKkMnNTs0I7swYUCtYfwav+McQZdm4uzZH8n4h//+mkpA8sgLboBF7c 1dxt0V2lz8EfDUprQifHTcAvy94W73CppXlvA9JTjMjftr3c6IuCZowsFB323c4Km4di HVD12AqtJHzfuRgDEdN7VGUlD2tRLhrAnmrZs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=O0Eh0drhh0Tk6qMj7IAxWSzrbtOdCwER8G8PD9RY2UUuCz3zstM3R48vDHwppWemxS y6gQBcf9PIEUcv/aGzj94VkxzVaMchho5+m07CUDWPEJ+Y6BBLsdw8JwRojAGBSnToey SGk9kQb0xbrcA/zEQo6bRf6JqLwh5C/iWgL8U= Received: by 10.103.12.19 with SMTP id p19mr616474mui.66.1245840831933; Wed, 24 Jun 2009 03:53:51 -0700 (PDT) In-Reply-To: <20090624081819.GA10436@elte.hu> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: Hi, On Wed, Jun 24, 2009 at 10:18 AM, Ingo Molnar wrote: > > * Junio C Hamano wrote: > >> Ren=E9 Scharfe writes: >> >> > the following patch is for git. =A0I just removed the unneeded che= ck for >> > res =3D=3D 0 from your version. =A0Does it look OK? >> >> The patch looks good, and both of our in-tree users do error out >> when the returned value is 0 (imap-send.c checks with "<=3D 0" which >> looks a tad amateurish, though) correctly. >> >> Funny, there is no caller of this function in the original context >> this bug originally found, which I think is linux-2.6/tools/perf >> ;-). > > Hehe, yes :-) > > Background: when creating tools/perf/ i cherry-picked all the nice > Git libraries into tools/perf/util/, to give a standard environment > for all tooling things that might come up in the future. > > Some of those are not used yet but it looked more logical to pick up > whole pieces - some already gained uses. For example config.c is not > truly used yet, but very much expected to have a role in the future. > > ( The only invasive thing i had to do was the s/git_/perf_/ mass > =A0rename across all the files - having 'git_' in perf looked > =A0quite confusing. ) > > And our general experience with the Git libraries in > tools/perf/util/* is: we love them! > > For example parse-options.c is a striking improvement compared to > getopt.h we used before, and all the other facilities are sane and > straight to the point as well. So in this sense 'perf' is an ... > interesting cross-discipline 'fork' of Git's generic libraries. > > The auto-generation of everything out of Documentation/*.txt is > another thing we picked up, and that's very nice too. > > One bookeeping issue: i found few explicit credits in those files - > so i noted in the changelog that i took them from Git and i noted > the specific upstream Git sha1 when i copied them. Would be nice to > update each file with names to make credit more explicit: =46rom http://git.kernel.org/?p=3Dlinux/kernel/git/x86/linux-2.6-tip.gi= t;a=3Dtree;f=3Dtools/perf;hb=3DHEAD it looks like there may be some other files like builtin-help.c (and perhaps some files in perf/Documentation/ too though there should be some AUTHOR information already in them). Thanks, Christian.