aboutsummaryrefslogtreecommitdiff
path: root/support
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 /support
parent5013f6fc6c44160e8ec6bcd34ba676e85d9d6ab6 (diff)
downloadglibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.zip
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.gz
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.bz2
Fix all the remaining misspellings -- BZ 25337
Diffstat (limited to 'support')
-rw-r--r--support/Makefile2
-rw-r--r--support/README2
-rw-r--r--support/delayed_exit.c2
-rw-r--r--support/resolv_test.c10
-rw-r--r--support/resolv_test.h4
-rw-r--r--support/support_record_failure.c2
-rw-r--r--support/support_test_main.c2
-rw-r--r--support/temp_file.c2
-rw-r--r--support/test-container.c10
-rw-r--r--support/tst-timespec.c16
10 files changed, 26 insertions, 26 deletions
diff --git a/support/Makefile b/support/Makefile
index 92f1a24..130de4a 100644
--- a/support/Makefile
+++ b/support/Makefile
@@ -237,7 +237,7 @@ CFLAGS-support_paths.c = \
# In support_timespec_check_in_range we may be passed a very tight
# range for which we should produce a correct result for expected
-# being withing the observed range. The code uses double internally
+# being within the observed range. The code uses double internally
# in support_timespec_check_in_range and for that computation we use
# -fexcess-precision=standard.
CFLAGS-timespec.c += -fexcess-precision=standard
diff --git a/support/README b/support/README
index ae2c41c..e9e74ad 100644
--- a/support/README
+++ b/support/README
@@ -14,7 +14,7 @@ error. They are declared in these header files:
In general, new wrappers should be added to support.h if possible.
However, support.h must remain fully compatible with C90 and therefore
-cannot include headers which use identifers not reserved in C90. If
+cannot include headers which use identifiers not reserved in C90. If
the wrappers need additional types, additional headers such as
signal.h need to be introduced.
diff --git a/support/delayed_exit.c b/support/delayed_exit.c
index e5028bf..53aa40c 100644
--- a/support/delayed_exit.c
+++ b/support/delayed_exit.c
@@ -33,7 +33,7 @@ delayed_exit_thread (void *seconds_as_ptr)
struct timespec remaining = { 0 };
if (nanosleep (&delay, &remaining) != 0)
FAIL_EXIT1 ("nanosleep: %m");
- /* Exit the process sucessfully. */
+ /* Exit the process successfully. */
exit (0);
return NULL;
}
diff --git a/support/resolv_test.c b/support/resolv_test.c
index fd1f5e7..c569463 100644
--- a/support/resolv_test.c
+++ b/support/resolv_test.c
@@ -91,7 +91,7 @@ ascii_tolower (unsigned char ch)
}
/* Compare both names, for use with tsearch. The order is arbitrary,
- but the comparison is case-insenstive. */
+ but the comparison is case-insensitive. */
static int
compare_compressed_name (const void *left, const void *right)
{
@@ -119,7 +119,7 @@ compare_compressed_name (const void *left, const void *right)
if (lenleft == 0)
/* End of name reached without spotting a difference. */
return 0;
- /* Compare the label in a case-insenstive manner. */
+ /* Compare the label in a case-insensitive manner. */
const unsigned char *endnameleft = nameleft + lenleft;
while (nameleft < endnameleft)
{
@@ -525,7 +525,7 @@ parse_query (struct query_info *info,
_Static_assert (sizeof (rr) == 11, "EDNS record size");
if (remaining < 4 + sizeof (rr))
- FAIL_EXIT1 ("mailformed DNS query: no room for EDNS record");
+ FAIL_EXIT1 ("malformed DNS query: no room for EDNS record");
memcpy (&rr, buffer + 12 + ret + 4, sizeof (rr));
if (rr.root != 0)
FAIL_EXIT1 ("malformed DNS query: invalid OPT RNAME: %d\n", rr.root);
@@ -843,7 +843,7 @@ writev_fully (int fd, struct iovec *buffers, size_t count)
--count;
continue;
}
- /* Try to rewrite the remaing buffers. */
+ /* Try to rewrite the remaining buffers. */
ssize_t ret = writev (fd, buffers, count);
if (ret < 0)
FAIL_EXIT1 ("writev: %m");
@@ -969,7 +969,7 @@ server_thread_tcp (struct resolv_test *obj, int server_index)
{
while (true)
{
- /* Get the client conenction. */
+ /* Get the client connection. */
int client_socket = xaccept
(obj->servers[server_index].socket_tcp, NULL, NULL);
diff --git a/support/resolv_test.h b/support/resolv_test.h
index 8d05fc4..32673f0 100644
--- a/support/resolv_test.h
+++ b/support/resolv_test.h
@@ -116,7 +116,7 @@ struct resolv_redirect_config
const struct sockaddr *const *server_address_overrides;
};
-/* Configure NSS to use, nss_dns only for aplicable databases, and try
+/* Configure NSS to use, nss_dns only for applicable databases, and try
to put the process into a network namespace for better isolation.
This may have to be called before resolv_test_start, before the
process creates any threads. Otherwise, initialization is
@@ -125,7 +125,7 @@ void resolv_test_init (void);
/* Initiate resolver testing. This updates the _res variable as
needed. As a side effect, NSS is reconfigured to use nss_dns only
- for aplicable databases, and the process may enter a network
+ for applicable databases, and the process may enter a network
namespace for better isolation. */
struct resolv_test *resolv_test_start (struct resolv_redirect_config);
diff --git a/support/support_record_failure.c b/support/support_record_failure.c
index 27055bd..711f088 100644
--- a/support/support_record_failure.c
+++ b/support/support_record_failure.c
@@ -32,7 +32,7 @@
zero, the failure of a test can be detected.
The init constructor function below puts *state on a shared
- annonymous mapping, so that failure reports from subprocesses
+ anonymous mapping, so that failure reports from subprocesses
propagate to the parent process. */
struct test_failures
{
diff --git a/support/support_test_main.c b/support/support_test_main.c
index 94f02df..c20c19e 100644
--- a/support/support_test_main.c
+++ b/support/support_test_main.c
@@ -469,7 +469,7 @@ support_test_main (int argc, char **argv, const struct test_config *config)
exit (1);
}
- /* Process terminated normaly without timeout etc. */
+ /* Process terminated normally without timeout etc. */
if (WIFEXITED (status))
{
if (config->expected_status == 0)
diff --git a/support/temp_file.c b/support/temp_file.c
index 536f238..74e3861 100644
--- a/support/temp_file.c
+++ b/support/temp_file.c
@@ -249,7 +249,7 @@ support_delete_temp_files (void)
pid_t pid = getpid ();
while (temp_name_list != NULL)
{
- /* Only perform the removal if the path was registed in the same
+ /* Only perform the removal if the path was registered in the same
process, as identified by the PID. (This assumes that the
parent process which registered the temporary file sticks
around, to prevent PID reuse.) */
diff --git a/support/test-container.c b/support/test-container.c
index 008ced2..20ea19a 100644
--- a/support/test-container.c
+++ b/support/test-container.c
@@ -279,7 +279,7 @@ devmount (const char *new_root_path, const char *which)
concat (new_root_path, "/dev/", which, NULL));
}
-/* Returns true if the string "looks like" an environement variable
+/* Returns true if the string "looks like" an environment variable
being set. */
static int
is_env_setting (const char *a)
@@ -800,7 +800,7 @@ main (int argc, char **argv)
--argc;
while (is_env_setting (argv[1]))
{
- /* If there are variables we do NOT want to propogate, this
+ /* If there are variables we do NOT want to propagate, this
is where the test for them goes. */
{
/* Need to keep these. Note that putenv stores a
@@ -1175,7 +1175,7 @@ main (int argc, char **argv)
/* To complete the containerization, we need to fork () at least
once. We can't exec, nor can we somehow link the new child to
- our parent. So we run the child and propogate it's exit status
+ our parent. So we run the child and propagate it's exit status
up. */
child = fork ();
if (child < 0)
@@ -1233,11 +1233,11 @@ main (int argc, char **argv)
{
/* This happens if we're trying to create a nested container,
like if the build is running under podman, and we lack
- priviledges.
+ privileges.
Ideally we would WARN here, but that would just add noise to
*every* test-container test, and the ones that care should
- have their own relevent diagnostics.
+ have their own relevant diagnostics.
FAIL_EXIT1 ("Unable to mount /proc: "); */
}
diff --git a/support/tst-timespec.c b/support/tst-timespec.c
index aee191e..08c2c71 100644
--- a/support/tst-timespec.c
+++ b/support/tst-timespec.c
@@ -76,22 +76,22 @@ struct timespec_ns_test_case ns_cases[] = {
{.time = {.tv_sec = -1, .tv_nsec = 1},
.time_ns = -TIMESPEC_HZ + 1,
},
- /* Overflow bondary by 2 */
+ /* Overflow boundary by 2 */
{.time = {.tv_sec = TIME_T_MAX / TIMESPEC_HZ,
.tv_nsec = TIME_T_MAX % TIMESPEC_HZ - 1},
.time_ns = TIME_T_MAX - 1,
},
- /* Overflow bondary */
+ /* Overflow boundary */
{.time = {.tv_sec = TIME_T_MAX / TIMESPEC_HZ,
.tv_nsec = TIME_T_MAX % TIMESPEC_HZ},
.time_ns = TIME_T_MAX,
},
- /* Underflow bondary by 1 */
+ /* Underflow boundary by 1 */
{.time = {.tv_sec = TIME_T_MIN / TIMESPEC_HZ,
.tv_nsec = TIME_T_MIN % TIMESPEC_HZ + 1},
.time_ns = TIME_T_MIN + 1,
},
- /* Underflow bondary */
+ /* Underflow boundary */
{.time = {.tv_sec = TIME_T_MIN / TIMESPEC_HZ,
.tv_nsec = TIME_T_MIN % TIMESPEC_HZ},
.time_ns = TIME_T_MIN,
@@ -153,19 +153,19 @@ struct timespec_norm_test_case norm_cases[] = {
{.time = {.tv_sec = -1, .tv_nsec = -TIMESPEC_HZ - 1},
.norm = {.tv_sec = -2, .tv_nsec = -1}
},
- /* Overflow bondary by 2 */
+ /* Overflow boundary by 2 */
{.time = {.tv_sec = TIME_T_MAX - 2, .tv_nsec = TIMESPEC_HZ + 1},
.norm = {.tv_sec = TIME_T_MAX - 1, 1},
},
- /* Overflow bondary by 1 */
+ /* Overflow boundary by 1 */
{.time = {.tv_sec = TIME_T_MAX - 1, .tv_nsec = TIMESPEC_HZ + 1},
.norm = {.tv_sec = TIME_T_MAX, .tv_nsec = 1},
},
- /* Underflow bondary by 2 */
+ /* Underflow boundary by 2 */
{.time = {.tv_sec = TIME_T_MIN + 2, .tv_nsec = -TIMESPEC_HZ - 1},
.norm = {.tv_sec = TIME_T_MIN + 1, -1},
},
- /* Underflow bondary by 1 */
+ /* Underflow boundary by 1 */
{.time = {.tv_sec = TIME_T_MIN + 1, .tv_nsec = -TIMESPEC_HZ - 1},
.norm = {.tv_sec = TIME_T_MIN, .tv_nsec = -1},
},