aboutsummaryrefslogtreecommitdiff
path: root/include
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 /include
parent5013f6fc6c44160e8ec6bcd34ba676e85d9d6ab6 (diff)
downloadglibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.zip
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.gz
glibc-7f0d9e61f40c669fca3cfd1e342fa8236c7220b7.tar.bz2
Fix all the remaining misspellings -- BZ 25337
Diffstat (limited to 'include')
-rw-r--r--include/alloc_buffer.h2
-rw-r--r--include/arpa/nameser.h2
-rw-r--r--include/file_change_detection.h2
-rw-r--r--include/libc-pointer-arith.h2
-rw-r--r--include/libc-symbols.h6
-rw-r--r--include/printf_buffer.h2
-rw-r--r--include/sys/socket.h4
7 files changed, 10 insertions, 10 deletions
diff --git a/include/alloc_buffer.h b/include/alloc_buffer.h
index 748a5f0..5dcd009 100644
--- a/include/alloc_buffer.h
+++ b/include/alloc_buffer.h
@@ -304,7 +304,7 @@ __alloc_buffer_next (struct alloc_buffer *buf, size_t align)
}
/* Like alloc_buffer_alloc, but do not advance the pointer beyond the
- object (so a subseqent call to alloc_buffer_next or
+ object (so a subsequent call to alloc_buffer_next or
alloc_buffer_alloc returns the same pointer). Note that the buffer
is still aligned according to the requirements of TYPE, potentially
consuming buffer space. The effect of this function is similar to
diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h
index 0ef5ab4..70c634a 100644
--- a/include/arpa/nameser.h
+++ b/include/arpa/nameser.h
@@ -126,7 +126,7 @@ ns_rr_cursor_qtype (const struct ns_rr_cursor *c)
return c->first_rr[-4] * 256 + c->first_rr[-3];
}
-/* Returns the clss of the first and only question (usally C_IN). */
+/* Returns the clss of the first and only question (usually C_IN). */
static inline const int
ns_rr_cursor_qclass (const struct ns_rr_cursor *c)
{
diff --git a/include/file_change_detection.h b/include/file_change_detection.h
index 241b45d..c9b86b7 100644
--- a/include/file_change_detection.h
+++ b/include/file_change_detection.h
@@ -55,7 +55,7 @@ bool __file_change_detection_for_path (struct file_change_detection *file,
const char *path);
/* Writes file change information for the stream FP to *FILE. Returns
- ture on success, false on failure. If FP is NULL, treat the file
+ true on success, false on failure. If FP is NULL, treat the file
as non-existing. */
bool __file_change_detection_for_fp (struct file_change_detection *file,
FILE *fp);
diff --git a/include/libc-pointer-arith.h b/include/libc-pointer-arith.h
index 1faf020..aa57e59 100644
--- a/include/libc-pointer-arith.h
+++ b/include/libc-pointer-arith.h
@@ -64,7 +64,7 @@
#define PTR_IS_ALIGNED(base, size) \
((((uintptr_t) (base)) & (size - 1)) == 0)
-/* Returns the ptrdiff_t diference between P1 and P2. */
+/* Returns the ptrdiff_t difference between P1 and P2. */
#define PTR_DIFF(p1, p2) \
((ptrdiff_t)((uintptr_t)(p1) - (uintptr_t)(p2)))
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index 37c91bb..5794614 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -338,7 +338,7 @@ for linking")
_set_symbol_version (real, #name "@@" #version)
# endif
-/* Evalutes to a string literal for VERSION in LIB. */
+/* Evaluates to a string literal for VERSION in LIB. */
# define symbol_version_string(lib, version) \
_symbol_version_stringify_1 (VERSION_##lib##_##version)
# define _symbol_version_stringify_1(arg) _symbol_version_stringify_2 (arg)
@@ -712,7 +712,7 @@ for linking")
If you have an implementation for foo which e.g. uses a special hardware
feature which isn't available on all machines where this libc.so will be
- used but decideable if available at runtime e.g. via hwcaps, you can provide
+ used but decidable if available at runtime e.g. via hwcaps, you can provide
two or multiple implementations of foo:
int __foo_default (int __bar)
@@ -765,7 +765,7 @@ for linking")
: __foo_default);
This will define the ifunc'ed symbol foo like above. The redirection of foo
- in header file is needed to omit an additional defintion of __GI_foo which
+ in header file is needed to omit an additional definition of __GI_foo which
would end in a linker error while linking libc.so. You have to specify
__redirect_foo as first parameter which is used within libc_ifunc_redirected
macro in conjunction with typeof to define the ifunc'ed symbol foo.
diff --git a/include/printf_buffer.h b/include/printf_buffer.h
index 4d787e4..21f3882 100644
--- a/include/printf_buffer.h
+++ b/include/printf_buffer.h
@@ -156,7 +156,7 @@ void __printf_buffer_pad_1 (struct __printf_buffer *buf,
char ch, size_t count) attribute_hidden;
/* __printf_buffer_pad with fast path for no padding. COUNT is
- ssize_t to accomodate signed uses in printf and elsewhere. */
+ ssize_t to accommodate signed uses in printf and elsewhere. */
static inline void
__printf_buffer_pad (struct __printf_buffer *buf, char ch, ssize_t count)
{
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 6e4cf50..b9fbc49 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -44,7 +44,7 @@ extern ssize_t __libc_sendto (int __fd, const void *__buf, size_t __n,
socklen_t __addr_len);
/* Read N bytes into BUF through socket FD.
- If ADDR is not NULL, fill in *ADDR_LEN bytes of it with tha address of
+ If ADDR is not NULL, fill in *ADDR_LEN bytes of it with the address of
the sender, and store the actual size of the address in *ADDR_LEN.
Returns the number of bytes read or -1 for errors. */
extern ssize_t __libc_recvfrom (int __fd, void *__restrict __buf, size_t __n,
@@ -78,7 +78,7 @@ extern ssize_t __sendto (int __fd, const void *__buf, size_t __n,
socklen_t __addr_len) attribute_hidden;
/* Read N bytes into BUF through socket FD.
- If ADDR is not NULL, fill in *ADDR_LEN bytes of it with tha address of
+ If ADDR is not NULL, fill in *ADDR_LEN bytes of it with the address of
the sender, and store the actual size of the address in *ADDR_LEN.
Returns the number of bytes read or -1 for errors. */
extern ssize_t __recvfrom (int __fd, void *__restrict __buf, size_t __n,