linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Kleikamp <shaggy@austin.ibm.com>
To: Bryan Henderson <hbryan@us.ibm.com>
Cc: Josef Sipek <jsipek@fsl.cs.sunysb.edu>,
	Ameer Armaly <ameer@bellsouth.net>,
	linux-fsdevel@vger.kernel.org
Subject: Re: [patch] add flags to stat()
Date: Mon, 07 Aug 2006 12:06:05 -0500	[thread overview]
Message-ID: <1154970365.10227.19.camel@kleikamp.austin.ibm.com> (raw)
In-Reply-To: <OFE17FB6D3.23821C3D-ON882571C3.005C2DD9-882571C3.005C5615@us.ibm.com>

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

I think the first one is easier to read.  Probably since the second is
"little-known" and requires a bit more thought to understand.
-- 
David Kleikamp
IBM Linux Technology Center


  reply	other threads:[~2006-08-07 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-06 15:58 [patch] add flags to stat() Ameer Armaly
2006-08-07  7:11 ` Josef Sipek
2006-08-07 16:48   ` Bryan Henderson
2006-08-07 17:06     ` Dave Kleikamp [this message]
2006-08-07 17:22       ` Josef Sipek
2006-08-07 14:23 ` Matthew Wilcox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1154970365.10227.19.camel@kleikamp.austin.ibm.com \
    --to=shaggy@austin.ibm.com \
    --cc=ameer@bellsouth.net \
    --cc=hbryan@us.ibm.com \
    --cc=jsipek@fsl.cs.sunysb.edu \
    --cc=linux-fsdevel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).