Re: Linux 2.1.125 doesn't dump core on SIGSEGV

Chris Wedgwood (chris@cybernet.co.nz)
Mon, 16 Nov 1998 18:36:11 +1300


On Sun, Nov 15, 1998 at 09:30:16PM -0800, Ken Pizzini wrote:

> No it doesn't. Read my proposal again:
>
> > (bit patterns made up for example purposes):
> > #define O_CREAT 0x50 0101
> > #define O_EXCL 0xa0 1010
> > #define O_NOFOLLOW 0xc0 1100
> >
> > 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.
>
> This choice of bits allows one to distinguish the seven cases of:
> O_CREAT only (0x50)
> O_EXCL only (0xa0)
> O_NOFOLLOW only (0xc0)
> O_CREAT|O_NOFOLLOW, but without O_EXCL (0xd0)
> O_EXCL|O_NOFOLLOW, but without O_CREAT (0xe0)
> O_EXCL|O_CREAT, with or without O_NOFOLLOW (0xf0)
> None of O_EXCL, O_CREAT, O_NOFOLLOW (0x00)

Sorry... I read 0xa0 as 0x80 and got confused.

-cw

-
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/