Re: [patch] add flags to stat()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 */
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux