Re: STREAMS: interface versus implementation

Jan Echternach (echter@informatik.uni-rostock.de)
Thu, 17 Sep 1998 14:57:55 +0200


On Wed, Sep 16, 1998 at 08:11:58PM +0100, Alan Cox wrote:

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

-- 
Jan

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