Skip to content

exterminate strtok

Jesper Juhl lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3exterminate strtok - arch/frv/kernel/frv_ksyms.carch/frv/kernel/frv_ksyms.c+0 -11 reply
2/3exterminate strtok - drivers/video/au1100fb.cdrivers/video/au1100fb.c+4 -36 replies
3/3exterminate strtok - usr/gen_init_cpio.cusr/gen_init_cpio.c+22 -910 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] exterminate strtok

In 1999 Ingo Oeser commented in lib/string.c :
* - Added strsep() which will replace strtok() soon (because strsep() is
* reentrant and should be faster). Use only strsep() in new code, please.
Then in 2002 strtok was removed.

There are still a few cases of strtok in the kernel to this day. The following 3 patches exterminates them.

Let me say up front that the first two patches have *not* been tested since I lack both the appropriate hardware and suitable cross compiler. They are fairly simple though, so I doubt they'll be troublesome, but I'd greatly appreciate if someone else would validate them and sign off on them before I send them on to Andrew for inclusion in -mm. The third patch /has/ seen limited testing, but it would still be nice to have someone look it over and sign off on it.

Signature · 1 line
Jesper Juhl <[email protected]>