From: Josef Sipek Subject: Re: [patch] add flags to stat() Date: Mon, 7 Aug 2006 13:22:51 -0400 Message-ID: <20060807172251.GB30519@filer.fsl.cs.sunysb.edu> References: <1154970365.10227.19.camel@kleikamp.austin.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Bryan Henderson , Ameer Armaly , linux-fsdevel@vger.kernel.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:32742 "EHLO filer.fsl.cs.sunysb.edu") by vger.kernel.org with ESMTP id S932176AbWHGRXj (ORCPT ); Mon, 7 Aug 2006 13:23:39 -0400 To: Dave Kleikamp Content-Disposition: inline In-Reply-To: <1154970365.10227.19.camel@kleikamp.austin.ibm.com> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Mon, Aug 07, 2006 at 12:06:05PM -0500, Dave Kleikamp wrote: > On Mon, 2006-08-07 at 09:48 -0700, Bryan Henderson wrote: > > >flags = flags ? flags : ~0; > > > > Here's a little known GNU C feature that makes it even easier to read: > > > > flags = flags ?: ~0 Bryan: Interesting, I didn't know that. > I think the first one is easier to read. Probably since the second is > "little-known" and requires a bit more thought to understand. Agreed. Josef "Jeff" Sipek. -- #endif /* NO LIFE */