diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-05-23 10:50:31 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2023-05-23 11:59:23 +0000 |
commit | d13733c166b71ac05056f553f0afdc8a363b2820 (patch) | |
tree | d3404db5f0dda5e2bc994a0108806a74d0d144d6 | |
parent | 1e9d5987fd94b88bdf4ebfb9f13d4a472d529cdd (diff) | |
download | glibc-d13733c166b71ac05056f553f0afdc8a363b2820.tar.gz glibc-d13733c166b71ac05056f553f0afdc8a363b2820.tar.xz glibc-d13733c166b71ac05056f553f0afdc8a363b2820.zip |
Fix misspellings in sysdeps/unix -- BZ 25337
Applying this commit results in bit-identical rebuild of libc.so.6 math/libm.so.6 elf/ld-linux-x86-64.so.2 mathvec/libmvec.so.1 Reviewed-by: Florian Weimer <fweimer@redhat.com>
69 files changed, 87 insertions, 87 deletions
diff --git a/sysdeps/unix/sysv/linux/aarch64/ucontext-internal.h b/sysdeps/unix/sysv/linux/aarch64/ucontext-internal.h index 1c2357a021..473f3621a7 100644 --- a/sysdeps/unix/sysv/linux/aarch64/ucontext-internal.h +++ b/sysdeps/unix/sysv/linux/aarch64/ucontext-internal.h @@ -20,7 +20,7 @@ #define SP_ALIGN_MASK ~15 -/* Size of an X regiser in bytes. */ +/* Size of an X register in bytes. */ #define SZREG 8 /* Size of a V register in bytes. */ diff --git a/sysdeps/unix/sysv/linux/alpha/getcontext.S b/sysdeps/unix/sysv/linux/alpha/getcontext.S index 3ce7f8fa87..0bfe25a8af 100644 --- a/sysdeps/unix/sysv/linux/alpha/getcontext.S +++ b/sysdeps/unix/sysv/linux/alpha/getcontext.S @@ -44,7 +44,7 @@ weak_alias (__getcontext, getcontext) /* An internal routine used by getcontext and setcontext. - The incomming return address register is $0. */ + The incoming return address register is $0. */ .align 4 .globl __getcontext_x diff --git a/sysdeps/unix/sysv/linux/alpha/ioperm.c b/sysdeps/unix/sysv/linux/alpha/ioperm.c index b026cc8261..6fac2bb516 100644 --- a/sysdeps/unix/sysv/linux/alpha/ioperm.c +++ b/sysdeps/unix/sysv/linux/alpha/ioperm.c @@ -95,7 +95,7 @@ asm(".arch ev56"); #define TSUNAMI_DENSE_MEM (0x80000000000UL) /* Polaris has SPARSE space, but we prefer to use only DENSE - because of some idiosyncracies in actually using SPARSE. */ + because of some idiosyncrasies in actually using SPARSE. */ #define POLARIS_IO_BASE (0xf9fc000000UL) #define POLARIS_DENSE_MEM (0xf900000000UL) diff --git a/sysdeps/unix/sysv/linux/arc/bits/procfs.h b/sysdeps/unix/sysv/linux/arc/bits/procfs.h index 35cdc5621c..1ec0b1cd59 100644 --- a/sysdeps/unix/sysv/linux/arc/bits/procfs.h +++ b/sysdeps/unix/sysv/linux/arc/bits/procfs.h @@ -31,5 +31,5 @@ typedef unsigned long int elf_greg_t; typedef unsigned long int elf_gregset_t[ELF_NGREG]; -/* There's no seperate floating point reg file in ARCv2. */ +/* There's no separate floating point reg file in ARCv2. */ typedef struct { } elf_fpregset_t; diff --git a/sysdeps/unix/sysv/linux/arc/clone.S b/sysdeps/unix/sysv/linux/arc/clone.S index 0029aaeb81..d8c7b93d1c 100644 --- a/sysdeps/unix/sysv/linux/arc/clone.S +++ b/sysdeps/unix/sysv/linux/arc/clone.S @@ -43,7 +43,7 @@ ENTRY (__clone) bz L (__sys_err) /* save some of the orig args - r0 containg @fn will be clobbered AFTER syscall (with ret val) + r0 containing @fn will be clobbered AFTER syscall (with ret val) rest are clobbered BEFORE syscall due to different arg ordering. */ mov r10, r0 /* @fn. */ mov r11, r3 /* @args. */ diff --git a/sysdeps/unix/sysv/linux/arc/sysdep.h b/sysdeps/unix/sysv/linux/arc/sysdep.h index 88dc1dff01..7f90d64124 100644 --- a/sysdeps/unix/sysv/linux/arc/sysdep.h +++ b/sysdeps/unix/sysv/linux/arc/sysdep.h @@ -182,11 +182,11 @@ hidden_proto (__syscall_error) __ret = (long int) (arg1); \ LOAD_ARGS_0 (nm, arg1) -/* Note that the use of _tmpX might look superflous, however it is needed +/* Note that the use of _tmpX might look superfluous, however it is needed to ensure that register variables are not clobbered if arg happens to be a function call itself. e.g. sched_setaffinity() calling getpid() for arg2 Also this specific order of recursive calling is important to segregate - the tmp args evaluation (function call case described above) and assigment + the tmp args evaluation (function call case described above) and assignment of register variables. */ # define LOAD_ARGS_2(nm, arg1, arg2) \ diff --git a/sysdeps/unix/sysv/linux/arch-fork.h b/sysdeps/unix/sysv/linux/arch-fork.h index 84e5ef5a7f..0e0eccbf38 100644 --- a/sysdeps/unix/sysv/linux/arch-fork.h +++ b/sysdeps/unix/sysv/linux/arch-fork.h @@ -28,7 +28,7 @@ to store the child thread ID at its locationm, to erase it in child memory when the child exits, and do a wakeup on the futex at that address. - The architecture with non-default kernel abi semantic should correctlly + The architecture with non-default kernel abi semantic should correctly override it with one of the supported calling convention (check generic kernel-features.h for the clone abi variants). */ static inline pid_t diff --git a/sysdeps/unix/sysv/linux/bits/local_lim.h b/sysdeps/unix/sysv/linux/bits/local_lim.h index 54eb959ee2..978515dc37 100644 --- a/sysdeps/unix/sysv/linux/bits/local_lim.h +++ b/sysdeps/unix/sysv/linux/bits/local_lim.h @@ -73,7 +73,7 @@ /* We have no predefined limit on the number of threads. */ #undef PTHREAD_THREADS_MAX -/* Maximum amount by which a process can descrease its asynchronous I/O +/* Maximum amount by which a process can decrease its asynchronous I/O priority level. */ #define AIO_PRIO_DELTA_MAX 20 diff --git a/sysdeps/unix/sysv/linux/bits/mman-linux.h b/sysdeps/unix/sysv/linux/bits/mman-linux.h index 6771f07a0f..f654b4f824 100644 --- a/sysdeps/unix/sysv/linux/bits/mman-linux.h +++ b/sysdeps/unix/sysv/linux/bits/mman-linux.h @@ -78,7 +78,7 @@ # define MADV_UNMERGEABLE 13 /* KSM may not merge identical pages. */ # define MADV_HUGEPAGE 14 /* Worth backing with hugepages. */ # define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages. */ -# define MADV_DONTDUMP 16 /* Explicity exclude from the core dump, +# define MADV_DONTDUMP 16 /* Explicitly exclude from the core dump, overrides the coredump filter bits. */ # define MADV_DODUMP 17 /* Clear the MADV_DONTDUMP flag. */ # define MADV_WIPEONFORK 18 /* Zero memory on fork, child only. */ diff --git a/sysdeps/unix/sysv/linux/bits/posix_opt.h b/sysdeps/unix/sysv/linux/bits/posix_opt.h index 87d0f13596..8e3c8fac5d 100644 --- a/sysdeps/unix/sysv/linux/bits/posix_opt.h +++ b/sysdeps/unix/sysv/linux/bits/posix_opt.h @@ -84,7 +84,7 @@ /* We support user-defined stacks. */ #define _POSIX_THREAD_ATTR_STACKADDR 200809L -/* We support priority inheritence. */ +/* We support priority inheritance. */ #define _POSIX_THREAD_PRIO_INHERIT 200809L /* We support priority protection, though only for non-robust @@ -92,7 +92,7 @@ #define _POSIX_THREAD_PRIO_PROTECT 200809L #ifdef __USE_XOPEN2K8 -/* We support priority inheritence for robust mutexes. */ +/* We support priority inheritance for robust mutexes. */ # define _POSIX_THREAD_ROBUST_PRIO_INHERIT 200809L /* We do not support priority protection for robust mutexes. */ diff --git a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h index f8a6bac680..49f7744739 100644 --- a/sysdeps/unix/sysv/linux/bits/siginfo-consts.h +++ b/sysdeps/unix/sysv/linux/bits/siginfo-consts.h @@ -143,7 +143,7 @@ enum { BUS_ADRALN = 1, /* Invalid address alignment. */ # define BUS_ADRALN BUS_ADRALN - BUS_ADRERR, /* Non-existant physical address. */ + BUS_ADRERR, /* Non-existent physical address. */ # define BUS_ADRERR BUS_ADRERR BUS_OBJERR, /* Object specific hardware error. */ # define BUS_OBJERR BUS_OBJERR diff --git a/sysdeps/unix/sysv/linux/bits/termios-tcflow.h b/sysdeps/unix/sysv/linux/bits/termios-tcflow.h index b6d136cefe..e39057913e 100644 --- a/sysdeps/unix/sysv/linux/bits/termios-tcflow.h +++ b/sysdeps/unix/sysv/linux/bits/termios-tcflow.h @@ -1,4 +1,4 @@ -/* termios tcflag symbolic contants definitions. Linux/generic version. +/* termios tcflag symbolic constant definitions. Linux/generic version. Copyright (C) 2019-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. diff --git a/sysdeps/unix/sysv/linux/dl-diagnostics-kernel.c b/sysdeps/unix/sysv/linux/dl-diagnostics-kernel.c index e758fe7f8d..e0cfa63da6 100644 --- a/sysdeps/unix/sysv/linux/dl-diagnostics-kernel.c +++ b/sysdeps/unix/sysv/linux/dl-diagnostics-kernel.c @@ -36,7 +36,7 @@ print_auxv (void) || av->a_type == AT_PLATFORM || av->a_type == AT_BASE_PLATFORM) /* The address of the strings is not useful at all, so print - the strings themselvs. */ + the strings themselves. */ _dl_diagnostics_print_string ((const char *) av->a_un.a_val); else _dl_printf ("0x%lx", (unsigned long int) av->a_un.a_val); diff --git a/sysdeps/unix/sysv/linux/dl-vdso-setup.c b/sysdeps/unix/sysv/linux/dl-vdso-setup.c index 68fa8de641..97eaaeac37 100644 --- a/sysdeps/unix/sysv/linux/dl-vdso-setup.c +++ b/sysdeps/unix/sysv/linux/dl-vdso-setup.c @@ -20,7 +20,7 @@ and shared (rtld) modes: 1. PROCINFO_DECL is defined, meaning we are only interested in - declarations. For static it requires use the extern keywork along with + declarations. For static it requires use the extern keyword along with the attribute_relro while for shared it will be embedded in the rtld_global_ro. diff --git a/sysdeps/unix/sysv/linux/glibcsyscalls.py b/sysdeps/unix/sysv/linux/glibcsyscalls.py index 0785c2f465..c8e5a6ffca 100644 --- a/sysdeps/unix/sysv/linux/glibcsyscalls.py +++ b/sysdeps/unix/sysv/linux/glibcsyscalls.py @@ -32,7 +32,7 @@ def extract_system_call_name(macro): else: raise ValueError('invalid system call name: {!r}'.format(macro)) -# Matches macros for systme call names. +# Matches macros for system call names. RE_SYSCALL = re.compile('__NR_.*') # Some __NR_ constants are not real @@ -54,7 +54,7 @@ def kernel_constants(cc): return {extract_system_call_name(name) : int(value) for name, value in glibcextract.compute_macro_consts( '#include <asm/unistd.h>\n' - # Regularlize the kernel definitions if necessary. + # Regularize the kernel definitions if necessary. '#include <fixup-asm-unistd.h>', cc, macro_re=RE_SYSCALL, exclude_re=RE_PSEUDO_SYSCALL) .items()} diff --git a/sysdeps/unix/sysv/linux/hppa/clone.S b/sysdeps/unix/sysv/linux/hppa/clone.S index 4a64e0da7e..3de36885a9 100644 --- a/sysdeps/unix/sysv/linux/hppa/clone.S +++ b/sysdeps/unix/sysv/linux/hppa/clone.S @@ -51,7 +51,7 @@ Return: - On success the thread ID of the child process is returend in + On success the thread ID of the child process is returned in the callers context. On error return -1, and set errno to the value returned by the syscall. diff --git a/sysdeps/unix/sysv/linux/hppa/sysdep.h b/sysdeps/unix/sysv/linux/hppa/sysdep.h index ba5937cc17..c0c4ffe00d 100644 --- a/sysdeps/unix/sysv/linux/hppa/sysdep.h +++ b/sysdeps/unix/sysv/linux/hppa/sysdep.h @@ -53,7 +53,7 @@ #define LOAD_PIC(LREG) \ copy LREG , %r19 /* Inline assembly defines */ -#define TREG_ASM "%r4" /* Cant clobber r3, it holds framemarker */ +#define TREG_ASM "%r4" /* Can't clobber r3, it holds framemarker */ #define SAVE_ASM_PIC " copy %%r19, %" TREG_ASM "\n" #define LOAD_ASM_PIC " copy %" TREG_ASM ", %%r19\n" #define CLOB_TREG TREG_ASM , @@ -134,7 +134,7 @@ /* SAVE_RP says we do */ ASM_LINE_SEP \ stw %rp, -20(%sr0,%sp) ASM_LINE_SEP \ .cfi_offset 2, -20 ASM_LINE_SEP \ - /*FIXME: Call mcount? (carefull with stack!) */ + /*FIXME: Call mcount? (careful with stack!) */ /* Some syscall wrappers do not call other functions, and hence are classified as leaf, so add NO_CALLS for gdb */ @@ -151,7 +151,7 @@ /* SAVE_RP says we do */ ASM_LINE_SEP \ stw %rp, -20(%sr0,%sp) ASM_LINE_SEP \ .cfi_offset 2, -20 ASM_LINE_SEP \ - /*FIXME: Call mcount? (carefull with stack!) */ + /*FIXME: Call mcount? (careful with stack!) */ #undef END #define END(name) \ diff --git a/sysdeps/unix/sysv/linux/i386/brk.c b/sysdeps/unix/sysv/linux/i386/brk.c index fb5130e947..afc2b696e4 100644 --- a/sysdeps/unix/sysv/linux/i386/brk.c +++ b/sysdeps/unix/sysv/linux/i386/brk.c @@ -17,7 +17,7 @@ <https://www.gnu.org/licenses/>. */ #if BUILD_PIE_DEFAULT -/* Can't use "call *%gs:SYSINFO_OFFSET" during statup in static PIE. */ +/* Can't use "call *%gs:SYSINFO_OFFSET" during startup in static PIE. */ # define I386_USE_SYSENTER 0 #endif diff --git a/sysdeps/unix/sysv/linux/i386/sysdep.h b/sysdeps/unix/sysv/linux/i386/sysdep.h index 8538cd5342..87de7d640f 100644 --- a/sysdeps/unix/sysv/linux/i386/sysdep.h +++ b/sysdeps/unix/sysv/linux/i386/sysdep.h @@ -61,7 +61,7 @@ might return a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in %eax is a real error number. Linus said he will make sure the no syscall - returns a value in -1 .. -4095 as a valid result so we can savely + returns a value in -1 .. -4095 as a valid result so we can safely test with -4095. */ /* We don't want the label for the error handle to be global when we define diff --git a/sysdeps/unix/sysv/linux/ia64/clone2.S b/sysdeps/unix/sysv/linux/ia64/clone2.S index bf60725a34..c869715f18 100644 --- a/sysdeps/unix/sysv/linux/ia64/clone2.S +++ b/sysdeps/unix/sysv/linux/ia64/clone2.S @@ -86,6 +86,6 @@ libc_hidden_def (__clone2) /* For now we leave __clone undefined. This is unlikely to be a */ /* problem, since at least the i386 __clone in glibc always failed */ -/* with a 0 sp (eventhough the kernel explicitly handled it). */ +/* with a 0 sp (even though the kernel explicitly handled it). */ /* Thus all such calls needed to pass an explicit sp, and as a result, */ /* would be unlikely to work on ia64. */ diff --git a/sysdeps/unix/sysv/linux/ia64/sys/rse.h b/sysdeps/unix/sysv/linux/ia64/sys/rse.h index b3677a1df6..3c6399d2ed 100644 --- a/sysdeps/unix/sysv/linux/ia64/sys/rse.h +++ b/sysdeps/unix/sysv/linux/ia64/sys/rse.h @@ -48,7 +48,7 @@ ia64_rse_rnat_addr (unsigned long *slot_addr) return (unsigned long *) ((unsigned long) slot_addr | (0x3f << 3)); } -/* Calcuate the number of registers in the dirty partition starting at +/* Calculate the number of registers in the dirty partition starting at BSPSTORE with a size of DIRTY bytes. This isn't simply DIRTY divided by eight because the 64th slot is used to store ar.rnat. */ diff --git a/sysdeps/unix/sysv/linux/ia64/sysdep.h b/sysdeps/unix/sysv/linux/ia64/sysdep.h index c245813b68..1d556945c1 100644 --- a/sysdeps/unix/sysv/linux/ia64/sysdep.h +++ b/sysdeps/unix/sysv/linux/ia64/sysdep.h @@ -86,7 +86,7 @@ a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in %d0 is a real error number. Linus said he will make sure the no syscall returns a value - in -1 .. -4095 as a valid result so we can savely test with -4095. */ + in -1 .. -4095 as a valid result so we can safely test with -4095. */ /* We don't want the label for the error handler to be visible in the symbol table when we define it here. */ diff --git a/sysdeps/unix/sysv/linux/kernel-posix-timers.h b/sysdeps/unix/sysv/linux/kernel-posix-timers.h index c5a86250c3..9d86bb1dab 100644 --- a/sysdeps/unix/sysv/linux/kernel-posix-timers.h +++ b/sysdeps/unix/sysv/linux/kernel-posix-timers.h @@ -68,7 +68,7 @@ struct timer /* For !SIGEV_THREAD, the resulting 'timer_t' is the returned kernel timer - identifer (kernel_timer_t), while for SIGEV_THREAD it uses the fact malloc + identifier (kernel_timer_t), while for SIGEV_THREAD it uses the fact malloc returns at least _Alignof (max_align_t) pointers plus that valid kernel_timer_t are always positive to set the MSB bit of the returned 'timer_t' to indicate the timer handles a SIGEV_THREAD. */ diff --git a/sysdeps/unix/sysv/linux/loongarch/atomic-machine.h b/sysdeps/unix/sysv/linux/loongarch/atomic-machine.h index 6e4cc52dd7..037e128861 100644 --- a/sysdeps/unix/sysv/linux/loongarch/atomic-machine.h +++ b/sysdeps/unix/sysv/linux/loongarch/atomic-machine.h @@ -26,7 +26,7 @@ #define ATOMIC_EXCHANGE_USES_CAS 0 /* Compare and exchange. - For all "bool" routines, we return FALSE if exchange succesful. */ + For all "bool" routines, we return FALSE if exchange successful. */ #define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ ({ \ diff --git a/sysdeps/unix/sysv/linux/loongarch/sysdep.h b/sysdeps/unix/sysv/linux/loongarch/sysdep.h index 8a2d73ec8c..e11cd865ce 100644 --- a/sysdeps/unix/sysv/linux/loongarch/sysdep.h +++ b/sysdeps/unix/sysv/linux/loongarch/sysdep.h @@ -83,7 +83,7 @@ #undef ret_NOERRNO #define ret_NOERRNO ret -/* Perfroms a system call, returning the error code. */ +/* Performs a system call, returning the error code. */ #undef PSEUDO_ERRVAL #define PSEUDO_ERRVAL(name, syscall_name, args) \ PSEUDO_NOERRNO (name, syscall_name, args); \ diff --git a/sysdeps/unix/sysv/linux/m68k/sysdep.h b/sysdeps/unix/sysv/linux/m68k/sysdep.h index 39592036ce..037b049958 100644 --- a/sysdeps/unix/sysv/linux/m68k/sysdep.h +++ b/sysdeps/unix/sysv/linux/m68k/sysdep.h @@ -38,7 +38,7 @@ a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in %d0 is a real error number. Linus said he will make sure the no syscall returns a value - in -1 .. -4095 as a valid result so we can savely test with -4095. */ + in -1 .. -4095 as a valid result so we can safely test with -4095. */ /* We don't want the label for the error handler to be visible in the symbol table when we define it here. */ diff --git a/sysdeps/unix/sysv/linux/microblaze/sysdep.h b/sysdeps/unix/sysv/linux/microblaze/sysdep.h index 53a4cad38f..afc77b0063 100644 --- a/sysdeps/unix/sysv/linux/microblaze/sysdep.h +++ b/sysdeps/unix/sysv/linux/microblaze/sysdep.h @@ -43,7 +43,7 @@ #ifdef __ASSEMBLER__ /* In microblaze ABI function call arguments are passed in registers - r5...r10. The return value is stored in r3 (or r3:r4 regiters pair). + r5...r10. The return value is stored in r3 (or r3:r4 register pair). Linux syscall uses the same convention with the addition that the syscall number is passed in r12. To enter the kernel "brki r14,8" instruction is used. @@ -58,7 +58,7 @@ a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in %d0 is a real error number. Linus said he will make sure the no syscall returns a value - in -1 .. -4095 as a valid result so we can savely test with -4095. */ + in -1 .. -4095 as a valid result so we can safely test with -4095. */ /* We don't want the label for the error handler to be visible in the symbol table when we define it here. */ diff --git a/sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c b/sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c index 92740830e3..a85a50f77a 100644 --- a/sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c +++ b/sysdeps/unix/sysv/linux/mips/mips32/bug-getcontext-mips-gp.c @@ -1,4 +1,4 @@ -/* Tests register values retreived by getcontext() for mips o32. +/* Tests register values retrieved by getcontext() for mips o32. Copyright (C) 2017-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. diff --git a/sysdeps/unix/sysv/linux/mq_notify.c b/sysdeps/unix/sysv/linux/mq_notify.c index 907585551f..c287954a90 100644 --- a/sysdeps/unix/sysv/linux/mq_notify.c +++ b/sysdeps/unix/sysv/linux/mq_notify.c @@ -32,9 +32,9 @@ /* Defined in the kernel headers: */ #define NOTIFY_COOKIE_LEN 32 /* Length of the cookie used. */ -#define NOTIFY_WOKENUP 1 /* Code for notifcation. */ +#define NOTIFY_WOKENUP 1 /* Code for notification. */ #define NOTIFY_REMOVED 2 /* Code for closed message queue - of de-notifcation. */ + of de-notification. */ /* Data structure for the queued notification requests. */ @@ -61,7 +61,7 @@ static int netlink_socket = -1; /* Barrier used to make sure data passed to the new thread is not - resused by the parent. */ + reused by the parent. */ static pthread_barrier_t notify_barrier; diff --git a/sysdeps/unix/sysv/linux/net/if_shaper.h b/sysdeps/unix/sysv/linux/net/if_shaper.h index f218474822..60f50b908c 100644 --- a/sysdeps/unix/sysv/linux/net/if_shaper.h +++ b/sysdeps/unix/sysv/linux/net/if_shaper.h @@ -27,7 +27,7 @@ __BEGIN_DECLS #define SHAPER_QLEN 10 /* - * This is a bit speed dependant (read it shouldnt be a constant!) + * This is a bit speed dependent (read it shouldn't be a constant!) * * 5 is about right for 28.8 upwards. Below that double for every * halving of speed or so. - ie about 20 for 9600 baud. diff --git a/sysdeps/unix/sysv/linux/netax25/ax25.h b/sysdeps/unix/sysv/linux/netax25/ax25.h index e18ff8d223..1001a7359b 100644 --- a/sysdeps/unix/sysv/linux/netax25/ax25.h +++ b/sysdeps/unix/sysv/linux/netax25/ax25.h @@ -62,7 +62,7 @@ #define AX25_DIGI_INBAND 0x01 /* Allow digipeating within port */ #define AX25_DIGI_XBAND 0x02 /* Allow digipeating across ports */ -/* Maximim number of digipeaters: */ +/* Maximum number of digipeaters: */ #define AX25_MAX_DIGIS 8 @@ -80,7 +80,7 @@ struct sockaddr_ax25 }; /* - * The sockaddr struct with the digipeater adresses: + * The sockaddr struct with the digipeater addresses: */ struct full_sockaddr_ax25 { diff --git a/sysdeps/unix/sysv/linux/netlink_assert_response.c b/sysdeps/unix/sysv/linux/netlink_assert_response.c index 00abddac88..9f0d624859 100644 --- a/sysdeps/unix/sysv/linux/netlink_assert_response.c +++ b/sysdeps/unix/sysv/linux/netlink_assert_response.c @@ -83,7 +83,7 @@ __netlink_assert_response (int fd, ssize_t result) __libc_fatal (message); } else - /* Restore orignal errno value. */ + /* Restore original errno value. */ __set_errno (error_code); } else if (result < sizeof (struct nlmsghdr)) diff --git a/sysdeps/unix/sysv/linux/nios2/setcontext.S b/sysdeps/unix/sysv/linux/nios2/setcontext.S index 2233488ee7..16570ab896 100644 --- a/sysdeps/unix/sysv/linux/nios2/setcontext.S +++ b/sysdeps/unix/sysv/linux/nios2/setcontext.S @@ -93,7 +93,7 @@ weak_alias (__setcontext, setcontext) If this NOP word does not exist, FDE lookup just repeatedly finds __setcontext's FDE in an infinite loop, due to the convention of - using 'address - 1' for FDE lookup. Modifiying/deleting the below + using 'address - 1' for FDE lookup. Modifying/deleting the below __startcontext's FDE has no help on this. */ nop diff --git a/sysdeps/unix/sysv/linux/nscd_setup_thread.c b/sysdeps/unix/sysv/linux/nscd_setup_thread.c index 7810104461..cf1a56e005 100644 --- a/sysdeps/unix/sysv/linux/nscd_setup_thread.c +++ b/sysdeps/unix/sysv/linux/nscd_setup_thread.c @@ -1,4 +1,4 @@ -/* Setup of nscd worker threads. Linux verison. +/* Setup of nscd worker threads. Linux version. Copyright (C) 2004-2023 Free Software Foundation, Inc. This file is part of the GNU C Library. diff --git a/sysdeps/unix/sysv/linux/or1k/setcontext.S b/sysdeps/unix/sysv/linux/or1k/setcontext.S index fb6a42bc03..ce54246c57 100644 --- a/sysdeps/unix/sysv/linux/or1k/setcontext.S +++ b/sysdeps/unix/sysv/linux/or1k/setcontext.S @@ -80,7 +80,7 @@ weak_alias (__setcontext, setcontext) makecontext we have set r9 to the start of &__startcontext. If this NOP did not exist the unwinder would repeatedly find - __setcontext's FDE in an infinite loop. Modifiying/deleting the below + __setcontext's FDE in an infinite loop. Modifying/deleting the below __startcontext's FDE has no help on this. */ l.nop diff --git a/sysdeps/unix/sysv/linux/pathconf.c b/sysdeps/unix/sysv/linux/pathconf.c index aa576558b0..eeccbb6089 100644 --- a/sysdeps/unix/sysv/linux/pathconf.c +++ b/sysdeps/unix/sysv/linux/pathconf.c @@ -139,7 +139,7 @@ __statfs_link_max (int result, const struct statfs *fsbuf, const char *file, /* Not possible, return the default value. */ return LINUX_LINK_MAX; - /* Some error occured. */ + /* Some error occurred. */ return -1; } @@ -202,7 +202,7 @@ __statfs_filesize_max (int result, const struct statfs *fsbuf) /* Not possible, return the default value. */ return 32; - /* Some error occured. */ + /* Some error occurred. */ return -1; } @@ -251,7 +251,7 @@ __statfs_symlinks (int result, const struct statfs *fsbuf) /* Not possible, return the default value. */ return 1; - /* Some error occured. */ + /* Some error occurred. */ return -1; } @@ -286,7 +286,7 @@ __statfs_chown_restricted (int result, const struct statfs *fsbuf) /* Not possible, return the default value. */ return 1; - /* Some error occured. */ + /* Some error occurred. */ return -1; } diff --git a/sysdeps/unix/sysv/linux/personality.c b/sysdeps/unix/sysv/linux/personality.c index 5db07259e3..9620e0caff 100644 --- a/sysdeps/unix/sysv/linux/personality.c +++ b/sysdeps/unix/sysv/linux/personality.c @@ -28,7 +28,7 @@ __personality (unsigned long persona) task_struct->pesonality is "unsigned int". Starting with kernel commit v2.6.35-rc1-372-g485d527, the personality syscall accepts "unsigned int" instead of "long unsigned int". - Inbetween, a personality argument that does not fit into "unsigned int" + In between, a personality argument that does not fit into "unsigned int" would result to system call returning -EINVAL. We explicitly truncate the personality argument to "unsigned int" to eliminate the uncertainty. */ diff --git a/sysdeps/unix/sysv/linux/posix_fadvise.c b/sysdeps/unix/sysv/linux/posix_fadvise.c index d096acc0d6..717c3f62d0 100644 --- a/sysdeps/unix/sysv/linux/posix_fadvise.c +++ b/sysdeps/unix/sysv/linux/posix_fadvise.c @@ -29,7 +29,7 @@ Second option will be used by arm which define __NR_arm_fadvise64_64 (redefined to __NR_fadvise64_64 in kernel-features.h) that behaves as - __NR_fadvise64_64 (without the aligment argument required for the ABI). + __NR_fadvise64_64 (without the alignment argument required for the ABI). Third option will be used by mips o32. Mips will use a 7 argument syscall with __NR_fadvise64. diff --git a/sysdeps/unix/sysv/linux/powerpc/elision-conf.c b/sysdeps/unix/sysv/linux/powerpc/elision-conf.c index 7c98dbd0d0..61eaf89868 100644 --- a/sysdeps/unix/sysv/linux/powerpc/elision-conf.c +++ b/sysdeps/unix/sysv/linux/powerpc/elision-conf.c @@ -53,7 +53,7 @@ static inline void __always_inline do_set_elision_enable (int32_t elision_enable) { - /* Enable elision if it's avaliable in hardware. It's not necessary to check + /* Enable elision if it's available in hardware. It's not necessary to check if __libc_enable_secure isn't enabled since elision_enable will be set according to the default, which is disabled. */ if (elision_enable == 1) @@ -126,7 +126,7 @@ __lll_elision_init (void) syscalls which makes the glibc workaround superflours. Worse, glibc transaction abortions leads to a performance issues on recent kernels. - So Lock Elision is just enabled when it has been explict set (either + So Lock Elision is just enabled when it has been explicitly set (either by tunables of by a configure switch) and if kernel aborts HTM transactions on syscalls (PPC_FEATURE2_HTM_NOSC) */ diff --git a/sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c b/sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c index 754e94b26d..af6eb34435 100644 --- a/sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c +++ b/sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c @@ -57,7 +57,7 @@ get_timebase_freq_fallback (void) the last 512 bytes of cpuinfo, so two 512 byte half_bufs will be sufficient to contain the timebase and will handle the case where the timebase spans the half_buf - boundry. */ + boundary. */ const ssize_t half_buf = sizeof (buf) / 2; while (n >= half_buf) { diff --git a/sysdeps/unix/sysv/linux/riscv/atomic-machine.h b/sysdeps/unix/sysv/linux/riscv/atomic-machine.h index dbf70d8d57..50ddc3bfaf 100644 --- a/sysdeps/unix/sysv/linux/riscv/atomic-machine.h +++ b/sysdeps/unix/sysv/linux/riscv/atomic-machine.h @@ -28,7 +28,7 @@ # define ATOMIC_EXCHANGE_USES_CAS 0 /* Compare and exchange. - For all "bool" routines, we return FALSE if exchange succesful. */ + For all "bool" routines, we return FALSE if exchange successful. */ # define __arch_compare_and_exchange_bool_8_int(mem, newval, oldval, model) \ ({ \ diff --git a/sysdeps/unix/sysv/linux/riscv/sysdep.h b/sysdeps/unix/sysv/linux/riscv/sysdep.h index 4af5fe5dbc..872c093cfa 100644 --- a/sysdeps/unix/sysv/linux/riscv/sysdep.h +++ b/sysdeps/unix/sysv/linux/riscv/sysdep.h @@ -121,7 +121,7 @@ # undef ret_NOERRNO # define ret_NOERRNO ret -/* Perfroms a system call, returning the error code. */ +/* Performs a system call, returning the error code. */ # undef PSEUDO_ERRVAL # define PSEUDO_ERRVAL(name, syscall_name, args) \ PSEUDO_NOERRNO (name, syscall_name, args) \ diff --git a/sysdeps/unix/sysv/linux/s390/elision-conf.c b/sysdeps/unix/sysv/linux/s390/elision-conf.c index 6a6d6814ee..37c50f1705 100644 --- a/sysdeps/unix/sysv/linux/s390/elision-conf.c +++ b/sysdeps/unix/sysv/linux/s390/elision-conf.c @@ -53,7 +53,7 @@ static inline void __always_inline do_set_elision_enable (int32_t elision_enable) { - /* Enable elision if it's avaliable in hardware. It's not necessary to check + /* Enable elision if it's available in hardware. It's not necessary to check if __libc_enable_secure isn't enabled since elision_enable will be set according to the default, which is disabled. */ if (elision_enable == 1) diff --git a/sysdeps/unix/sysv/linux/s390/htm.h b/sysdeps/unix/sysv/linux/s390/htm.h index b8b62bae12..440fe083bc 100644 --- a/sysdeps/unix/sysv/linux/s390/htm.h +++ b/sysdeps/unix/sysv/linux/s390/htm.h @@ -121,7 +121,7 @@ pointer access) are filtered and the \ transaction will abort. In this case \ the normal lock path will execute it \ - again and result in a core dump wich does \ + again and result in a core dump which does \ now show at tbegin but the real executed \ instruction. \ However it is not guaranteed that this \ @@ -131,7 +131,7 @@ memory for being accessible! */ \ "2: tbegin 0, 0xFF0E\n\t" \ /* Branch away in abort case (this is the \ - prefered sequence. See PoP in chapter 5 \ + preferred sequence. See PoP in chapter 5 \ Transactional-Execution Facility \ Operation). */ \ " jnz 0f\n\t" \ diff --git a/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h b/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h index 08f9e9cd9f..26d1a7c6d8 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h +++ b/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h @@ -42,7 +42,7 @@ a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in gpr2 is a real error number. Linus said he will make sure that no syscall returns a value - in -1 .. -4095 as a valid result so we can savely test with -4095. */ + in -1 .. -4095 as a valid result so we can safely test with -4095. */ #undef PSEUDO #define PSEUDO(name, syscall_name, args) \ diff --git a/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h b/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h index d5986d36f2..7230e97448 100644 --- a/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h +++ b/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h @@ -46,7 +46,7 @@ a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in gpr2 is a real error number. Linus said he will make sure that no syscall returns a value - in -1 .. -4095 as a valid result so we can savely test with -4095. */ + in -1 .. -4095 as a valid result so we can safely test with -4095. */ #undef PSEUDO #define PSEUDO(name, syscall_name, args) \ diff --git a/sysdeps/unix/sysv/linux/s390/sysconf.c b/sysdeps/unix/sysv/linux/s390/sysconf.c index 45bd8bf4a1..f474a966f9 100644 --- a/sysdeps/unix/sysv/linux/s390/sysconf.c +++ b/sysdeps/unix/sysv/linux/s390/sysconf.c @@ -24,7 +24,7 @@ static long int linux_sysconf (int name); /* Possible arguments for get_cache_info. The values are reflecting the level/attribute/type indications - of ecag-instruction (extract cpu attribue). */ + of ecag-instruction (extract cpu attribute). */ #define CACHE_LEVEL_MAX 8 #define CACHE_ATTR_LINESIZE 1 #define CACHE_ATTR_SIZE 2 diff --git a/sysdeps/unix/sysv/linux/scsi/sg.h b/sysdeps/unix/sysv/linux/scsi/sg.h index 6defc97ef7..bb3daac7fa 100644 --- a/sysdeps/unix/sysv/linux/scsi/sg.h +++ b/sysdeps/unix/sysv/linux/scsi/sg.h @@ -119,7 +119,7 @@ struct sg_scsi_id { /* Used by SG_GET_REQUEST_TABLE ioctl(). */ typedef struct sg_req_info { char req_state; /* 0 -> not used, 1 -> written, 2 -> ready to read */ - char orphan; /* 0 -> normal request, 1 -> from interruped SG_IO */ + char orphan; /* 0 -> normal request, 1 -> from interrupted SG_IO */ char sg_io_owned; /* 0 -> complete with read(), 1 -> owned by SG_IO */ char problem; /* 0 -> no problem detected, 1 -> error to report */ int pack_id; /* pack_id associated with request */ diff --git a/sysdeps/unix/sysv/linux/semop.c b/sysdeps/unix/sysv/linux/semop.c index e04ce3e2d1..82b9c8729e 100644 --- a/sysdeps/unix/sysv/linux/semop.c +++ b/sysdeps/unix/sysv/linux/semop.c @@ -20,7 +20,7 @@ #include <ipc_priv.h> #include <sysdep.h> -/* Perform user-defined atomical operation of array of semaphores. */ +/* Perform user-defined atomic operation of array of semaphores. */ int semop (int semid, struct sembuf *sops, size_t nsops) diff --git a/sysdeps/unix/sysv/linux/semtimedop.c b/sysdeps/unix/sysv/linux/semtimedop.c index c0bb3c3f06..4cff1f982a 100644 --- a/sysdeps/unix/sysv/linux/semtimedop.c +++ b/sysdeps/unix/sysv/linux/semtimedop.c @@ -34,7 +34,7 @@ semtimedop_syscall (int semid, struct sembuf *sops, size_t nsops, #endif } -/* Perform user-defined atomical operation of array of semaphores. */ +/* Perform user-defined atomic operation of array of semaphores. */ int __semtimedop64 (int semid, struct sembuf *sops, size_t nsops, const struct __timespec64 *timeout) diff --git a/sysdeps/unix/sysv/linux/sh/sys/user.h b/sysdeps/unix/sysv/linux/sh/sys/user.h index c917aba020..5a5c05bcfc 100644 --- a/sysdeps/unix/sysv/linux/sh/sys/user.h +++ b/sysdeps/unix/sysv/linux/sh/sys/user.h @@ -21,7 +21,7 @@ #include <asm/ptrace.h> #include <stddef.h> -/* asm/ptrace.h polutes the namespace. */ +/* asm/ptrace.h pollutes the namespace. */ #undef PTRACE_GETREGS #undef PTRACE_SETREGS #undef PTRACE_GETFPREGS diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.h b/sysdeps/unix/sysv/linux/sh/sysdep.h index 34282acdb6..73df0a52ea 100644 --- a/sysdeps/unix/sysv/linux/sh/sysdep.h +++ b/sysdeps/unix/sysv/linux/sh/sysdep.h @@ -41,7 +41,7 @@ might return a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in R0 is a real error number. Linus said he will make sure the no syscall - returns a value in -1 .. -4095 as a valid result so we can savely + returns a value in -1 .. -4095 as a valid result so we can safely test with -4095. */ #define _IMM1 #-1 diff --git a/sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S b/sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S index 6dda892482..7e0c20d2ed 100644 --- a/sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S +++ b/sysdeps/unix/sysv/linux/sparc/sparc32/setcontext.S @@ -102,7 +102,7 @@ weak_alias (__setcontext, setcontext) If this NOP word does not exist, FDE lookup just repeatedly finds __setcontext's FDE in an infinite loop, due to the convention of using - 'address - 1' for FDE lookup. Modifiying/deleting the below + 'address - 1' for FDE lookup. Modifying/deleting the below __startcontext's FDE has no help on this. */ nop diff --git a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h index 7815d13136..bcbc9013b7 100644 --- a/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h +++ b/sysdeps/unix/sysv/linux/sparc/sys/ptrace.h @@ -24,7 +24,7 @@ #include <bits/wordsize.h> /* Linux/SPARC kernels up to 2.3.18 do not care much - about what namespace polution, so use a kludge now. */ + about what namespace pollution, so use a kludge now. */ #undef PTRACE_GETREGS #undef PTRACE_SETREGS #undef PTRACE_GETFPREGS diff --git a/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h b/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h index 58a03e6ea7..5e2fa122a8 100644 --- a/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h +++ b/sysdeps/unix/sysv/linux/sparc/sys/ucontext.h @@ -164,7 +164,7 @@ typedef greg_t gregset_t[__NGREG]; * The following structures define how a register window can appear on the * stack. This structure is available (when required) through the `gwins' * field of an mcontext (nested within ucontext). SPARC_MAXWINDOW is the - * maximum number of outstanding regiters window defined in the SPARC + * maximum number of outstanding registers window defined in the SPARC * architecture (*not* implementation). */ # define __SPARC_MAXREGWINDOW 31 /* max windows in SPARC arch. */ @@ -200,7 +200,7 @@ typedef struct /* * struct fq defines the minimal format of a floating point instruction queue * entry. The size of entries in the floating point queue are implementation - * dependent. The union FQu is guarenteed to be the first field in any ABI + * dependent. The union FQu is guaranteed to be the first field in any ABI * conformant system implementation. Any additional fields provided by an * implementation should not be used applications designed to be ABI conformant. */ diff --git a/sysdeps/unix/sysv/linux/spawni.c b/sysdeps/unix/sysv/linux/spawni.c index bc321d4c58..ec687cb423 100644 --- a/sysdeps/unix/sysv/linux/spawni.c +++ b/sysdeps/unix/sysv/linux/spawni.c @@ -203,7 +203,7 @@ __spawni_child (void *arguments) { /* POSIX states that if fildes was already an open file descriptor, it shall be closed before the new file is opened. This avoid - pontential issues when posix_spawn plus addopen action is called + potential issues when posix_spawn plus addopen action is called with the process already at maximum number of file descriptor opened and also for multiple actions on single-open special paths (like /dev/watchdog). */ @@ -325,7 +325,7 @@ __spawnix (pid_t * pid, const char *file, ptrdiff_t argc = 0; /* Linux allows at most max (0x7FFFFFFF, 1/4 stack size) arguments to be used in a execve call. We limit to INT_MAX minus one due the - compatiblity code that may execute a shell script (maybe_script_execute) + compatibility code that may execute a shell script (maybe_script_execute) where it will construct another argument list with an additional argument. */ ptrdiff_t limit = INT_MAX - 1; diff --git a/sysdeps/unix/sysv/linux/test-errno-linux.c b/sysdeps/unix/sysv/linux/test-errno-linux.c index bece8ae3c6..1ee158ed43 100644 --- a/sysdeps/unix/sysv/linux/test-errno-linux.c +++ b/sysdeps/unix/sysv/linux/test-errno-linux.c @@ -70,7 +70,7 @@ Some tests assume "/bin/sh" names a file that exists and is not a directory. */ -/* Evalutes to the arguments in a list initializer which can be used +/* Evaluates to the arguments in a list initializer which can be used as a single macro argument. */ #define LIST(...) { __VA_ARGS__ } diff --git a/sysdeps/unix/sysv/linux/tst-fallocate-common.c b/sysdeps/unix/sysv/linux/tst-fallocate-common.c index 01258a5f78..6eb4e5cf1c 100644 --- a/sysdeps/unix/sysv/linux/tst-fallocate-common.c +++ b/sysdeps/unix/sysv/linux/tst-fallocate-common.c @@ -89,7 +89,7 @@ do_test_with_offset (off_t offset) FAIL_EXIT1 ("fail trying to read " XSTR (BLK_SIZE) " bytes"); if (memcmp (bwrite, bread, BLK_SIZE) != 0) - FAIL_EXIT1 ("buffer written different than buffer readed"); + FAIL_EXIT1 ("buffer written different from buffer read"); return 0; } diff --git a/sysdeps/unix/sysv/linux/tst-o_path-locks.c b/sysdeps/unix/sysv/linux/tst-o_path-locks.c index 16fdb6b119..0036868dfd 100644 --- a/sysdeps/unix/sysv/linux/tst-o_path-locks.c +++ b/sysdeps/unix/sysv/linux/tst-o_path-locks.c @@ -55,7 +55,7 @@ probe_lock (void) *shared_errno = -1; support_isolate_in_subprocess (subprocess, NULL); if (*shared_errno == 0) - /* Lock was aquired by the subprocess, so this process has not + /* Lock was acquired by the subprocess, so this process has not locked it. */ return false; else diff --git a/sysdeps/unix/sysv/linux/tst-ofdlocks.c b/sysdeps/unix/sysv/linux/tst-ofdlocks.c index 997487924c..70a2991edb 100644 --- a/sysdeps/unix/sysv/linux/tst-ofdlocks.c +++ b/sysdeps/unix/sysv/linux/tst-ofdlocks.c @@ -60,7 +60,7 @@ do_test (void) int fd = open64 (temp_filename, O_RDWR, 0666); TEST_VERIFY_EXIT (fd != -1); - /* It tries then to allocate another open file descriptior with a valid + /* It tries then to allocate another open file descriptor with a valid non-LFS bits struct flock but which will result in a conflicted region which can not be represented in a non-LFS struct flock. */ struct flock lck = { diff --git a/sysdeps/unix/sysv/linux/tst-process_mrelease.c b/sysdeps/unix/sysv/linux/tst-process_mrelease.c index 95a50cb68d..d1460ef30e 100644 --- a/sysdeps/unix/sysv/linux/tst-process_mrelease.c +++ b/sysdeps/unix/sysv/linux/tst-process_mrelease.c @@ -61,7 +61,7 @@ do_test (void) int pidfd = pidfd_open (pid, 0); TEST_VERIFY (pidfd != -1); - /* The syscall only succeedes if the target process is exiting and there + /* The syscall only succeeds if the target process is exiting and there is no guarantee that calling if after pidfd_send_signal will not error (ince the process might have already been reaped by the OS). So just check if it does fail when the process is stll running. */ diff --git a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c index c0610203d5..fe68c6d73b 100644 --- a/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c +++ b/sysdeps/unix/sysv/linux/tst-skeleton-affinity.c @@ -18,7 +18,7 @@ /* This file is included by the tst-affinity*.c files to test the two variants of the functions, under different conditions. The - following functions have to be definied: + following functions have to be defined: static int getaffinity (size_t, cpu_set_t *); static int setaffinity (size_t, const cpu_set_t *); diff --git a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c index aa170d05ea..0fe8780cba 100644 --- a/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c +++ b/sysdeps/unix/sysv/linux/tst-socket-timestamp-compat.c @@ -77,7 +77,7 @@ static void do_test_large_buffer (bool mc) { struct mmsghdr mmhdr = { 0 }; - /* It should be large enought for either timeval/timespec and the + /* It should be large enough for either timeval/timespec and the 64 time type as well. */ union @@ -142,7 +142,7 @@ do_test_large_buffer (bool mc) /* Check if recvmsg does not create the additional 64 bit timestamp if only 32 bit timestamp is enabled if the ancillary buffer is not large - enought. Also checks if MSG_CTRUNC is set iff for 64 bit recvmsg + enough. Also checks if MSG_CTRUNC is set iff for 64 bit recvmsg symbol. */ static void do_test_small_buffer (bool mc) diff --git a/sysdeps/unix/sysv/linux/tst-socket-timestamp.c b/sysdeps/unix/sysv/linux/tst-socket-timestamp.c index d1abc8d141..5ad7a0d481 100644 --- a/sysdeps/unix/sysv/linux/tst-socket-timestamp.c +++ b/sysdeps/unix/sysv/linux/tst-socket-timestamp.c @@ -284,7 +284,7 @@ do_test_multiple_ancillary (void) TEST_VERIFY_EXIT (r != -1); } - /* Enougth data for default SO_TIMESTAMP, the IP_RECVORIGDSTADDR, and the + /* Enough data for default SO_TIMESTAMP, the IP_RECVORIGDSTADDR, and the extra 64-bit SO_TIMESTAMP. */ enum { msgbuflen = CMSG_SPACE (2 * sizeof (uint64_t)) + CMSG_SPACE (sizeof (struct sockaddr_in)) diff --git a/sysdeps/unix/sysv/linux/tst-sysvmsg-linux.c b/sysdeps/unix/sysv/linux/tst-sysvmsg-linux.c index 97101f2c8e..f18464e3f5 100644 --- a/sysdeps/unix/sysv/linux/tst-sysvmsg-linux.c +++ b/sysdeps/unix/sysv/linux/tst-sysvmsg-linux.c @@ -55,7 +55,7 @@ struct test_msginfo int msgmni; }; -/* It tries to obtain some system-wide SysV messsage queue information from +/* It tries to obtain some system-wide SysV message queue information from /proc to check against IPC_INFO/MSG_INFO. The /proc only returns the tunables value of MSGMAX, MSGMNB, and MSGMNI. diff --git a/sysdeps/unix/sysv/linux/tst-tgkill.c b/sysdeps/unix/sysv/linux/tst-tgkill.c index c86a88ddad..315bf0079d 100644 --- a/sysdeps/unix/sysv/linux/tst-tgkill.c +++ b/sysdeps/unix/sysv/linux/tst-tgkill.c @@ -66,7 +66,7 @@ subprocess (void *closure) { int original_tid = expected_signal_tid; - /* Do not expect that the folloing signals are delivered to the + /* Do not expect that the following signals are delivered to the subprocess. The parent process retains the original expected_signal_tid value. */ expected_signal_tid = 0; @@ -77,7 +77,7 @@ subprocess (void *closure) TEST_COMPARE (expected_signal_tid, 0); /* This call has the correct PID/TID combination and is therefore - expected to suceed. */ + expected to succeed. */ TEST_COMPARE (tgkill (getppid (), original_tid, SIGUSR1), 0); } diff --git a/sysdeps/unix/sysv/linux/tst-ttyname.c b/sysdeps/unix/sysv/linux/tst-ttyname.c index cd953657b8..ef55665fbe 100644 --- a/sysdeps/unix/sysv/linux/tst-ttyname.c +++ b/sysdeps/unix/sysv/linux/tst-ttyname.c @@ -508,7 +508,7 @@ run_chroot_tests (const char *slavename, int slave) char *linkname = xasprintf ("/proc/self/fd/%d", slave); char *target = proc_fd_readlink (linkname); free (linkname); - /* Depeding on how we set up the chroot, the kernel may or may not + /* Depending on how we set up the chroot, the kernel may or may not trim the leading path to the target (it may give us "/6", instead of "/dev/pts/6"). We test it both ways (do_in_chroot_1 and do_in_chroot_2). This test group relies on the target diff --git a/sysdeps/unix/sysv/linux/x86/elision-conf.c b/sysdeps/unix/sysv/linux/x86/elision-conf.c index cfd9a71e31..19f95550ce 100644 --- a/sysdeps/unix/sysv/linux/x86/elision-conf.c +++ b/sysdeps/unix/sysv/linux/x86/elision-conf.c @@ -49,7 +49,7 @@ struct elision_config __elision_aconf = static __always_inline void do_set_elision_enable (int32_t elision_enable) { - /* Enable elision if it's avaliable in hardware. It's not necessary to check + /* Enable elision if it's available in hardware. It's not necessary to check if __libc_enable_secure isn't enabled since elision_enable will be set according to the default, which is disabled. */ if (elision_enable == 1) diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h index cfb51be8c5..c350ee157a 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h +++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h @@ -43,7 +43,7 @@ might return a large offset. Therefore we must not anymore test for < 0, but test for a real error by making sure the value in %eax is a real error number. Linus said he will make sure the no syscall - returns a value in -1 .. -4095 as a valid result so we can savely + returns a value in -1 .. -4095 as a valid result so we can safely test with -4095. */ /* We don't want the label for the error handle to be global when we define |