From 7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 Mon Sep 17 00:00:00 2001 From: Paul Pluzhnikov Date: Sat, 20 May 2023 13:37:47 +0000 Subject: Fix all the remaining misspellings -- BZ 25337 --- nptl/TODO | 6 +++--- nptl/descr.h | 2 +- nptl/futex-internal.c | 2 +- nptl/perf.c | 4 ++-- nptl/pthread_cond_common.c | 2 +- nptl/pthread_cond_wait.c | 4 ++-- nptl/pthread_create.c | 2 +- nptl/pthread_getattr_np.c | 2 +- nptl/pthread_mutex_lock.c | 4 ++-- nptl/sem_waitcommon.c | 2 +- nptl/tst-dlsym1.c | 2 +- nptl/tst-rwlock20.c | 2 +- nptl/tst-stack4.c | 4 ++-- nptl/tst-tls3.c | 2 +- nptl/tst-tsd3.c | 6 +++--- nptl/tst-tsd4.c | 4 ++-- 16 files changed, 25 insertions(+), 25 deletions(-) (limited to 'nptl') diff --git a/nptl/TODO b/nptl/TODO index 70b8fe4f76..357ee790b0 100644 --- a/nptl/TODO +++ b/nptl/TODO @@ -26,6 +26,6 @@ syscall needed. post if they get canceled. - possibly add counter field. This requires reviving the - differences between old and new semaphose funtions. The old ones - stay as they are now. The new once can use an additional field - wich is the counter for the number of waiters + differences between old and new semaphore functions. The old ones + stay as they are now. The new ones can use an additional field + which is the counter for the number of waiters diff --git a/nptl/descr.h b/nptl/descr.h index f8b5ac7c22..746a4b9e4a 100644 --- a/nptl/descr.h +++ b/nptl/descr.h @@ -119,7 +119,7 @@ struct robust_list_head }; -/* Data strcture used to handle thread priority protection. */ +/* Data structure used to handle thread priority protection. */ struct priority_protection_data { int priomax; diff --git a/nptl/futex-internal.c b/nptl/futex-internal.c index 9815060646..5a64d14338 100644 --- a/nptl/futex-internal.c +++ b/nptl/futex-internal.c @@ -59,7 +59,7 @@ __futex_abstimed_wait_common64 (unsigned int* futex_word, FUTEX_BITSET_MATCH_ANY); else return INTERNAL_SYSCALL_CALL (futex_time64, futex_word, op, expected, - abstime, NULL /* Ununsed. */, + abstime, NULL /* Unused. */, FUTEX_BITSET_MATCH_ANY); } diff --git a/nptl/perf.c b/nptl/perf.c index 1f50c1035d..1f29a678b7 100644 --- a/nptl/perf.c +++ b/nptl/perf.c @@ -50,7 +50,7 @@ static const struct argp_option options[] = { { NULL, 0, NULL, 0, "\ -This is a test for threads so we allow ther user to selection the number of \ +This is a test for threads so we allow the user to select the number of \ threads which are used at any one time. Independently the total number of \ rounds can be selected. This is the total number of threads which will have \ run when the process terminates:" }, @@ -387,7 +387,7 @@ main (int argc, char *argv[]) tmain = pthread_self (); /* We use signal SIGUSR1 for communication between the threads and - the main thread. We only want sychronous notification. */ + the main thread. We only want synchronous notification. */ if (sync_method == sync_signal) { sigemptyset (&ss); diff --git a/nptl/pthread_cond_common.c b/nptl/pthread_cond_common.c index 3ca9ab92b9..7440bb18e6 100644 --- a/nptl/pthread_cond_common.c +++ b/nptl/pthread_cond_common.c @@ -230,7 +230,7 @@ __condvar_quiesce_and_switch_g1 (pthread_cond_t *cond, uint64_t wseq, /* First, set the closed flag on __g_signals. This tells waiters that are about to wait that they shouldn't do that anymore. This basically - serves as an advance notificaton of the upcoming change to __g1_start; + serves as an advance notification of the upcoming change to __g1_start; waiters interpret it as if __g1_start was larger than their waiter sequence position. This allows us to change __g1_start after waiting for all existing waiters with group references to leave, which in turn diff --git a/nptl/pthread_cond_wait.c b/nptl/pthread_cond_wait.c index 15bbd8b7e8..806c432d13 100644 --- a/nptl/pthread_cond_wait.c +++ b/nptl/pthread_cond_wait.c @@ -583,7 +583,7 @@ __pthread_cond_wait_common (pthread_cond_t *cond, pthread_mutex_t *mutex, the futex. We also need to do that if we skipped adding a signal because the group is being closed because while __condvar_quiesce_and_switch_g1 could have closed - the group, it might stil be waiting for futex waiters to + the group, it might still be waiting for futex waiters to leave (and one of those waiters might be the one we stole the signal from, which cause it to block using the futex). */ @@ -603,7 +603,7 @@ __pthread_cond_wait_common (pthread_cond_t *cond, pthread_mutex_t *mutex, __condvar_confirm_wakeup (cond, private); /* Woken up; now re-acquire the mutex. If this doesn't fail, return RESULT, - which is set to ETIMEDOUT if a timeout occured, or zero otherwise. */ + which is set to ETIMEDOUT if a timeout occurred, or zero otherwise. */ err = __pthread_mutex_cond_lock (mutex); /* XXX Abort on errors that are disallowed by POSIX? */ return (err != 0) ? err : result; diff --git a/nptl/pthread_create.c b/nptl/pthread_create.c index a3619da1e2..1ac8862ed2 100644 --- a/nptl/pthread_create.c +++ b/nptl/pthread_create.c @@ -218,7 +218,7 @@ late_init (void) __pthread_current_priority reuse the same lock, PD->lock, for a similar purpose e.g. synchronizing the setting of similar thread attributes. These functions are never called before the thread is - created, so don't participate in startup syncronization, but given + created, so don't participate in startup synchronization, but given that the lock is present already and in the unlocked state, reusing it saves space. diff --git a/nptl/pthread_getattr_np.c b/nptl/pthread_getattr_np.c index de7edfa092..65647bda57 100644 --- a/nptl/pthread_getattr_np.c +++ b/nptl/pthread_getattr_np.c @@ -43,7 +43,7 @@ __pthread_getattr_np (pthread_t thread_id, pthread_attr_t *attr) lll_lock (thread->lock, LLL_PRIVATE); /* The thread library is responsible for keeping the values in the - thread desriptor up-to-date in case the user changes them. */ + thread descriptor up-to-date in case the user changes them. */ memcpy (&iattr->schedparam, &thread->schedparam, sizeof (struct sched_param)); iattr->schedpolicy = thread->schedpolicy; diff --git a/nptl/pthread_mutex_lock.c b/nptl/pthread_mutex_lock.c index d4f96c70ef..643841472f 100644 --- a/nptl/pthread_mutex_lock.c +++ b/nptl/pthread_mutex_lock.c @@ -234,7 +234,7 @@ __pthread_mutex_lock_full (pthread_mutex_t *mutex) /* The previous owner died. Try locking the mutex. */ int newval = id; #ifdef NO_INCR - /* We are not taking assume_other_futex_waiters into accoount + /* We are not taking assume_other_futex_waiters into account here simply because we'll set FUTEX_WAITERS anyway. */ newval |= FUTEX_WAITERS; #else @@ -438,7 +438,7 @@ __pthread_mutex_lock_full (pthread_mutex_t *mutex) int private = (robust ? PTHREAD_ROBUST_MUTEX_PSHARED (mutex) : PTHREAD_MUTEX_PSHARED (mutex)); - int e = __futex_lock_pi64 (&mutex->__data.__lock, 0 /* ununsed */, + int e = __futex_lock_pi64 (&mutex->__data.__lock, 0 /* unused */, NULL, private); if (e == ESRCH || e == EDEADLK) { diff --git a/nptl/sem_waitcommon.c b/nptl/sem_waitcommon.c index 647132c1ea..30200c941f 100644 --- a/nptl/sem_waitcommon.c +++ b/nptl/sem_waitcommon.c @@ -325,7 +325,7 @@ __sem_wait_32_finish (struct new_sem *sem) unsigned int wguess = atomic_load_relaxed (&sem->nwaiters); if (wguess == 1) /* We might be the last waiter, so unset. This needs acquire MO so that - it syncronizes with the release MO when setting the bit above; if we + it synchronizes with the release MO when setting the bit above; if we overwrite someone else that set the bit, we'll read in the following decrement of nwaiters at least from that release sequence, so we'll see if the other waiter is still active or if another writer entered diff --git a/nptl/tst-dlsym1.c b/nptl/tst-dlsym1.c index 19ba8f5640..bdf252b353 100644 --- a/nptl/tst-dlsym1.c +++ b/nptl/tst-dlsym1.c @@ -53,7 +53,7 @@ do_test (void) } if (pthread_join (tid3, NULL) != 0) { - puts ("2rd join failed"); + puts ("2nd join failed"); exit (1); } diff --git a/nptl/tst-rwlock20.c b/nptl/tst-rwlock20.c index 0904d4b658..0ea18fc428 100644 --- a/nptl/tst-rwlock20.c +++ b/nptl/tst-rwlock20.c @@ -26,7 +26,7 @@ #include #include -/* We realy want to set threads to 2 to reproduce this issue. The goal +/* We really want to set threads to 2 to reproduce this issue. The goal is to have one primary writer and a single reader, and to hit the bug that happens in the interleaving of those two phase transitions. However, on most hardware, adding a second writer seems to help the diff --git a/nptl/tst-stack4.c b/nptl/tst-stack4.c index 565eea4ebd..a27cfacb9c 100644 --- a/nptl/tst-stack4.c +++ b/nptl/tst-stack4.c @@ -1,4 +1,4 @@ -/* Test DTV size oveflow when pthread_create reuses old DTV and TLS is +/* Test DTV size overflow when pthread_create reuses old DTV and TLS is used by dlopened shared object. Copyright (C) 2014-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -23,7 +23,7 @@ #include #include -/* The choices of thread count, and file counts are arbitary. +/* The choices of thread count, and file counts are arbitrary. The point is simply to run enough threads that an exiting thread has it's stack reused by another thread at the same time as new libraries have been loaded. */ diff --git a/nptl/tst-tls3.c b/nptl/tst-tls3.c index 33d94c8cc5..748037131e 100644 --- a/nptl/tst-tls3.c +++ b/nptl/tst-tls3.c @@ -30,7 +30,7 @@ #define THE_SIG SIGUSR1 -/* The stack size can be overriden. With a sufficiently large stack +/* The stack size can be overridden. With a sufficiently large stack size, thread stacks for terminated threads are freed, but this does not happen with the default size of 1 MiB. */ enum { default_stack_size_in_mb = 1 }; diff --git a/nptl/tst-tsd3.c b/nptl/tst-tsd3.c index c755c0ceb4..0b3b01fe47 100644 --- a/nptl/tst-tsd3.c +++ b/nptl/tst-tsd3.c @@ -36,7 +36,7 @@ destr1 (void *arg) { puts ("set key2"); - /* Use an arbirary but valid pointer to avoid GCC warnings. */ + /* Use an arbitrary but valid pointer to avoid GCC warnings. */ if (pthread_setspecific (key2, (void *) &left) != 0) { puts ("destr1: setspecific failed"); @@ -53,7 +53,7 @@ destr2 (void *arg) { puts ("set key1"); - /* Use an arbirary but valid pointer to avoid GCC warnings. */ + /* Use an arbitrary but valid pointer to avoid GCC warnings. */ if (pthread_setspecific (key1, (void *) &left) != 0) { puts ("destr2: setspecific failed"); @@ -69,7 +69,7 @@ tf (void *arg) /* Let the destructors work. */ left = 7; - /* Use an arbirary but valid pointer to avoid GCC warnings. */ + /* Use an arbitrary but valid pointer to avoid GCC warnings. */ if (pthread_setspecific (key1, (void *) &left) != 0 || pthread_setspecific (key2, (void *) &left) != 0) { diff --git a/nptl/tst-tsd4.c b/nptl/tst-tsd4.c index f832f4bc17..2ae577a642 100644 --- a/nptl/tst-tsd4.c +++ b/nptl/tst-tsd4.c @@ -33,7 +33,7 @@ destr (void *arg) { ++rounds; - /* Use an arbirary but valid pointer to avoid GCC warnings. */ + /* Use an arbitrary but valid pointer to avoid GCC warnings. */ if (pthread_setspecific (key, (void *) &rounds) != 0) { puts ("destr: setspecific failed"); @@ -45,7 +45,7 @@ destr (void *arg) static void * tf (void *arg) { - /* Use an arbirary but valid pointer to avoid GCC warnings. */ + /* Use an arbitrary but valid pointer to avoid GCC warnings. */ if (pthread_setspecific (key, (void *) &rounds) != 0) { puts ("tf: setspecific failed"); -- cgit 1.4.1