Browse Source

newer linuxthreads renamed the function invalid_handle() to nonexisting_handle()

Mike Frysinger 18 years ago
parent
commit
290e2375ab

+ 1 - 1
libpthread/linuxthreads/cancel.c

@@ -73,7 +73,7 @@ int pthread_cancel(pthread_t thread)
   int already_canceled;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, thread)) {
+  if (nonexisting_handle(handle, thread)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }

+ 2 - 2
libpthread/linuxthreads/join.c

@@ -124,7 +124,7 @@ int pthread_join(pthread_t thread_id, void ** thread_return)
   extr.pu_extricate_func = join_extricate_func;
 
   __pthread_lock(&handle->h_lock, self);
-  if (invalid_handle(handle, thread_id)) {
+  if (nonexisting_handle(handle, thread_id)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }
@@ -190,7 +190,7 @@ int pthread_detach(pthread_t thread_id)
   pthread_descr th;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, thread_id)) {
+  if (nonexisting_handle(handle, thread_id)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }

+ 1 - 1
libpthread/linuxthreads/manager.c

@@ -815,7 +815,7 @@ static void pthread_handle_free(pthread_t th_id)
   pthread_descr th;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, th_id)) {
+  if (nonexisting_handle(handle, th_id)) {
     /* pthread_reap_children has deallocated the thread already,
        nothing needs to be done */
     __pthread_unlock(&handle->h_lock);

+ 2 - 2
libpthread/linuxthreads/pthread.c

@@ -632,7 +632,7 @@ int pthread_setschedparam(pthread_t thread, int policy,
   pthread_descr th;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, thread)) {
+  if (nonexisting_handle(handle, thread)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }
@@ -655,7 +655,7 @@ int pthread_getschedparam(pthread_t thread, int *policy,
   int pid, pol;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, thread)) {
+  if (nonexisting_handle(handle, thread)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }

+ 1 - 1
libpthread/linuxthreads/signals.c

@@ -64,7 +64,7 @@ int pthread_kill(pthread_t thread, int signo)
   int pid;
 
   __pthread_lock(&handle->h_lock, NULL);
-  if (invalid_handle(handle, thread)) {
+  if (nonexisting_handle(handle, thread)) {
     __pthread_unlock(&handle->h_lock);
     return ESRCH;
   }