Re: md= broken. Found problem. Can't fix it. : (

Ingo Oeser (ingo.oeser@informatik.tu-chemnitz.de)
Mon, 22 Jan 2001 15:09:01 +0100


On Sat, Jan 20, 2001 at 11:28:51PM +0100, Andi Kleen wrote:
> On Sat, Jan 20, 2001 at 04:58:56PM -0500, Sandy Harris wrote:
> > I suspect that I've misunderstood some constraint here. Perhaps the more complex
> > code you posted is necessary, but I'd like to know why.
>
> strtok is not reentrant and cannot be nested this way without
> saving __strtok. strsep would work.

But be careful:

strsep() in kernel skips zero length strings, but strsep
glibc wouldn't do.

Regards

Ingo Oeser

Note: I implemented it to replace strtok and even did a patch to
replace all occourences of it, but got no response and so stopped
working on this issue. If there is still interest, I would do
it again.

-- 
10.+11.03.2001 - 3. Chemnitzer LinuxTag <http://www.tu-chemnitz.de/linux/tag>
         <<<<<<<<<<<<       come and join the fun       >>>>>>>>>>>>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/