Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src fix various typos in comments, documentation and messages.
details: https://anonhg.NetBSD.org/src/rev/ac2376f5b81d
branches: trunk
changeset: 366578:ac2376f5b81d
user: andvar <andvar%NetBSD.org@localhost>
date: Tue May 31 08:43:13 2022 +0000
description:
fix various typos in comments, documentation and messages.
diffstat:
bin/sh/memalloc.c | 6 +++---
lib/libc/gen/pthread_atfork.c | 6 +++---
lib/libc/stdlib/bsearch.c | 6 +++---
lib/librt/pset.3 | 4 ++--
libexec/ld.elf_so/arch/aarch64/mdreloc.c | 6 +++---
sbin/iscsid/iscsid_lists.c | 4 ++--
share/man/man9/LWP_CACHE_CREDS.9 | 4 ++--
sys/arch/amiga/dev/if_esreg.h | 4 ++--
sys/arch/ia64/include/cpu.h | 4 ++--
sys/arch/mips/mips/mipsX_subr.S | 6 +++---
sys/arch/powerpc/booke/e500_tlb.c | 6 +++---
sys/arch/powerpc/ibm4xx/4xx_locore.S | 4 ++--
sys/arch/sun3/sun3x/pmap.c | 6 +++---
sys/dev/ata/ata.c | 6 +++---
sys/dev/ic/arcofi.c | 4 ++--
sys/dev/ic/dm9000reg.h | 4 ++--
sys/dev/ic/mpt_debug.c | 8 ++++----
sys/dev/ic/wdc.c | 6 +++---
sys/dev/isa/sbreg.h | 4 ++--
sys/dev/microcode/aic7xxx/aic79xx.reg | 4 ++--
sys/dev/pci/ahcisata_pci.c | 6 +++---
sys/dev/pci/cmpci.c | 6 +++---
sys/dev/pci/if_age.c | 6 +++---
sys/dev/pckbport/synaptics.c | 6 +++---
sys/dev/ppbus/ppbus_msq.c | 6 +++---
sys/kern/kern_hook.c | 6 +++---
sys/kern/subr_blist.c | 6 +++---
sys/kern/subr_vmem.c | 6 +++---
sys/netinet/ip_reass.c | 6 +++---
sys/netinet/sctp_output.c | 6 +++---
sys/uvm/uvm_aobj.c | 6 +++---
tests/dev/audio/audiotest.c | 6 +++---
usr.bin/nbsvtool/nbsvtool.c | 4 ++--
usr.bin/sed/defs.h | 4 ++--
34 files changed, 91 insertions(+), 91 deletions(-)
diffs (truncated from 812 to 300 lines):
diff -r 476a709db44f -r ac2376f5b81d bin/sh/memalloc.c
--- a/bin/sh/memalloc.c Tue May 31 07:40:25 2022 +0000
+++ b/bin/sh/memalloc.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: memalloc.c,v 1.36 2022/04/10 09:50:44 andvar Exp $ */
+/* $NetBSD: memalloc.c,v 1.37 2022/05/31 08:43:13 andvar Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)memalloc.c 8.3 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: memalloc.c,v 1.36 2022/04/10 09:50:44 andvar Exp $");
+__RCSID("$NetBSD: memalloc.c,v 1.37 2022/05/31 08:43:13 andvar Exp $");
#endif
#endif /* not lint */
@@ -325,7 +325,7 @@
* of the string we have stored beyond there and are now releasing.
* (ie: "p" should be the same as in the call to grabstackstr()).
*
- * stunalloc(s) and ungrabstackstr(s, p) are almost interchangable after
+ * stunalloc(s) and ungrabstackstr(s, p) are almost interchangeable after
* a grabstackstr(), however the latter also returns string space so we
* can just continue with STPUTC() etc without needing a new STARTSTACKSTR(s)
*/
diff -r 476a709db44f -r ac2376f5b81d lib/libc/gen/pthread_atfork.c
--- a/lib/libc/gen/pthread_atfork.c Tue May 31 07:40:25 2022 +0000
+++ b/lib/libc/gen/pthread_atfork.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_atfork.c,v 1.15 2020/05/15 14:37:21 joerg Exp $ */
+/* $NetBSD: pthread_atfork.c,v 1.16 2022/05/31 08:43:13 andvar Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: pthread_atfork.c,v 1.15 2020/05/15 14:37:21 joerg Exp $");
+__RCSID("$NetBSD: pthread_atfork.c,v 1.16 2022/05/31 08:43:13 andvar Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -202,7 +202,7 @@
* a locked mutex in this context.
*
* The problem exists for users of this interface,
- * too, since the intented use of pthread_atfork() is
+ * too, since the intended use of pthread_atfork() is
* to acquire locks across the fork call to ensure
* that the child sees consistent state. There's not
* much that can usefully be done in a child handler,
diff -r 476a709db44f -r ac2376f5b81d lib/libc/stdlib/bsearch.c
--- a/lib/libc/stdlib/bsearch.c Tue May 31 07:40:25 2022 +0000
+++ b/lib/libc/stdlib/bsearch.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bsearch.c,v 1.15 2012/03/04 20:01:45 christos Exp $ */
+/* $NetBSD: bsearch.c,v 1.16 2022/05/31 08:43:14 andvar Exp $ */
/*
* Copyright (c) 1990, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)bsearch.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: bsearch.c,v 1.15 2012/03/04 20:01:45 christos Exp $");
+__RCSID("$NetBSD: bsearch.c,v 1.16 2022/05/31 08:43:14 andvar Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -50,7 +50,7 @@
* is odd, moving left simply involves halving lim: e.g., when lim
* is 5 we look at item 2, so we change lim to 2 so that we will
* look at items 0 & 1. If lim is even, the same applies. If lim
- * is odd, moving right again involes halving lim, this time moving
+ * is odd, moving right again involves halving lim, this time moving
* the base up one item past p: e.g., when lim is 5 we change base
* to item 3 and make lim 2 so that we will look at items 3 and 4.
* If lim is even, however, we have to shrink it by one before
diff -r 476a709db44f -r ac2376f5b81d lib/librt/pset.3
--- a/lib/librt/pset.3 Tue May 31 07:40:25 2022 +0000
+++ b/lib/librt/pset.3 Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: pset.3,v 1.13 2017/07/03 21:32:51 wiz Exp $
+.\" $NetBSD: pset.3,v 1.14 2022/05/31 08:43:14 andvar Exp $
.\"
.\" Copyright (c) 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -113,7 +113,7 @@
.It Dv P_PID
Process identified by the PID.
.It Dv P_LWPID
-Thread of the calling process indentified by the LID.
+Thread of the calling process identified by the LID.
.El
.Pp
The following actions can be specified:
diff -r 476a709db44f -r ac2376f5b81d libexec/ld.elf_so/arch/aarch64/mdreloc.c
--- a/libexec/ld.elf_so/arch/aarch64/mdreloc.c Tue May 31 07:40:25 2022 +0000
+++ b/libexec/ld.elf_so/arch/aarch64/mdreloc.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mdreloc.c,v 1.14 2020/06/16 21:01:30 joerg Exp $ */
+/* $NetBSD: mdreloc.c,v 1.15 2022/05/31 08:43:14 andvar Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -60,7 +60,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: mdreloc.c,v 1.14 2020/06/16 21:01:30 joerg Exp $");
+__RCSID("$NetBSD: mdreloc.c,v 1.15 2022/05/31 08:43:14 andvar Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -158,7 +158,7 @@
offs += rela->r_addend;
if (defobj->tls_done) {
- /* Variable is in initialy allocated TLS segment */
+ /* Variable is in initially allocated TLS segment */
where[0] = (Elf_Addr)_rtld_tlsdesc_static;
where[1] = defobj->tlsoffset + offs +
sizeof(struct tls_tcb);
diff -r 476a709db44f -r ac2376f5b81d sbin/iscsid/iscsid_lists.c
--- a/sbin/iscsid/iscsid_lists.c Tue May 31 07:40:25 2022 +0000
+++ b/sbin/iscsid/iscsid_lists.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsid_lists.c,v 1.9 2016/05/29 13:35:45 mlelstv Exp $ */
+/* $NetBSD: iscsid_lists.c,v 1.10 2022/05/31 08:43:14 andvar Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -692,7 +692,7 @@
/* ------------------------------------------------------------------------- */
/*
- * find_initator_by_addr:
+ * find_initiator_by_addr:
* Find an Initiator Portal by Address.
*
* Parameter: the address
diff -r 476a709db44f -r ac2376f5b81d share/man/man9/LWP_CACHE_CREDS.9
--- a/share/man/man9/LWP_CACHE_CREDS.9 Tue May 31 07:40:25 2022 +0000
+++ b/share/man/man9/LWP_CACHE_CREDS.9 Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-.\" $NetBSD: LWP_CACHE_CREDS.9,v 1.2 2007/12/09 08:53:57 yamt Exp $
+.\" $NetBSD: LWP_CACHE_CREDS.9,v 1.3 2022/05/31 08:43:14 andvar Exp $
.\"
.\" Copyright (c)2007 YAMAMOTO Takashi,
.\" All rights reserved.
@@ -54,7 +54,7 @@
is called by MD entry code for system call and various traps.
LWPs which can live in kernel for long period should call
.Fn LWP_CACHE_CREDS
-by itsself to refresh its credential.
+by itself to refresh its credential.
.Pp
.Fn LWP_CACHE_CREDS
takes the following arguments.
diff -r 476a709db44f -r ac2376f5b81d sys/arch/amiga/dev/if_esreg.h
--- a/sys/arch/amiga/dev/if_esreg.h Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/amiga/dev/if_esreg.h Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_esreg.h,v 1.7 2009/10/21 23:53:38 snj Exp $ */
+/* $NetBSD: if_esreg.h,v 1.8 2022/05/31 08:43:14 andvar Exp $ */
/*
* Copyright (c) 1995 Michael L. Hitch
@@ -117,7 +117,7 @@
/* MMU Command Register */
#define MMUCR_NOOP 0x0000 /* No operation */
#define MMUCR_ALLOC 0x2000 /* Allocate memory for TX */
-#define MMUCR_RESET 0x4000 /* Reset to intitial state */
+#define MMUCR_RESET 0x4000 /* Reset to initial state */
#define MMUCR_REM_RX 0x6000 /* Remove frame from top of RX FIFO */
#define MMUCR_REMRLS_RX 0x8000 /* Remove & release from top of RX FIFO */
#define MMUCR_RLSPKT 0xa000 /* Release specific packet */
diff -r 476a709db44f -r ac2376f5b81d sys/arch/ia64/include/cpu.h
--- a/sys/arch/ia64/include/cpu.h Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/ia64/include/cpu.h Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.20 2019/12/01 15:34:44 ad Exp $ */
+/* $NetBSD: cpu.h,v 1.21 2022/05/31 08:43:14 andvar Exp $ */
/*-
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -103,7 +103,7 @@
*/
cpuid_t ci_cpuid; /* our CPU ID */
uint32_t ci_acpiid; /* our ACPI/MADT ID */
- uint32_t ci_initapicid; /* our intitial APIC ID */
+ uint32_t ci_initapicid; /* our initial APIC ID */
struct pmap *ci_pmap; /* current pmap */ /* XXX FreeBSD has *pcb_current_pmap in pcb ? */
struct lwp *ci_fpcurlwp; /* current owner of the FPU */
paddr_t ci_curpcb; /* PA of current HW PCB */
diff -r 476a709db44f -r ac2376f5b81d sys/arch/mips/mips/mipsX_subr.S
--- a/sys/arch/mips/mips/mipsX_subr.S Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/mips/mips/mipsX_subr.S Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mipsX_subr.S,v 1.114 2022/03/13 17:50:55 andvar Exp $ */
+/* $NetBSD: mipsX_subr.S,v 1.115 2022/05/31 08:43:14 andvar Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@@ -117,7 +117,7 @@
*/
#include <mips/asm.h>
-RCSID("$NetBSD: mipsX_subr.S,v 1.114 2022/03/13 17:50:55 andvar Exp $")
+RCSID("$NetBSD: mipsX_subr.S,v 1.115 2022/05/31 08:43:14 andvar Exp $")
#include "opt_cputype.h"
#include "opt_ddb.h"
@@ -370,7 +370,7 @@
*
* Loongson2 processors don't have separate tlbmiss and xtlbmiss handlers;
* so we have to check for useg addresses in tlb_miss. The good news is that
- * we can use 64 intructions from tlbmiss instead of 32.
+ * we can use 64 instructions from tlbmiss instead of 32.
*
*----------------------------------------------------------------------------
*/
diff -r 476a709db44f -r ac2376f5b81d sys/arch/powerpc/booke/e500_tlb.c
--- a/sys/arch/powerpc/booke/e500_tlb.c Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/powerpc/booke/e500_tlb.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: e500_tlb.c,v 1.23 2020/07/07 00:59:29 rin Exp $ */
+/* $NetBSD: e500_tlb.c,v 1.24 2022/05/31 08:43:15 andvar Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -37,7 +37,7 @@
#define __PMAP_PRIVATE
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: e500_tlb.c,v 1.23 2020/07/07 00:59:29 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: e500_tlb.c,v 1.24 2022/05/31 08:43:15 andvar Exp $");
#ifdef _KERNEL_OPT
#include "opt_multiprocessor.h"
@@ -851,7 +851,7 @@
if (slots > tlb1->tlb1_numfree - 1)
panic("%s: %d: can't map memory (%#lx) into TLB1: %s",
__func__, __LINE__, memsize,
- "insufficent TLB entries");
+ "insufficient TLB entries");
for (; nextslot < slots; nextslot++) {
const u_int freeslot = e500_alloc_tlb1_entry();
struct e500_xtlb * const xtlb =
diff -r 476a709db44f -r ac2376f5b81d sys/arch/powerpc/ibm4xx/4xx_locore.S
--- a/sys/arch/powerpc/ibm4xx/4xx_locore.S Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/powerpc/ibm4xx/4xx_locore.S Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: 4xx_locore.S,v 1.7 2007/03/04 06:00:34 christos Exp $ */
+/* $NetBSD: 4xx_locore.S,v 1.8 2022/05/31 08:43:15 andvar Exp $ */
/*
* Copyright 2001 Wasabi Systems, Inc.
@@ -67,7 +67,7 @@
*/
/*
- * This is not a standalone file. To use it, #inlcude it at
+ * This is not a standalone file. To use it, #include it at
* the end of your port's locore.S
*/
diff -r 476a709db44f -r ac2376f5b81d sys/arch/sun3/sun3x/pmap.c
--- a/sys/arch/sun3/sun3x/pmap.c Tue May 31 07:40:25 2022 +0000
+++ b/sys/arch/sun3/sun3x/pmap.c Tue May 31 08:43:13 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.120 2022/05/04 07:48:34 andvar Exp $ */
+/* $NetBSD: pmap.c,v 1.121 2022/05/31 08:43:15 andvar Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -105,7 +105,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.120 2022/05/04 07:48:34 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.121 2022/05/31 08:43:15 andvar Exp $");
#include "opt_ddb.h"
#include "opt_pmap_debug.h"
@@ -2256,7 +2256,7 @@
* and therefore do not need to map the page just to apply a protection
* code. Only pmap_enter() needs to create new mappings if they do not exist.
*
- * XXX - This function could be speeded up by using pmap_stroll() for inital
+ * XXX - This function could be speeded up by using pmap_stroll() for initial
* setup, and then manual scrolling in the for() loop.
*/
void
diff -r 476a709db44f -r ac2376f5b81d sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Tue May 31 07:40:25 2022 +0000
+++ b/sys/dev/ata/ata.c Tue May 31 08:43:13 2022 +0000
Home |
Main Index |
Thread Index |
Old Index