Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: thread proof/reentrance




While digging in the code:


msi:~/video/VDR# grep strtok *.c *.h | grep -v strok_r
channels.c:           while ((q = strtok(p, ",")) != NULL) {
channels.c:              while ((q = strtok(p, ",")) != NULL) {
channels.c:              while ((q = strtok(p, ",")) != NULL) {
keys.c:  while ((p = strtok(s, " \t")) != NULL) {
svdrp.c:     FileName = strtok(p, delim);
svdrp.c:     if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:     if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:     if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:        if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:     if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:        char *p = strtok(buf, delim);
svdrp.c:                 if ((p = strtok(NULL, delim)) != NULL) {
svdrp.c:              p = strtok(NULL, delim);



is strtok really thread proof?

Why are no side effects to be expected?
How is that guarantied?

maybe a plugin uses strtok too?



Rainer---<=====>                         Vertraulich
             //
           //                              
         <=====>--------------ocholl, Kiel, Germany ------------





Home | Main Index | Thread Index