aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2023-05-20 13:37:47 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2023-06-02 01:39:48 +0000
commit7f0d9e61f40c669fca3cfd1e342fa8236c7220b7 (patch)
treee02ce0ba813f2cb4f20643988ec030292784cab6 /nptl
parent5013f6fc6c44160e8ec6bcd34ba676e85d9d6ab6 (diff)
downloadglibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.zip
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.gz
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.bz2
Fix all the remaining misspellings -- BZ 25337
Diffstat (limited to 'nptl')
-rw-r--r--nptl/TODO6
-rw-r--r--nptl/descr.h2
-rw-r--r--nptl/futex-internal.c2
-rw-r--r--nptl/perf.c4
-rw-r--r--nptl/pthread_cond_common.c2
-rw-r--r--nptl/pthread_cond_wait.c4
-rw-r--r--nptl/pthread_create.c2
-rw-r--r--nptl/pthread_getattr_np.c2
-rw-r--r--nptl/pthread_mutex_lock.c4
-rw-r--r--nptl/sem_waitcommon.c2
-rw-r--r--nptl/tst-dlsym1.c2
-rw-r--r--nptl/tst-rwlock20.c2
-rw-r--r--nptl/tst-stack4.c4
-rw-r--r--nptl/tst-tls3.c2
-rw-r--r--nptl/tst-tsd3.c6
-rw-r--r--nptl/tst-tsd4.c4
16 files changed, 25 insertions, 25 deletions
diff --git a/nptl/TODO b/nptl/TODO
index 70b8fe4..357ee79 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 f8b5ac7..746a4b9 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 9815060..5a64d14 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 1f50c10..1f29a67 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 3ca9ab9..7440bb1 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 15bbd8b..806c432 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 a3619da..1ac8862 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 de7edfa..65647bd 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 d4f96c7..6438414 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 647132c..30200c9 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 19ba8f5..bdf252b 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 0904d4b..0ea18fc 100644
--- a/nptl/tst-rwlock20.c
+++ b/nptl/tst-rwlock20.c
@@ -26,7 +26,7 @@
#include <atomic.h>
#include <support/xthread.h>
-/* 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 565eea4..a27cfac 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 <assert.h>
#include <pthread.h>
-/* 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 33d94c8..7480371 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 c755c0c..0b3b01f 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 f832f4b..2ae577a 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");