Interesting thought. If we choose the bits right we could have
(bit patterns made up for example purposes):
#define O_CREAT 0x50
#define O_EXCL 0xa0
#define O_NOFOLLOW 0xc0
Then we get (O_CREAT|O_EXCL) == (O_CREAT|O_EXCL|O_NOFOLLOW),
but we can detect that none of O_CREAT, O_EXCL, ((O_CREAT|O_EXCL)&~O_NOFOLLOW)
match (x&O_NOFOLLOW)==O_NOFOLLOW.
Would this be an acceptable solution?
--Ken Pizzini
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/