On 2006.07.28 00:59:11 +0400, Alexey Dobriyan wrote:I agree with Steinbink. But how about having macros like,
> Every time I try to decipher S_I* combos I cry in pain. Often I just
> refer to include/linux/stat.h defines to find out what mode it is
> because numbers are actually quickier to understand.
>
> Compare and contrast:
>
> 0644 vs S_IRUGO|S_IWUSR vs rw_r__r__
>
> I'd say #2 really sucks.
IMHO #3 sucks more, it's not as easy to spot when glossing over the
code, the underscores make it quite ugly (think _r________) and it's
less "greppable". If I know that there's something that sets S_ISUID, I
can easily search for that, compare that to [_cpdbl]{1}[r_]{1}[w_]{1}s...