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

Ingo Oeser (
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.


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 <>
         <<<<<<<<<<<<       come and join the fun       >>>>>>>>>>>>
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at