Tue Dec 7 21:37:37 2021 UTC ()
fix various typos, mainly in comments.
(andvar)
diff -r1.325 -r1.326 src/UPDATING
diff -r1.119 -r1.120 src/sys/arch/aarch64/aarch64/pmap.c
diff -r1.5 -r1.6 src/sys/arch/m68k/fpsp/res_func.sa
diff -r1.7 -r1.8 src/sys/dev/acpi/vald_acpi.c
diff -r1.1 -r1.2 src/sys/dev/nand/hamming.c
diff -r1.10 -r1.11 src/sys/ufs/chfs/chfs.h
diff -r1.6 -r1.7 src/sys/ufs/chfs/chfs_malloc.c
diff -r1.6 -r1.7 src/sys/ufs/chfs/chfs_write.c
diff -r1.4 -r1.5 src/sys/ufs/chfs/chfs_nodeops.c
diff -r1.46 -r1.47 src/sys/ufs/chfs/chfs_vnops.c
diff -r1.8 -r1.9 src/sys/ufs/chfs/ebh.c
diff -r1.28 -r1.29 src/usr.bin/mail/list.c
--- src/UPDATING 2021/11/22 12:30:34 1.325
+++ src/UPDATING 2021/12/07 21:37:36 1.326
@@ -1,4 +1,4 @@
-$NetBSD: UPDATING,v 1.325 2021/11/22 12:30:34 martin Exp $
+$NetBSD: UPDATING,v 1.326 2021/12/07 21:37:36 andvar Exp $
This file (UPDATING) is intended to be a brief reference to recent
changes that might cause problems in the build process, and a guide for
@@ -192,7 +192,7 @@
20190723:
The jemalloc allocator in libc is now build without extended
debugging (for performance reasons). In update builds make sure
- to rebuild it completly, by removing all affected object files,
+ to rebuild it completely, by removing all affected object files,
including compat builds, something like:
cd /usr/obj && find . -type d -name jemalloc|xargs rm -rf
--- src/sys/arch/aarch64/aarch64/pmap.c 2021/10/23 06:49:46 1.119
+++ src/sys/arch/aarch64/aarch64/pmap.c 2021/12/07 21:37:36 1.120
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.119 2021/10/23 06:49:46 skrll Exp $ */
+/* $NetBSD: pmap.c,v 1.120 2021/12/07 21:37:36 andvar Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo@nerv.org>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.119 2021/10/23 06:49:46 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.120 2021/12/07 21:37:36 andvar Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -179,7 +179,7 @@
/*
* require access permission in pte to invalidate instruction cache.
- * change the pte to accessible temporarly before cpu_icache_sync_range().
+ * change the pte to be accessible temporarily before cpu_icache_sync_range().
* this macro modifies PTE (*ptep). need to update PTE after this.
*/
#define PTE_ICACHE_SYNC_PAGE(pte, ptep, asid, va, ll) \
--- src/sys/arch/m68k/fpsp/res_func.sa 2001/09/16 16:34:32 1.5
+++ src/sys/arch/m68k/fpsp/res_func.sa 2021/12/07 21:37:36 1.6
@@ -1,4 +1,4 @@
-* $NetBSD: res_func.sa,v 1.5 2001/09/16 16:34:32 wiz Exp $
+* $NetBSD: res_func.sa,v 1.6 2021/12/07 21:37:36 andvar Exp $
* MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
* M68000 Hi-Performance Microprocessor Division
@@ -438,7 +438,7 @@
*
* cu_dnrm handles all cu-only instructions (fmove, fabs, fneg, and
-* ftst) completly in software without an frestore to the 040.
+* ftst) completely in software without an frestore to the 040.
*
cu_dnrm:
st.b CU_ONLY(a6)
--- src/sys/dev/acpi/vald_acpi.c 2021/11/01 21:28:03 1.7
+++ src/sys/dev/acpi/vald_acpi.c 2021/12/07 21:37:36 1.8
@@ -1,4 +1,4 @@
-/* $NetBSD: vald_acpi.c,v 1.7 2021/11/01 21:28:03 andvar Exp $ */
+/* $NetBSD: vald_acpi.c,v 1.8 2021/12/07 21:37:36 andvar Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.7 2021/11/01 21:28:03 andvar Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vald_acpi.c,v 1.8 2021/12/07 21:37:36 andvar Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -439,7 +439,7 @@
sc->lcd_handle = handle;
param = buf.Pointer;
if (param->Type == ACPI_TYPE_PACKAGE) {
- printf("_BCL retrun: %d packages\n", param->Package.Count);
+ printf("_BCL return: %d packages\n", param->Package.Count);
sc->lcd_num = param->Package.Count;
sc->lcd_level = ACPI_ALLOCATE(sizeof(int) * sc->lcd_num);
--- src/sys/dev/nand/hamming.c 2011/02/26 18:07:31 1.1
+++ src/sys/dev/nand/hamming.c 2021/12/07 21:37:37 1.2
@@ -1,4 +1,4 @@
-/* $NetBSD: hamming.c,v 1.1 2011/02/26 18:07:31 ahoka Exp $ */
+/* $NetBSD: hamming.c,v 1.2 2021/12/07 21:37:37 andvar Exp $ */
/*
* Copyright (c) 2008, Atmel Corporation
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hamming.c,v 1.1 2011/02/26 18:07:31 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hamming.c,v 1.2 2021/12/07 21:37:37 andvar Exp $");
#include <sys/param.h>
#include <lib/libkern/libkern.h>
@@ -102,7 +102,7 @@
/*-
* At this point, we have the line parities, and the column sum.
- * First, We must caculate the parity group values on the column sum.
+ * First, We must calculate the parity group values on the column sum.
*/
for (i = 0; i < 8; i++) {
if (column_sum & 1) {
--- src/sys/ufs/chfs/chfs.h 2018/04/19 21:50:10 1.10
+++ src/sys/ufs/chfs/chfs.h 2021/12/07 21:37:37 1.11
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs.h,v 1.10 2018/04/19 21:50:10 christos Exp $ */
+/* $NetBSD: chfs.h,v 1.11 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -199,7 +199,7 @@
uint8_t name[0]; /* name of the directory */
};
-/* struct chfs_tmp_dnode - used temporarly while building a data node */
+/* struct chfs_tmp_dnode - used temporarily while building a data node */
struct chfs_tmp_dnode {
struct chfs_full_dnode *node; /* associated full dnode */
uint64_t version; /* version of the tmp node */
@@ -376,7 +376,7 @@
/*
* eraseblock queues
- * free: completly free
+ * free: completely free
* clean: contains only valid data
* dirty: contains valid and deleted data
* very_dirty: contains mostly deleted data (should be GC'd)
--- src/sys/ufs/chfs/chfs_malloc.c 2019/06/17 17:14:56 1.6
+++ src/sys/ufs/chfs/chfs_malloc.c 2021/12/07 21:37:37 1.7
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_malloc.c,v 1.6 2019/06/17 17:14:56 ryoon Exp $ */
+/* $NetBSD: chfs_malloc.c,v 1.7 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -373,7 +373,7 @@
pool_cache_put(chfs_node_frag_cache, frag);
}
-/* chfs_alloc_tmp_dnode - allocating a temporarly used dnode */
+/* chfs_alloc_tmp_dnode - allocating a temporarily used dnode */
struct chfs_tmp_dnode *
chfs_alloc_tmp_dnode(void)
{
@@ -383,14 +383,14 @@
return ret;
}
-/* chfs_free_tmp_dnode - freeing a temporarly used dnode */
+/* chfs_free_tmp_dnode - freeing a temporarily used dnode */
void
chfs_free_tmp_dnode(struct chfs_tmp_dnode *td)
{
pool_cache_put(chfs_tmp_dnode_cache, td);
}
-/* chfs_alloc_tmp_dnode_info - allocating a temporarly used dnode descriptor */
+/* chfs_alloc_tmp_dnode_info - allocating a temporarily used dnode descriptor */
struct chfs_tmp_dnode_info *
chfs_alloc_tmp_dnode_info(void)
{
@@ -400,7 +400,7 @@
return ret;
}
-/* chfs_free_tmp_dnode_info - freeing a temporarly used dnode descriptor */
+/* chfs_free_tmp_dnode_info - freeing a temporarily used dnode descriptor */
void
chfs_free_tmp_dnode_info(struct chfs_tmp_dnode_info *di)
{
--- src/sys/ufs/chfs/chfs_write.c 2021/07/19 21:04:39 1.6
+++ src/sys/ufs/chfs/chfs_write.c 2021/12/07 21:37:37 1.7
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_write.c,v 1.6 2021/07/19 21:04:39 andvar Exp $ */
+/* $NetBSD: chfs_write.c,v 1.7 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -110,7 +110,7 @@
mutex_enter(&chmp->chm_lock_sizes);
- /* caculating offset and sizes */
+ /* calculating offset and sizes */
nref->nref_offset = chmp->chm_ebh->eb_size - chmp->chm_nextblock->free_size;
chfs_change_size_free(chmp, chmp->chm_nextblock, -CHFS_PAD(size));
vec.iov_base = fvnode;
--- src/sys/ufs/chfs/chfs_nodeops.c 2013/12/09 09:35:17 1.4
+++ src/sys/ufs/chfs/chfs_nodeops.c 2021/12/07 21:37:37 1.5
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_nodeops.c,v 1.4 2013/12/09 09:35:17 wiz Exp $ */
+/* $NetBSD: chfs_nodeops.c,v 1.5 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -206,7 +206,7 @@
return;
}
}
- /* if we couldnt fit it elsewhere, lets add to the end */
+ /* if we couldn't fit it elsewhere, lets add to the end */
/* FIXME insert tail or insert head? */
TAILQ_INSERT_HEAD(&parent->dents, new, fds);
}
--- src/sys/ufs/chfs/chfs_vnops.c 2021/10/20 03:08:19 1.46
+++ src/sys/ufs/chfs/chfs_vnops.c 2021/12/07 21:37:37 1.47
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_vnops.c,v 1.46 2021/10/20 03:08:19 thorpej Exp $ */
+/* $NetBSD: chfs_vnops.c,v 1.47 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -158,7 +158,7 @@
}
/* Store the result of this lookup in the cache. Avoid this if the
* request was for creation, as it does not improve timings on
- * emprical tests. */
+ * empirical tests. */
if (cnp->cn_nameiop != CREATE && (cnp->cn_flags & ISDOTDOT) == 0) {
cache_enter(dvp, *vpp, cnp->cn_nameptr, cnp->cn_namelen,
cnp->cn_flags);
--- src/sys/ufs/chfs/ebh.c 2021/08/09 21:38:05 1.8
+++ src/sys/ufs/chfs/ebh.c 2021/12/07 21:37:37 1.9
@@ -1,4 +1,4 @@
-/* $NetBSD: ebh.c,v 1.8 2021/08/09 21:38:05 andvar Exp $ */
+/* $NetBSD: ebh.c,v 1.9 2021/12/07 21:37:37 andvar Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -129,7 +129,7 @@
}
/**
- * nor_read_eb_hdr - read ereaseblock header from NOR flash
+ * nor_read_eb_hdr - read eraseblock header from NOR flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number
@@ -167,7 +167,7 @@
}
/**
- * nand_read_eb_hdr - read ereaseblock header from NAND flash
+ * nand_read_eb_hdr - read eraseblock header from NAND flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number
@@ -206,7 +206,7 @@
}
/**
- * nor_write_eb_hdr - write ereaseblock header to NOR flash
+ * nor_write_eb_hdr - write eraseblock header to NOR flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number whereto write
@@ -243,7 +243,7 @@
}
/**
- * nand_write_eb_hdr - write ereaseblock header to NAND flash
+ * nand_write_eb_hdr - write eraseblock header to NAND flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number whereto write
@@ -282,7 +282,7 @@
}
/**
- * nor_check_eb_hdr - check ereaseblock header read from NOR flash
+ * nor_check_eb_hdr - check eraseblock header read from NOR flash
*
* @ebh: chfs eraseblock handler
* @buf: eraseblock header to check
@@ -361,7 +361,7 @@
}
/**
- * nand_check_eb_hdr - check ereaseblock header read from NAND flash
+ * nand_check_eb_hdr - check eraseblock header read from NAND flash
*
* @ebh: chfs eraseblock handler
* @buf: eraseblock header to check
@@ -421,7 +421,7 @@
}
/**
- * nor_mark_eb_hdr_dirty_flash- mark ereaseblock header dirty on NOR flash
+ * nor_mark_eb_hdr_dirty_flash- mark eraseblock header dirty on NOR flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number
@@ -456,7 +456,7 @@
}
/**
- * nor_invalidate_eb_hdr - invalidate ereaseblock header on NOR flash
+ * nor_invalidate_eb_hdr - invalidate eraseblock header on NOR flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number
@@ -491,7 +491,7 @@
}
/**
- * mark_eb_hdr_free - free ereaseblock header on NOR or NAND flash
+ * mark_eb_hdr_free - free eraseblock header on NOR or NAND flash
*
* @ebh: chfs eraseblock handler
* @pebnr: eraseblock number
@@ -1423,7 +1423,7 @@
}
/**
- * chfs_scan - scans the media and returns informations about it
+ * chfs_scan - scans the media and returns information about it
* @ebh: chfs eraseblock handler
*
* This function scans through the media and returns information about it or if
@@ -1593,7 +1593,7 @@
/*****************************************************************************/
/**
- * ebh_open - opens mtd device and init ereaseblock header
+ * ebh_open - opens mtd device and init eraseblock header
* @ebh: eraseblock handler
* @flash_nr: flash device number to use
*
@@ -1998,7 +1998,7 @@
* @ebh: eraseblock handler
* @lnr: leb number
*
- * Retruns zero on success, error code in case of fail.
+ * Returns zero on success, error code in case of fail.
*/
int
ebh_unmap_leb(struct chfs_ebh *ebh, int lnr)
@@ -2019,7 +2019,7 @@
* @ebh: eraseblock handler
* @lnr: leb number
*
- * Retruns 0 if the logical eraseblock is mapped, negative error code otherwise.
+ * Returns 0 if the logical eraseblock is mapped, negative error code otherwise.
*/
int
ebh_is_mapped(struct chfs_ebh *ebh, int lnr)
--- src/usr.bin/mail/list.c 2017/11/09 20:27:50 1.28
+++ src/usr.bin/mail/list.c 2021/12/07 21:37:37 1.29
@@ -1,4 +1,4 @@
-/* $NetBSD: list.c,v 1.28 2017/11/09 20:27:50 christos Exp $ */
+/* $NetBSD: list.c,v 1.29 2021/12/07 21:37:37 andvar Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)list.c 8.4 (Berkeley) 5/1/95";
#else
-__RCSID("$NetBSD: list.c,v 1.28 2017/11/09 20:27:50 christos Exp $");
+__RCSID("$NetBSD: list.c,v 1.29 2021/12/07 21:37:37 andvar Exp $");
#endif
#endif /* not lint */
@@ -946,7 +946,7 @@
LOP_XOR
} logic_op; /* binary logic operation */
int logic_invert; /* invert the result */
- int *tmparray; /* temporarly array with result */
+ int *tmparray; /* temporary array with result */
int msgCount; /* tmparray length and message count */
int beg; /* first value of a range */
int colmod; /* the colon-modifier for this group */