--- ecos-2.0/packages/compat/posix/current/include/types.h 2004-05-04 11:56:10.902735600 +1000 +++ ecos-2.0.old/packages/compat/posix/current/include/types.h 2002-05-24 08:59:58.000000000 +1000 @@ -93,7 +93,6 @@ struct sched_param schedparam; void *stackaddr; size_t stacksize; - char * name; } pthread_attr_t; // Values for detachstate --- ecos-2.0/packages/compat/posix/current/src/pthread.cxx 2004-05-04 12:04:38.193725400 +1000 +++ ecos-2.0.old/packages/compat/posix/current/src/pthread.cxx 2004-04-02 13:35:05.000000000 +1000 @@ -594,27 +594,18 @@ // generate a name for this thread char *name = nthread->name; - if (use_attr.name) { - int i; - for (i = 0 ; use_attr.name[i] && (i < 16) ; i++) - name[i] = use_attr.name[i]; - name[i] = '\0'; // Null terminate the name... - } - else { - static char *name_template = "pthread.00000000"; - pthread_t id = nthread->id; - int i; - - for( i = 0; name_template[i]; i++ ) name[i] = name_template[i]; - name[i] = '\0'; // Null terminate the name... - - // dump the id, in hex into the name. - for( i = 15; i >= 8; i-- ) - { - name[i] = "0123456789ABCDEF"[id&0xF]; - id >>= 4; - } + static char *name_template = "pthread.00000000"; + pthread_t id = nthread->id; + + for( int i = 0; name_template[i]; i++ ) name[i] = name_template[i]; + + // dump the id, in hex into the name. + for( int i = 15; i >= 8; i-- ) + { + name[i] = "0123456789ABCDEF"[id&0xF]; + id >>= 4; } + #endif // Initialize the joiner condition variable @@ -969,7 +960,6 @@ attr->stackaddr = NULL; attr->stacksize_valid = 0; attr->stacksize = 0; - attr->name = NULL; PTHREAD_RETURN(0); }