diff options
Diffstat (limited to 'pthread/pt-create.c')
-rw-r--r-- | pthread/pt-create.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pthread/pt-create.c b/pthread/pt-create.c index d88afae..c9e0730 100644 --- a/pthread/pt-create.c +++ b/pthread/pt-create.c @@ -107,7 +107,7 @@ __pthread_create_internal (struct __pthread **thread, if (!stacksize) { struct rlimit rlim; - getrlimit(RLIMIT_STACK, &rlim); + __getrlimit(RLIMIT_STACK, &rlim); if (rlim.rlim_cur != RLIM_INFINITY) stacksize = rlim.rlim_cur; if (!stacksize) @@ -202,9 +202,9 @@ __pthread_create_internal (struct __pthread **thread, could use __thread_setid, however, we only lock for reading as no other thread should be using this entry (we also assume that the store is atomic). */ - pthread_rwlock_rdlock (&__pthread_threads_lock); + __pthread_rwlock_rdlock (&__pthread_threads_lock); __pthread_threads[pthread->thread - 1] = pthread; - pthread_rwlock_unlock (&__pthread_threads_lock); + __pthread_rwlock_unlock (&__pthread_threads_lock); /* At this point it is possible to guess our pthread ID. We have to make sure that all functions taking a pthread_t argument can |