Re: STREAMS: interface versus implementation

Alan Cox (alan@lxorguk.ukuu.org.uk)
Thu, 17 Sep 1998 16:12:20 +0100 (BST)


>
> > > > if(*(u32 *)pathname='/dev')
>
> > > I see an alignment trap too, but anyway...
> >
> > Not on X86. Also statistically speaking most strings are naturally aligned.
> > Analyse the calls to open() and you'll see that pretty fast.
>
> But what about pathname pointing two or three bytes before the end of
> a page, and the next page is not mapped? If I'm not mistaken, you would
> get segfaults for valid strings.

True

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