aboutsummaryrefslogtreecommitdiff
path: root/stdlib
diff options
context:
space:
mode:
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/inttypes.h2
-rw-r--r--stdlib/lldiv.c2
-rw-r--r--stdlib/longlong.h2
-rw-r--r--stdlib/tst-arc4random-stats.c2
-rw-r--r--stdlib/tst-arc4random-thread.c2
-rw-r--r--stdlib/tst-canon-bz26341.c2
-rw-r--r--stdlib/tst-random.c6
-rw-r--r--stdlib/tst-setcontext.c2
8 files changed, 10 insertions, 10 deletions
diff --git a/stdlib/inttypes.h b/stdlib/inttypes.h
index 0ace21f..8f0fa8a 100644
--- a/stdlib/inttypes.h
+++ b/stdlib/inttypes.h
@@ -294,7 +294,7 @@ typedef wchar_t __gwchar_t;
# define SCNuMAX __PRI64_PREFIX "u"
# define SCNxMAX __PRI64_PREFIX "x"
-/* Macros for scaning `intptr_t' and `uintptr_t'. */
+/* Macros for scanning `intptr_t' and `uintptr_t'. */
# define SCNdPTR __PRIPTR_PREFIX "d"
# define SCNiPTR __PRIPTR_PREFIX "i"
# define SCNoPTR __PRIPTR_PREFIX "o"
diff --git a/stdlib/lldiv.c b/stdlib/lldiv.c
index f00d159..bd7c6b2 100644
--- a/stdlib/lldiv.c
+++ b/stdlib/lldiv.c
@@ -1,4 +1,4 @@
-/* `long long int' divison with remainder.
+/* `long long int' division with remainder.
Copyright (C) 1992-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/stdlib/longlong.h b/stdlib/longlong.h
index fa1687f..ae067d9 100644
--- a/stdlib/longlong.h
+++ b/stdlib/longlong.h
@@ -1074,7 +1074,7 @@ extern UDItype __umulsidi3 (USItype, USItype);
#elif __riscv_xlen == 64
#define MULUW3 "call __muldi3"
#else
-#error unsupport xlen
+#error unsupported xlen
#endif /* __riscv_xlen */
/* We rely on the fact that MULUW3 doesn't clobber the t-registers.
It can get better register allocation result. */
diff --git a/stdlib/tst-arc4random-stats.c b/stdlib/tst-arc4random-stats.c
index f0edffb..1808cf6 100644
--- a/stdlib/tst-arc4random-stats.c
+++ b/stdlib/tst-arc4random-stats.c
@@ -117,7 +117,7 @@ generate_arc4random_uniform (unsigned char *key)
/* Test adapter for arc4random_uniform with argument 257. This means
that byte 0 happens more often, but we do not perform such a
- statistcal check, so the test will still pass */
+ statistical check, so the test will still pass */
static bool
generate_arc4random_uniform_257 (unsigned char *key)
{
diff --git a/stdlib/tst-arc4random-thread.c b/stdlib/tst-arc4random-thread.c
index 0108289..d8863cf 100644
--- a/stdlib/tst-arc4random-thread.c
+++ b/stdlib/tst-arc4random-thread.c
@@ -295,7 +295,7 @@ do_test_func (const char *fname, void (*func)(unsigned char *, size_t))
run_outer_threads (func);
/* The forking thread delivers a non-deterministic number of
- results, which is why expected_blobs is only a minimun number of
+ results, which is why expected_blobs is only a minimum number of
results. */
printf ("info: %s: %zu blob results observed\n", fname,
dynarray_blob_size (&global_result));
diff --git a/stdlib/tst-canon-bz26341.c b/stdlib/tst-canon-bz26341.c
index 2d950d3..bd0f575 100644
--- a/stdlib/tst-canon-bz26341.c
+++ b/stdlib/tst-canon-bz26341.c
@@ -1,5 +1,5 @@
/* Check if realpath does not consume extra stack space based on symlink
- existance in the path (BZ #26341)
+ existence in the path (BZ #26341)
Copyright (C) 2021-2023 Free Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/stdlib/tst-random.c b/stdlib/tst-random.c
index 794d12a..516beec 100644
--- a/stdlib/tst-random.c
+++ b/stdlib/tst-random.c
@@ -7,14 +7,14 @@
is regenerated twice and checked against the stored values.
First they are regenerated one sequence at a time, using srandom()
- to set the initial state. A discrepency here would suggest that
+ to set the initial state. A discrepancy here would suggest that
srandom() was failing to completely initialize the random number
generator.
Second the sequences are regenerated in an interleaved order.
A state vector is created for each sequence using initstate().
setstate() is used to switch from sequence to sequence during
- the interleaved generation. A discrepency here would suggest
+ the interleaved generation. A discrepancy here would suggest
a problem with either initstate() failing to initialize the
random number generator properly, or the failure of setstate()
to correctly save and restore state information. Also, each
@@ -54,7 +54,7 @@ do_test (void)
int s; /* sequence index */
int i; /* element index */
- printf ("Begining random package test using %d sequences of length %d.\n",
+ printf ("Beginning random package test using %d sequences of length %d.\n",
nseq, nrnd);
/* 1. Generate and store the sequences. */
diff --git a/stdlib/tst-setcontext.c b/stdlib/tst-setcontext.c
index 9294472..d65f3b9 100644
--- a/stdlib/tst-setcontext.c
+++ b/stdlib/tst-setcontext.c
@@ -111,7 +111,7 @@ test_stack (volatile int a, volatile int b,
if (e != 5)
{
- printf ("%s: getcontext clobbers varible e\n", __FUNCTION__);
+ printf ("%s: getcontext clobbers variable e\n", __FUNCTION__);
exit (1);
}