From: jmc Date: Tue, 27 Dec 2022 17:10:05 +0000 (+0000) Subject: spelling fixes; from paul tagliamonte X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=2c53affbcc0119d6480b86c18f2790523b6a0aad;p=openbsd spelling fixes; from paul tagliamonte any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes; --- diff --git a/lib/libagentx/agentx.c b/lib/libagentx/agentx.c index da74dc9d006..07993b7c847 100644 --- a/lib/libagentx/agentx.c +++ b/lib/libagentx/agentx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agentx.c,v 1.21 2022/12/02 10:57:12 martijn Exp $ */ +/* $OpenBSD: agentx.c,v 1.22 2022/12/27 17:10:05 jmc Exp $ */ /* * Copyright (c) 2019 Martijn van Duren * @@ -2867,7 +2867,7 @@ getnext: * - AX_PDU_TYPE_GET: we always return AX_DATA_TYPE_NOSUCHINSTANCE * - AX_PDU_TYPE_GETNEXT: * - Missing OID digits to match indices or !dynamic indices - * (AX_DATA_TYPE_INTEGER) undeflows will result in the following indices to + * (AX_DATA_TYPE_INTEGER) underflows will result in the following indices to * be NUL-initialized and the request type will be set to * AGENTX_REQUEST_TYPE_GETNEXTINCLUSIVE * - An overflow can happen on AX_DATA_TYPE_OCTETSTRING and diff --git a/lib/libc/Symbols.list b/lib/libc/Symbols.list index 58c747697a9..833cdf655e9 100644 --- a/lib/libc/Symbols.list +++ b/lib/libc/Symbols.list @@ -6,7 +6,7 @@ * static, or renamed it to have a leading underbar. */ -/* brk/sbrk need this so it can be overriden by the executable's value */ +/* brk/sbrk need this so it can be overridden by the executable's value */ _end /* diff --git a/lib/libc/arch/aarch64/gen/flt_rounds.c b/lib/libc/arch/aarch64/gen/flt_rounds.c index 717e4102b4f..6d88f63efaf 100644 --- a/lib/libc/arch/aarch64/gen/flt_rounds.c +++ b/lib/libc/arch/aarch64/gen/flt_rounds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flt_rounds.c,v 1.1 2017/01/11 18:09:24 patrick Exp $ */ +/* $OpenBSD: flt_rounds.c,v 1.2 2022/12/27 17:10:05 jmc Exp $ */ /* $NetBSD: flt_rounds.c,v 1.1 2000/12/29 20:13:48 bjh21 Exp $ */ /* @@ -49,7 +49,7 @@ static const int map[] = { * Returns: * 0 - round to zero * 1 - round to nearest - * 2 - round to postive infinity + * 2 - round to positive infinity * 3 - round to negative infinity * * ok all we need to do is get the current FP rounding mode diff --git a/lib/libc/arch/arm/gen/flt_rounds.c b/lib/libc/arch/arm/gen/flt_rounds.c index 98497051c16..b77dd1c5b75 100644 --- a/lib/libc/arch/arm/gen/flt_rounds.c +++ b/lib/libc/arch/arm/gen/flt_rounds.c @@ -1,4 +1,4 @@ -/* $OpenBSD: flt_rounds.c,v 1.5 2015/10/27 05:54:49 guenther Exp $ */ +/* $OpenBSD: flt_rounds.c,v 1.6 2022/12/27 17:10:05 jmc Exp $ */ /* $NetBSD: flt_rounds.c,v 1.1 2000/12/29 20:13:48 bjh21 Exp $ */ /* @@ -49,7 +49,7 @@ static const int map[] = { * Returns: * 0 - round to zero * 1 - round to nearest - * 2 - round to postive infinity + * 2 - round to positive infinity * 3 - round to negative infinity * * ok all we need to do is get the current FP rounding mode diff --git a/lib/libc/arch/i386/string/strncmp.S b/lib/libc/arch/i386/string/strncmp.S index 0d34a44d9fa..9dfc0385509 100644 --- a/lib/libc/arch/i386/string/strncmp.S +++ b/lib/libc/arch/i386/string/strncmp.S @@ -1,4 +1,4 @@ -/* $OpenBSD: strncmp.S,v 1.6 2017/11/29 05:13:57 guenther Exp $ */ +/* $OpenBSD: strncmp.S,v 1.7 2022/12/27 17:10:05 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -102,7 +102,7 @@ L2: jz L4 /* strings are equal */ je L1 .align 2,0x90 -L3: movzbl (%eax),%eax /* unsigned comparision */ +L3: movzbl (%eax),%eax /* unsigned comparison */ movzbl (%ecx),%ecx subl %ecx,%eax popl %ebx diff --git a/lib/libc/arch/riscv64/gen/_atomic_lock.c b/lib/libc/arch/riscv64/gen/_atomic_lock.c index 779a679955f..35d15747564 100644 --- a/lib/libc/arch/riscv64/gen/_atomic_lock.c +++ b/lib/libc/arch/riscv64/gen/_atomic_lock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: _atomic_lock.c,v 1.1 2021/04/29 18:33:36 drahn Exp $ */ +/* $OpenBSD: _atomic_lock.c,v 1.2 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2020 Mars Li * @@ -23,7 +23,7 @@ #include /* - * Spinlock does not have Aquire/Release semantics, so amoswap.w.aq + * Spinlock does not have Acquire/Release semantics, so amoswap.w.aq * should not used here. */ int diff --git a/lib/libc/arch/sparc64/fpu/fpu_sqrt.c b/lib/libc/arch/sparc64/fpu/fpu_sqrt.c index 7de1f1adbf8..e44f10fc2ce 100644 --- a/lib/libc/arch/sparc64/fpu/fpu_sqrt.c +++ b/lib/libc/arch/sparc64/fpu/fpu_sqrt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fpu_sqrt.c,v 1.5 2019/03/15 05:42:38 kevlo Exp $ */ +/* $OpenBSD: fpu_sqrt.c,v 1.6 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 1992, 1993 @@ -129,7 +129,7 @@ * zero bit at the top of x. Doing so means that q is not going to acquire * a 1 bit in the first trip around the loop (since x0 < 2^NBITS). If the * final value in x is not needed, or can be off by a factor of 2, this is - * equivalant to moving the `x *= 2' step to the bottom of the loop: + * equivalent to moving the `x *= 2' step to the bottom of the loop: * * for k = NBITS-1 to 0 step -1 do if ... fi; x *= 2; done * diff --git a/lib/libc/asr/asr_utils.c b/lib/libc/asr/asr_utils.c index 6009b07a3a0..1b856761e82 100644 --- a/lib/libc/asr/asr_utils.c +++ b/lib/libc/asr/asr_utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asr_utils.c,v 1.19 2022/11/17 17:39:41 florian Exp $ */ +/* $OpenBSD: asr_utils.c,v 1.20 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2009-2012 Eric Faurot * @@ -384,7 +384,7 @@ static int pack_dname(struct asr_pack *p, const char *dname) { /* dname compression would be nice to have here. - * need additionnal context. + * need additional context. */ return (pack_data(p, dname, strlen(dname) + 1)); } diff --git a/lib/libc/asr/getaddrinfo_async.c b/lib/libc/asr/getaddrinfo_async.c index b351a867f11..5e0d186f315 100644 --- a/lib/libc/asr/getaddrinfo_async.c +++ b/lib/libc/asr/getaddrinfo_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getaddrinfo_async.c,v 1.58 2022/11/17 17:39:41 florian Exp $ */ +/* $OpenBSD: getaddrinfo_async.c,v 1.59 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -466,7 +466,7 @@ getaddrinfo_async_run(struct asr_query *as, struct asr_result *ar) } /* - * Retreive the port number for the service name "servname" and + * Retrieve the port number for the service name "servname" and * the protocol "proto". */ static int diff --git a/lib/libc/asr/getnameinfo.c b/lib/libc/asr/getnameinfo.c index f6d1228d319..72564cb8d57 100644 --- a/lib/libc/asr/getnameinfo.c +++ b/lib/libc/asr/getnameinfo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getnameinfo.c,v 1.10 2020/12/21 09:40:35 eric Exp $ */ +/* $OpenBSD: getnameinfo.c,v 1.11 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -38,7 +38,7 @@ static size_t asr_print_port(const struct sockaddr *, const char *, char *, size * set in "sa". * * Return the total length of the string it tried to create or 0 if an error - * occured, in which case errno is set. On success, the constructed string + * occurred, in which case errno is set. On success, the constructed string * is guaranteed to be NUL-terminated. Overflow must be detected by checking * the returned size against buflen. * @@ -102,7 +102,7 @@ asr_print_addr(const struct sockaddr *sa, char *buf, size_t buflen) * it prints the portno. * * Return the total length of the string it tried to create or 0 if an error - * occured, in which case errno is set. On success, the constructed string + * occurred, in which case errno is set. On success, the constructed string * is guaranteed to be NUL-terminated. Overflow must be detected by checking * the returned size against buflen. */ diff --git a/lib/libc/asr/getrrsetbyname_async.c b/lib/libc/asr/getrrsetbyname_async.c index e5e7c23c261..28e86d2fc1e 100644 --- a/lib/libc/asr/getrrsetbyname_async.c +++ b/lib/libc/asr/getrrsetbyname_async.c @@ -1,4 +1,4 @@ -/* $OpenBSD: getrrsetbyname_async.c,v 1.11 2017/02/23 17:04:02 eric Exp $ */ +/* $OpenBSD: getrrsetbyname_async.c,v 1.12 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2012 Eric Faurot * @@ -168,9 +168,9 @@ getrrsetbyname_async_run(struct asr_query *as, struct asr_result *ar) goto next; } -/* The rest of this file is taken from the orignal implementation. */ +/* The rest of this file is taken from the original implementation. */ -/* $OpenBSD: getrrsetbyname_async.c,v 1.11 2017/02/23 17:04:02 eric Exp $ */ +/* $OpenBSD: getrrsetbyname_async.c,v 1.12 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2001 Jakob Schlyter. All rights reserved. diff --git a/lib/libc/db/btree/bt_seq.c b/lib/libc/db/btree/bt_seq.c index f67287f72dd..6da92a64c3f 100644 --- a/lib/libc/db/btree/bt_seq.c +++ b/lib/libc/db/btree/bt_seq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_seq.c,v 1.11 2005/08/05 13:03:00 espie Exp $ */ +/* $OpenBSD: bt_seq.c,v 1.12 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -83,7 +83,7 @@ __bt_seq(const DB *dbp, DBT *key, DBT *data, u_int flags) } /* - * If scan unitialized as yet, or starting at a specific record, set + * If scan uninitialized as yet, or starting at a specific record, set * the scan to a specific key. Both __bt_seqset and __bt_seqadv pin * the page the cursor references if they're successful. */ diff --git a/lib/libc/db/btree/bt_utils.c b/lib/libc/db/btree/bt_utils.c index d3a66e663e7..3b20d81f2d3 100644 --- a/lib/libc/db/btree/bt_utils.c +++ b/lib/libc/db/btree/bt_utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bt_utils.c,v 1.12 2021/10/24 10:05:22 jsg Exp $ */ +/* $OpenBSD: bt_utils.c,v 1.13 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -66,7 +66,7 @@ __bt_ret(BTREE *t, EPG *e, DBT *key, DBT *rkey, DBT *data, DBT *rdata, int copy) bl = GETBLEAF(e->page, e->index); /* - * We must copy big keys/data to make them contigous. Otherwise, + * We must copy big keys/data to make them contiguous. Otherwise, * leave the page pinned and don't copy unless the user specified * concurrent access. */ diff --git a/lib/libc/db/hash/README b/lib/libc/db/hash/README index 3e382f29245..37358020c41 100644 --- a/lib/libc/db/hash/README +++ b/lib/libc/db/hash/README @@ -1,4 +1,4 @@ -# $OpenBSD: README,v 1.4 2002/02/24 21:24:06 millert Exp $ +# $OpenBSD: README,v 1.5 2022/12/27 17:10:06 jmc Exp $ This package implements a superset of the hsearch and dbm/ndbm libraries. @@ -48,7 +48,7 @@ The man page ../man/db.3 explains the interface to the hashing system. The file hash.ps is a postscript copy of a paper explaining the history, implementation, and performance of the hash package. -"bugs" or idiosyncracies +"bugs" or idiosyncrasies If you have a lot of overflows, it is possible to run out of overflow pages. Currently, this will cause a message to be printed on stderr. diff --git a/lib/libc/db/recno/rec_utils.c b/lib/libc/db/recno/rec_utils.c index ccdd251933c..65ed822d11c 100644 --- a/lib/libc/db/recno/rec_utils.c +++ b/lib/libc/db/recno/rec_utils.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rec_utils.c,v 1.9 2015/01/16 16:48:51 deraadt Exp $ */ +/* $OpenBSD: rec_utils.c,v 1.10 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 * The Regents of the University of California. All rights reserved. @@ -75,7 +75,7 @@ dataonly: return (RET_SUCCESS); /* - * We must copy big keys/data to make them contigous. Otherwise, + * We must copy big keys/data to make them contiguous. Otherwise, * leave the page pinned and don't copy unless the user specified * concurrent access. */ diff --git a/lib/libc/dlfcn/init.c b/lib/libc/dlfcn/init.c index 76c185b6a62..98766b80039 100644 --- a/lib/libc/dlfcn/init.c +++ b/lib/libc/dlfcn/init.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init.c,v 1.10 2022/11/06 09:25:39 deraadt Exp $ */ +/* $OpenBSD: init.c,v 1.11 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2014,2015 Philip Guenther * @@ -51,7 +51,7 @@ int _pagesize = 0; struct timekeep *_timekeep; /* - * In dynamicly linked binaries environ and __progname are overriden by + * In dynamically linked binaries environ and __progname are overridden by * the definitions in ld.so. */ char **environ __attribute__((weak)) = NULL; diff --git a/lib/libc/dlfcn/tib.c b/lib/libc/dlfcn/tib.c index 3b437c18251..59ed7b76b3f 100644 --- a/lib/libc/dlfcn/tib.c +++ b/lib/libc/dlfcn/tib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tib.c,v 1.2 2017/12/01 23:30:05 guenther Exp $ */ +/* $OpenBSD: tib.c,v 1.3 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2016 Philip Guenther * @@ -41,7 +41,7 @@ void * _dl_allocate_tib(size_t extra) { #ifdef PIC - return NULL; /* overriden by ld.so */ + return NULL; /* overridden by ld.so */ #else void *base; char *thread; diff --git a/lib/libc/gdtoa/gdtoaimp.h b/lib/libc/gdtoa/gdtoaimp.h index 823f2a9b113..f8530457c77 100644 --- a/lib/libc/gdtoa/gdtoaimp.h +++ b/lib/libc/gdtoa/gdtoaimp.h @@ -26,7 +26,7 @@ THIS SOFTWARE. ****************************************************************/ -/* This is a variation on dtoa.c that converts arbitary binary +/* This is a variation on dtoa.c that converts arbitrary binary floating-point formats to and from decimal notation. It uses double-precision arithmetic internally, so there are still various #ifdefs that adapt the calculations to the native diff --git a/lib/libc/gen/login_cap.c b/lib/libc/gen/login_cap.c index 53e27d7522e..1460181b376 100644 --- a/lib/libc/gen/login_cap.c +++ b/lib/libc/gen/login_cap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_cap.c,v 1.45 2022/03/23 14:39:52 millert Exp $ */ +/* $OpenBSD: login_cap.c,v 1.46 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2000-2004 Todd C. Miller @@ -948,7 +948,7 @@ multiply(u_quad_t n1, u_quad_t n2) /* * First check the magnitude of each number. If the sum of the - * magnatude is way to high, reject the number. (If this test + * magnitude is way to high, reject the number. (If this test * is not done then the first multiply below may overflow.) */ for (b1 = bpw; (((u_quad_t)1 << (b1-1)) & n1) == 0; --b1) diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index da66558a1f6..1b1cd1eec2f 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nlist.c,v 1.71 2019/06/28 13:32:41 deraadt Exp $ */ +/* $OpenBSD: nlist.c,v 1.72 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 1989, 1993 * The Regents of the University of California. All rights reserved. @@ -61,7 +61,7 @@ __elf_is_okay__(Elf_Ehdr *ehdr) { int retval = 0; /* - * We need to check magic, class size, endianess, + * We need to check magic, class size, endianness, * and version before we look at the rest of the * Elf_Ehdr structure. These few elements are * represented in a machine independent fashion. diff --git a/lib/libc/gen/pwcache.c b/lib/libc/gen/pwcache.c index d54daa08cc7..9b9b3af0024 100644 --- a/lib/libc/gen/pwcache.c +++ b/lib/libc/gen/pwcache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pwcache.c,v 1.15 2018/09/22 02:47:23 millert Exp $ */ +/* $OpenBSD: pwcache.c,v 1.16 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1992 Keith Muller. @@ -79,7 +79,7 @@ typedef struct gidc { * Traditional passwd/group cache routines perform quite poorly with * archives. The chances of hitting a valid lookup with an archive is quite a * bit worse than with files already resident on the file system. These misses - * create a MAJOR performance cost. To adress this problem, these routines + * create a MAJOR performance cost. To address this problem, these routines * cache both hits and misses. */ diff --git a/lib/libc/hidden/tib.h b/lib/libc/hidden/tib.h index 26463db020c..c9aeb875f9f 100644 --- a/lib/libc/hidden/tib.h +++ b/lib/libc/hidden/tib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tib.h,v 1.3 2019/06/02 01:03:01 guenther Exp $ */ +/* $OpenBSD: tib.h,v 1.4 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2015 Philip Guenther * @@ -24,7 +24,7 @@ __BEGIN_HIDDEN_DECLS #ifndef PIC /* - * Handling for static TLS allocation in staticly linked programs + * Handling for static TLS allocation in statically linked programs */ /* Given the base of a TIB allocation, initialize the static TLS for a thread */ struct tib *_static_tls_init(char *_base, void *_thread); @@ -45,7 +45,7 @@ extern const dl_cb *_dl_cb; #if ! TCB_HAVE_MD_GET /* * For archs without a fast TCB_GET(): the pointer to the TCB in - * single-threaded programs, whether linked staticly or dynamically. + * single-threaded programs, whether linked statically or dynamically. */ extern void *_libc_single_tcb; #endif diff --git a/lib/libc/locale/localeconv.c b/lib/libc/locale/localeconv.c index 7e9e5676616..c64d0b97154 100644 --- a/lib/libc/locale/localeconv.c +++ b/lib/libc/locale/localeconv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: localeconv.c,v 1.8 2016/05/23 00:05:15 guenther Exp $ */ +/* $OpenBSD: localeconv.c,v 1.9 2022/12/27 17:10:06 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -12,7 +12,7 @@ * monetary and numeric locales. * * Because localeconv() may be called many times (especially by library - * routines like printf() & strtod()), the approprate members of the + * routines like printf() & strtod()), the appropriate members of the * lconv structure are computed only when the monetary or numeric * locale has been changed. */ diff --git a/lib/libc/net/inet_net_pton.c b/lib/libc/net/inet_net_pton.c index f9c6e7334b2..c5baa4d6f4e 100644 --- a/lib/libc/net/inet_net_pton.c +++ b/lib/libc/net/inet_net_pton.c @@ -1,4 +1,4 @@ -/* $OpenBSD: inet_net_pton.c,v 1.13 2022/04/13 22:17:33 millert Exp $ */ +/* $OpenBSD: inet_net_pton.c,v 1.14 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2012 by Gilles Chehade @@ -161,7 +161,7 @@ inet_net_pton_ipv4(const char *src, u_char *dst, size_t size) goto enoent; } - /* Firey death and destruction unless we prefetched EOS. */ + /* Fiery death and destruction unless we prefetched EOS. */ if (ch != '\0') goto enoent; diff --git a/lib/libc/net/res_comp.c b/lib/libc/net/res_comp.c index 41a1c9771a4..7ccd44ad8d5 100644 --- a/lib/libc/net/res_comp.c +++ b/lib/libc/net/res_comp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_comp.c,v 1.21 2022/11/16 18:30:12 florian Exp $ */ +/* $OpenBSD: res_comp.c,v 1.22 2022/12/27 17:10:06 jmc Exp $ */ /* * ++Copyright++ 1985, 1993 @@ -149,7 +149,7 @@ DEF_WEAK(dn_expand); * 'length' is the size of the array pointed to by 'comp_dn'. * 'dnptrs' is a list of pointers to previous compressed names. dnptrs[0] * is a pointer to the beginning of the message. The list ends with NULL. - * 'lastdnptr' is a pointer to the end of the arrary pointed to + * 'lastdnptr' is a pointer to the end of the array pointed to * by 'dnptrs'. Side effect is to update the list of pointers for * labels inserted into the message as we compress the name. * If 'dnptr' is NULL, we don't try to compress names. If 'lastdnptr' diff --git a/lib/libc/net/res_random.c b/lib/libc/net/res_random.c index b7036815c9d..3f642a138c5 100644 --- a/lib/libc/net/res_random.c +++ b/lib/libc/net/res_random.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_random.c,v 1.25 2020/07/06 13:33:06 pirofti Exp $ */ +/* $OpenBSD: res_random.c,v 1.26 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright 1997 Niels Provos @@ -70,7 +70,7 @@ #include "thread_private.h" -#define RU_OUT 180 /* Time after wich will be reseeded */ +#define RU_OUT 180 /* Time after which will be reseeded */ #define RU_MAX 30000 /* Uniq cycle, avoid blackjack prediction */ #define RU_GEN 2 /* Starting generator */ #define RU_N 32749 /* RU_N-1 = 2*2*3*2729 */ diff --git a/lib/libc/net/rthdr.c b/lib/libc/net/rthdr.c index 934a55155a8..5ffb13fc871 100644 --- a/lib/libc/net/rthdr.c +++ b/lib/libc/net/rthdr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthdr.c,v 1.12 2016/09/21 04:38:56 guenther Exp $ */ +/* $OpenBSD: rthdr.c,v 1.13 2022/12/27 17:10:06 jmc Exp $ */ /* $KAME: rthdr.c,v 1.22 2006/02/09 08:18:58 keiichi Exp $ */ /* @@ -50,7 +50,7 @@ inet6_rth_space(int type, int segments) case IPV6_RTHDR_TYPE_0: return (((segments * 2) + 1) << 3); default: - return (0); /* type not suppported */ + return (0); /* type not supported */ } } DEF_WEAK(inet6_rth_space); diff --git a/lib/libc/net/ruserok.c b/lib/libc/net/ruserok.c index a399c013e26..291c7020608 100644 --- a/lib/libc/net/ruserok.c +++ b/lib/libc/net/ruserok.c @@ -384,7 +384,7 @@ __gethostloop(struct sockaddr *raddr, socklen_t salen) } /* - * either the DNS adminstrator has made a configuration + * either the DNS administrator has made a configuration * mistake, or someone has attempted to spoof us */ freeaddrinfo(res); diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c index cf6acbb7d86..ab71e9c8217 100644 --- a/lib/libc/regex/regcomp.c +++ b/lib/libc/regex/regcomp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: regcomp.c,v 1.43 2021/01/03 17:07:57 tb Exp $ */ +/* $OpenBSD: regcomp.c,v 1.44 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1992, 1993, 1994 Henry Spencer. * Copyright (c) 1992, 1993, 1994 @@ -473,7 +473,7 @@ p_simp_re(struct parse *p, sopno subno; # define BACKSL (1<xp_p1 = (caddr_t)cd; xprt->xp_verf.oa_base = cd->verf_body; xprt->xp_addrlen = 0; - xprt->xp_ops = &svctcp_op; /* truely deals with calls */ + xprt->xp_ops = &svctcp_op; /* truly deals with calls */ xprt->xp_port = 0; /* this is a connection, not a rendezvouser */ xprt->xp_sock = fd; if (__xprt_register(xprt) == 0) { @@ -325,7 +325,7 @@ svctcp_destroy(SVCXPRT *xprt) static struct timespec wait_per_try = { 35, 0 }; /* - * reads data from the tcp conection. + * reads data from the tcp connection. * any error is fatal and the connection is closed. * (And a read of zero bytes is a half closed stream => error.) */ diff --git a/lib/libc/rpc/xdr.c b/lib/libc/rpc/xdr.c index 00807ad6f48..e362446e1c5 100644 --- a/lib/libc/rpc/xdr.c +++ b/lib/libc/rpc/xdr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr.c,v 1.16 2017/01/21 08:29:13 krw Exp $ */ +/* $OpenBSD: xdr.c,v 1.17 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -549,7 +549,7 @@ xdr_netobj(XDR *xdrs, struct netobj *np) } /* - * XDR a descriminated union + * XDR a discriminated union * Support routine for discriminated unions. * You create an array of xdrdiscrim structures, terminated with * an entry with a null procedure pointer. The routine gets diff --git a/lib/libc/rpc/xdr_rec.c b/lib/libc/rpc/xdr_rec.c index 0af0d9570df..b3445d5cd21 100644 --- a/lib/libc/rpc/xdr_rec.c +++ b/lib/libc/rpc/xdr_rec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_rec.c,v 1.23 2022/02/14 03:38:59 guenther Exp $ */ +/* $OpenBSD: xdr_rec.c,v 1.24 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -456,7 +456,7 @@ xdrrec_skiprecord(XDR *xdrs) DEF_WEAK(xdrrec_skiprecord); /* - * Look ahead fuction. + * Look ahead function. * Returns TRUE iff there is no more input in the buffer * after consuming the rest of the current record. */ @@ -482,7 +482,7 @@ DEF_WEAK(xdrrec_eof); * The client must tell the package when an end-of-record has occurred. * The second paraemters tells whether the record should be flushed to the * (output) tcp stream. (This let's the package support batched or - * pipelined procedure calls.) TRUE => immmediate flush to tcp connection. + * pipelined procedure calls.) TRUE => immediate flush to tcp connection. */ bool_t xdrrec_endofrecord(XDR *xdrs, int32_t sendnow) diff --git a/lib/libc/rpc/xdr_reference.c b/lib/libc/rpc/xdr_reference.c index ad67661d020..de7f4f6b7f8 100644 --- a/lib/libc/rpc/xdr_reference.c +++ b/lib/libc/rpc/xdr_reference.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xdr_reference.c,v 1.12 2016/12/20 22:19:08 krw Exp $ */ +/* $OpenBSD: xdr_reference.c,v 1.13 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -50,7 +50,7 @@ * referenced by a pointer inside the structure that is currently being * translated. pp references a pointer to storage. If *pp is null * the necessary storage is allocated. - * size is the sizeof the referneced structure. + * size is the sizeof the referenced structure. * proc is the routine to handle the referenced structure. */ bool_t diff --git a/lib/libc/stdio/vfscanf.c b/lib/libc/stdio/vfscanf.c index 5fb55d99e61..0d00d0a8cb3 100644 --- a/lib/libc/stdio/vfscanf.c +++ b/lib/libc/stdio/vfscanf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfscanf.c,v 1.34 2016/10/30 05:07:06 jsg Exp $ */ +/* $OpenBSD: vfscanf.c,v 1.35 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -774,7 +774,7 @@ literal: for (p = buf; width; width--) { c = *fp->_p; /* - * This code mimicks the integer conversion + * This code mimics the integer conversion * code, but is much simpler. */ switch (c) { @@ -916,7 +916,7 @@ doswitch: * z', but treats `a-a' as `the letter a, the * character -, and the letter a'. * - * For compatibility, the `-' is not considerd + * For compatibility, the `-' is not considered * to define a range if the character following * it is either a close bracket (required by ANSI) * or is not numerically greater than the character diff --git a/lib/libc/stdio/vfwscanf.c b/lib/libc/stdio/vfwscanf.c index 8cb83f69224..84ab563300e 100644 --- a/lib/libc/stdio/vfwscanf.c +++ b/lib/libc/stdio/vfwscanf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfwscanf.c,v 1.7 2017/12/08 01:03:51 kevlo Exp $ */ +/* $OpenBSD: vfwscanf.c,v 1.8 2022/12/27 17:10:06 jmc Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -691,7 +691,7 @@ literal: for (p = buf; width; width--) { c = __fgetwc_unlock(fp); /* - * This code mimicks the integer conversion + * This code mimics the integer conversion * code, but is much simpler. */ switch (c) { diff --git a/lib/libc/stdlib/atexit.c b/lib/libc/stdlib/atexit.c index 81d2dc2476c..3334617b654 100644 --- a/lib/libc/stdlib/atexit.c +++ b/lib/libc/stdlib/atexit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atexit.c,v 1.28 2022/10/22 15:21:25 deraadt Exp $ */ +/* $OpenBSD: atexit.c,v 1.29 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2002 Daniel Hartmeier * All rights reserved. @@ -112,7 +112,7 @@ unlock: DEF_STRONG(__cxa_atexit); /* - * Copy of atexit() used by libc and anything staticly linked into the + * Copy of atexit() used by libc and anything statically linked into the * executable. This passes NULL for the dso, so the callbacks are only * invoked by exit() and not dlclose() */ diff --git a/lib/libc/stdlib/div.c b/lib/libc/stdlib/div.c index beaa428c7a8..5e6164f0bb4 100644 --- a/lib/libc/stdlib/div.c +++ b/lib/libc/stdlib/div.c @@ -1,4 +1,4 @@ -/* $OpenBSD: div.c,v 1.6 2015/09/13 08:31:47 guenther Exp $ */ +/* $OpenBSD: div.c,v 1.7 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 1990 Regents of the University of California. * All rights reserved. @@ -46,7 +46,7 @@ div(int num, int denom) * words, we should always truncate the quotient towards * 0, never -infinity. * - * Machine division and remainer may work either way when + * Machine division and remainder may work either way when * one or both of n or d is negative. If only one is * negative and r.quot has been truncated towards -inf, * r.rem will have the same sign as denom and the opposite diff --git a/lib/libc/stdlib/gcvt.c b/lib/libc/stdlib/gcvt.c index f9528e7e7a1..d3ab1b04153 100644 --- a/lib/libc/stdlib/gcvt.c +++ b/lib/libc/stdlib/gcvt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gcvt.c,v 1.14 2019/01/25 00:19:25 millert Exp $ */ +/* $OpenBSD: gcvt.c,v 1.15 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2002, 2003, 2006, 2010 @@ -61,7 +61,7 @@ gcvt(double value, int ndigit, char *buf) if (sign) *dst++ = '-'; - /* Match printf(3) behavior for exponential vs. regular fomatting. */ + /* Match printf(3) behavior for exponential vs. regular formatting. */ if (decpt <= -4 || decpt > ndigit) { /* exponential format (e.g. 1.2345e+13) */ if (--decpt < 0) { diff --git a/lib/libc/sys/ktrace.2 b/lib/libc/sys/ktrace.2 index 8b107117553..46af359f463 100644 --- a/lib/libc/sys/ktrace.2 +++ b/lib/libc/sys/ktrace.2 @@ -1,4 +1,4 @@ -.\" $OpenBSD: ktrace.2,v 1.41 2022/07/30 07:19:30 jsg Exp $ +.\" $OpenBSD: ktrace.2,v 1.42 2022/12/27 17:10:06 jmc Exp $ .\" $NetBSD: ktrace.2,v 1.2 1995/02/27 12:33:58 cgd Exp $ .\" .\" Copyright (c) 1993 @@ -30,7 +30,7 @@ .\" .\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93 .\" -.Dd $Mdocdate: July 30 2022 $ +.Dd $Mdocdate: December 27 2022 $ .Dt KTRACE 2 .Os .Sh NAME @@ -185,7 +185,7 @@ receiving process, the receiving process is currently being traced by the superuser, or the receiving process has changed its UIDs or GIDs. When tracing multiple processes, -this error is returned if none of the targetted processes could be traced. +this error is returned if none of the targeted processes could be traced. When clearing a trace file with .Dv KTROP_CLEARFILE , this error is returned if it could not stop tracing any of the processes diff --git a/lib/libc/thread/atfork.c b/lib/libc/thread/atfork.c index 7d3222f40bc..2a4e362a745 100644 --- a/lib/libc/thread/atfork.c +++ b/lib/libc/thread/atfork.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atfork.c,v 1.3 2017/08/15 06:38:41 guenther Exp $ */ +/* $OpenBSD: atfork.c,v 1.4 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 2008 Kurt Miller @@ -62,7 +62,7 @@ _thread_atfork(void (*prepare)(void), void (*parent)(void), DEF_STRONG(_thread_atfork); /* - * Copy of pthread_atfork() used by libc and anything staticly linked + * Copy of pthread_atfork() used by libc and anything statically linked * into the executable. This passes NULL for the dso, so the callbacks * are never removed by dlclose() */ diff --git a/lib/libc/thread/rthread_file.c b/lib/libc/thread/rthread_file.c index 82d096844e6..0ea1c16dc2a 100644 --- a/lib/libc/thread/rthread_file.c +++ b/lib/libc/thread/rthread_file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_file.c,v 1.2 2017/08/15 06:38:41 guenther Exp $ */ +/* $OpenBSD: rthread_file.c,v 1.3 2022/12/27 17:10:06 jmc Exp $ */ /* * Copyright (c) 1995 John Birrell . * All rights reserved. @@ -74,7 +74,7 @@ struct file_lock { * value is then remaindered using the maximum number of hash * entries to produce and index into the array of static lock * structures. If there is a collision, a linear search of the - * dynamic list of locks linked to each static lock is perfomed. + * dynamic list of locks linked to each static lock is performed. */ #define file_idx(_p) ((int)((((uintptr_t) _p) >> sizeof(void *)) % NUM_HEADS)) diff --git a/lib/libcbor/src/cbor/data.h b/lib/libcbor/src/cbor/data.h index 7f703bc0635..8dbf24824f8 100644 --- a/lib/libcbor/src/cbor/data.h +++ b/lib/libcbor/src/cbor/data.h @@ -184,7 +184,7 @@ struct cbor_indefinite_string_data { /** High-level decoding error */ struct cbor_error { - /** Aproximate position */ + /** Approximate position */ size_t position; /** Description */ cbor_error_code code; diff --git a/lib/libcbor/src/cbor/floats_ctrls.h b/lib/libcbor/src/cbor/floats_ctrls.h index 7e60620395e..74dd97ffde3 100644 --- a/lib/libcbor/src/cbor/floats_ctrls.h +++ b/lib/libcbor/src/cbor/floats_ctrls.h @@ -124,7 +124,7 @@ cbor_item_t *cbor_new_undef(); /** Constructs new boolean ctrl item * * @param value The value to use - * @return **new** boolen ctrl item or `NULL` upon memory allocation failure + * @return **new** boolean ctrl item or `NULL` upon memory allocation failure */ cbor_item_t *cbor_build_bool(bool value); diff --git a/lib/libelf/elf_strptr.c b/lib/libelf/elf_strptr.c index 05345d386b3..c6727ccb1e5 100644 --- a/lib/libelf/elf_strptr.c +++ b/lib/libelf/elf_strptr.c @@ -29,7 +29,7 @@ #include "_libelf.h" -ELFTC_VCSID("$Id: elf_strptr.c,v 1.2 2021/09/02 21:12:25 deraadt Exp $"); +ELFTC_VCSID("$Id: elf_strptr.c,v 1.3 2022/12/27 17:10:06 jmc Exp $"); /* * Convert an ELF section#,offset pair to a string pointer. @@ -83,7 +83,7 @@ elf_strptr(Elf *e, size_t scndx, size_t offset) } } else { /* - * Otherwise, the `d_off' members are not useable and + * Otherwise, the `d_off' members are not usable and * we need to compute offsets ourselves, taking into * account 'holes' in coverage of the section introduced * by alignment requirements. diff --git a/lib/libkeynote/keynote.y b/lib/libkeynote/keynote.y index 8a650341ed6..c4fc0724cab 100644 --- a/lib/libkeynote/keynote.y +++ b/lib/libkeynote/keynote.y @@ -1,4 +1,4 @@ -/* $OpenBSD: keynote.y,v 1.18 2017/04/27 15:35:36 millert Exp $ */ +/* $OpenBSD: keynote.y,v 1.19 2022/12/27 17:10:06 jmc Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -792,7 +792,7 @@ checkexception(int i) /* - * Integer exponentation -- copied from Schneier's AC2, page 244. + * Integer exponentiation -- copied from Schneier's AC2, page 244. */ static int intpow(int x, int y) diff --git a/lib/libkeynote/parse_assertion.c b/lib/libkeynote/parse_assertion.c index be0980a0de4..59dd7d162a4 100644 --- a/lib/libkeynote/parse_assertion.c +++ b/lib/libkeynote/parse_assertion.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse_assertion.c,v 1.16 2015/12/14 03:25:59 mmcc Exp $ */ +/* $OpenBSD: parse_assertion.c,v 1.17 2022/12/27 17:10:06 jmc Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@dsl.cis.upenn.edu) * @@ -395,7 +395,7 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) for (i = 0, j = len; i < j && isspace((unsigned char)as->as_buf[i]); i++) ; - /* Keyword must start at begining of buffer or line */ + /* Keyword must start at beginning of buffer or line */ if ((i >= j) || ((i != 0) && (as->as_buf[i - 1] != '\n'))) { keynote_free_assertion(as); @@ -407,11 +407,11 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) { ks = as->as_buf + i; - /* Mark begining of assertion for signature purposes */ + /* Mark beginning of assertion for signature purposes */ if (as->as_startofsignature == NULL) as->as_startofsignature = ks; - /* This catches comments at the begining of an assertion only */ + /* This catches comments at the beginning of an assertion only */ if (as->as_buf[i] == '#') /* Comment */ { seen_field = 1; @@ -435,10 +435,10 @@ keynote_parse_assertion(char *buf, int len, int assertion_flags) return NULL; } - /* ks points at begining of keyword, ke points at end */ + /* ks points at beginning of keyword, ke points at end */ ke = as->as_buf + i; - /* ts points at begining of value field */ + /* ts points at beginning of value field */ ts = as->as_buf + i + 1; /* Skip ':' */ /* diff --git a/lib/libm/arch/aarch64/fenv.c b/lib/libm/arch/aarch64/fenv.c index f660df6e342..85af578a4f8 100644 --- a/lib/libm/arch/aarch64/fenv.c +++ b/lib/libm/arch/aarch64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2022/08/29 02:01:18 jsg Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz * All rights reserved. @@ -251,7 +251,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/alpha/fenv.c b/lib/libm/arch/alpha/fenv.c index d9ea53d564d..cb19768e940 100644 --- a/lib/libm/arch/alpha/fenv.c +++ b/lib/libm/arch/alpha/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.4 2016/09/12 19:47:01 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.5 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -319,7 +319,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/amd64/fenv.c b/lib/libm/arch/amd64/fenv.c index d6088075c8e..912182f47d4 100644 --- a/lib/libm/arch/amd64/fenv.c +++ b/lib/libm/arch/amd64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:01 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* $NetBSD: fenv.c,v 1.1 2010/07/31 21:47:53 joerg Exp $ */ /*- @@ -76,7 +76,7 @@ feclearexcept(int excepts) /* Clear the requested floating-point exceptions */ fenv.__x87.__status &= ~excepts; - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (fenv)); /* Same for SSE environment */ @@ -155,7 +155,7 @@ fesetexceptflag(const fexcept_t *flagp, int excepts) fenv.__x87.__status &= ~excepts; fenv.__x87.__status |= *flagp & excepts; - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (fenv)); /* Same for SSE environment */ @@ -318,7 +318,7 @@ DEF_STD(feholdexcept); int fesetenv(const fenv_t *envp) { - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (*envp)); /* Store the MXCSR register */ @@ -359,7 +359,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/arm/fenv.c b/lib/libm/arch/arm/fenv.c index 4306b8c85f4..f5d7852b976 100644 --- a/lib/libm/arch/arm/fenv.c +++ b/lib/libm/arch/arm/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2018/02/28 11:16:54 kettenis Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -294,7 +294,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/hppa/fenv.c b/lib/libm/arch/hppa/fenv.c index 6fccf79eba6..398129afbee 100644 --- a/lib/libm/arch/hppa/fenv.c +++ b/lib/libm/arch/hppa/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:01 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -322,7 +322,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/i387/fenv.c b/lib/libm/arch/i387/fenv.c index 58922fde92e..cfb98696892 100644 --- a/lib/libm/arch/i387/fenv.c +++ b/lib/libm/arch/i387/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.6 2021/09/17 15:11:57 deraadt Exp $ */ +/* $OpenBSD: fenv.c,v 1.7 2022/12/27 17:10:07 jmc Exp $ */ /* $NetBSD: fenv.c,v 1.3 2010/08/01 06:34:38 taca Exp $ */ /*- @@ -106,7 +106,7 @@ feclearexcept(int excepts) /* Clear the requested floating-point exceptions */ fenv.__x87.__status &= ~excepts; - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (fenv)); /* Same for SSE environment */ @@ -188,7 +188,7 @@ fesetexceptflag(const fexcept_t *flagp, int excepts) fenv.__x87.__status &= ~excepts; fenv.__x87.__status |= *flagp & excepts; - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (fenv)); /* Same for SSE environment */ @@ -359,7 +359,7 @@ DEF_STD(feholdexcept); int fesetenv(const fenv_t *envp) { - /* Load the x87 floating-point environent */ + /* Load the x87 floating-point environment */ __asm__ volatile ("fldenv %0" : : "m" (*envp)); /* Store the MXCSR register */ @@ -402,7 +402,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/i387/s_ceil.S b/lib/libm/arch/i387/s_ceil.S index 235ddd5673b..419eca26213 100644 --- a/lib/libm/arch/i387/s_ceil.S +++ b/lib/libm/arch/i387/s_ceil.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ceil.S,v 1.4 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: s_ceil.S,v 1.5 2022/12/27 17:10:07 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -14,7 +14,7 @@ ENTRY(ceil) orw $0x0800,%dx /* round towards +oo */ andw $0xfbff,%dx movw %dx,(%esp) - fldcw (%esp) /* load modfied control word */ + fldcw (%esp) /* load modified control word */ fldl 12(%esp); /* round */ frndint diff --git a/lib/libm/arch/i387/s_ceilf.S b/lib/libm/arch/i387/s_ceilf.S index 7e19af6adb0..cc5f868c47f 100644 --- a/lib/libm/arch/i387/s_ceilf.S +++ b/lib/libm/arch/i387/s_ceilf.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_ceilf.S,v 1.4 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: s_ceilf.S,v 1.5 2022/12/27 17:10:07 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -14,7 +14,7 @@ ENTRY(ceilf) orw $0x0800,%dx /* round towards +oo */ andw $0xfbff,%dx movw %dx,(%esp) - fldcw (%esp) /* load modfied control word */ + fldcw (%esp) /* load modified control word */ flds 12(%esp); /* round */ frndint diff --git a/lib/libm/arch/i387/s_floor.S b/lib/libm/arch/i387/s_floor.S index 40453132178..26a675151ea 100644 --- a/lib/libm/arch/i387/s_floor.S +++ b/lib/libm/arch/i387/s_floor.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_floor.S,v 1.4 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: s_floor.S,v 1.5 2022/12/27 17:10:07 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -14,7 +14,7 @@ ENTRY(floor) orw $0x0400,%dx /* round towards -oo */ andw $0xf7ff,%dx movw %dx,(%esp) - fldcw (%esp) /* load modfied control word */ + fldcw (%esp) /* load modified control word */ fldl 12(%esp); /* round */ frndint diff --git a/lib/libm/arch/i387/s_floorf.S b/lib/libm/arch/i387/s_floorf.S index ee02d2be4e7..6b9dbef24fb 100644 --- a/lib/libm/arch/i387/s_floorf.S +++ b/lib/libm/arch/i387/s_floorf.S @@ -1,4 +1,4 @@ -/* $OpenBSD: s_floorf.S,v 1.4 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: s_floorf.S,v 1.5 2022/12/27 17:10:07 jmc Exp $ */ /* * Written by J.T. Conklin . * Public domain. @@ -14,7 +14,7 @@ ENTRY(floorf) orw $0x0400,%dx /* round towards -oo */ andw $0xf7ff,%dx movw %dx,(%esp) - fldcw (%esp) /* load modfied control word */ + fldcw (%esp) /* load modified control word */ flds 12(%esp); /* round */ frndint diff --git a/lib/libm/arch/m88k/fenv.c b/lib/libm/arch/m88k/fenv.c index 0b1a93c7a66..4f2179fd220 100644 --- a/lib/libm/arch/m88k/fenv.c +++ b/lib/libm/arch/m88k/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.7 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.8 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -311,7 +311,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/mips64/fenv.c b/lib/libm/arch/mips64/fenv.c index c2480b30e72..d5c282a549c 100644 --- a/lib/libm/arch/mips64/fenv.c +++ b/lib/libm/arch/mips64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -270,7 +270,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/powerpc/fenv.c b/lib/libm/arch/powerpc/fenv.c index 5ebe465b535..731a35b5622 100644 --- a/lib/libm/arch/powerpc/fenv.c +++ b/lib/libm/arch/powerpc/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -284,7 +284,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/powerpc64/fenv.c b/lib/libm/arch/powerpc64/fenv.c index 20e0251b899..50cab00d422 100644 --- a/lib/libm/arch/powerpc64/fenv.c +++ b/lib/libm/arch/powerpc64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.1 2020/06/28 08:19:34 kettenis Exp $ */ +/* $OpenBSD: fenv.c,v 1.2 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -284,7 +284,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/riscv64/fenv.c b/lib/libm/arch/riscv64/fenv.c index 5143ddf7d60..c3c1475327a 100644 --- a/lib/libm/arch/riscv64/fenv.c +++ b/lib/libm/arch/riscv64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.3 2021/05/12 02:28:25 jsg Exp $ */ +/* $OpenBSD: fenv.c,v 1.4 2022/12/27 17:10:07 jmc Exp $ */ /*- * Copyright (c) 2004-2005 David Schultz * All rights reserved. @@ -239,7 +239,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/sh/fenv.c b/lib/libm/arch/sh/fenv.c index 9c77c142f92..5c625f73c29 100644 --- a/lib/libm/arch/sh/fenv.c +++ b/lib/libm/arch/sh/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.5 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2011 Martynas Venckus @@ -331,7 +331,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/arch/sparc64/fenv.c b/lib/libm/arch/sparc64/fenv.c index 61c7063d335..86e7364158c 100644 --- a/lib/libm/arch/sparc64/fenv.c +++ b/lib/libm/arch/sparc64/fenv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fenv.c,v 1.6 2016/09/12 19:47:02 guenther Exp $ */ +/* $OpenBSD: fenv.c,v 1.7 2022/12/27 17:10:07 jmc Exp $ */ /* $NetBSD: fenv.c,v 1.1 2011/01/31 00:19:33 christos Exp $ */ /*- @@ -296,7 +296,7 @@ feupdateenv(const fenv_t *envp) DEF_STD(feupdateenv); /* - * The following functions are extentions to the standard + * The following functions are extensions to the standard */ int feenableexcept(int mask) diff --git a/lib/libm/src/e_lgamma_r.c b/lib/libm/src/e_lgamma_r.c index 92d1fac7ab1..f5a8f9826d3 100644 --- a/lib/libm/src/e_lgamma_r.c +++ b/lib/libm/src/e_lgamma_r.c @@ -24,7 +24,7 @@ * = log(6.3*5.3) + lgamma(5.3) * = log(6.3*5.3*4.3*3.3*2.3) + lgamma(2.3) * 2. Polynomial approximation of lgamma around its - * minimun ymin=1.461632144968362245 to maintain monotonicity. + * minimum ymin=1.461632144968362245 to maintain monotonicity. * On [ymin-0.23, ymin+0.27] (i.e., [1.23164,1.73163]), use * Let z = x-ymin; * lgamma(x) = -1.214862905358496078218 + z^2*poly(z) diff --git a/lib/libm/src/e_sqrt.c b/lib/libm/src/e_sqrt.c index e7b3ef44b5a..2ac3a9d642b 100644 --- a/lib/libm/src/e_sqrt.c +++ b/lib/libm/src/e_sqrt.c @@ -38,7 +38,7 @@ * If (2) is false, then q = q ; otherwise q = q + 2 . * i+1 i i+1 i * - * With some algebric manipulation, it is not difficult to see + * With some algebraic manipulation, it is not difficult to see * that (2) is equivalent to * -(i+1) * s + 2 <= y (3) @@ -267,7 +267,7 @@ A. sqrt(x) by Newton Iteration This formula has one division fewer than the one above; however, it requires more multiplications and additions. Also x must be scaled in advance to avoid spurious overflow in evaluating the - expression 3y*y+x. Hence it is not recommended uless division + expression 3y*y+x. Hence it is not recommended unless division is slow. If division is very slow, then one should use the reciproot algorithm given in section B. diff --git a/lib/libm/src/k_rem_pio2.c b/lib/libm/src/k_rem_pio2.c index 80279a74377..972c1264fd6 100644 --- a/lib/libm/src/k_rem_pio2.c +++ b/lib/libm/src/k_rem_pio2.c @@ -48,7 +48,7 @@ * 64-bit precision 2 * 113-bit precision 3 * The actual value is the sum of them. Thus for 113-bit - * precison, one may have to do something like: + * precision, one may have to do something like: * * long double t,w,r_head, r_tail; * t = (long double)y[2] + (long double)y[1]; diff --git a/lib/libm/src/ld80/e_lgammal.c b/lib/libm/src/ld80/e_lgammal.c index 18c445f71ae..50565dcaad8 100644 --- a/lib/libm/src/ld80/e_lgammal.c +++ b/lib/libm/src/ld80/e_lgammal.c @@ -39,7 +39,7 @@ * = log(6.3*5.3) + lgamma(5.3) * = log(6.3*5.3*4.3*3.3*2.3) + lgamma(2.3) * 2. Polynomial approximation of lgamma around its - * minimun ymin=1.461632144968362245 to maintain monotonicity. + * minimum ymin=1.461632144968362245 to maintain monotonicity. * On [ymin-0.23, ymin+0.27] (i.e., [1.23164,1.73163]), use * Let z = x-ymin; * lgamma(x) = -1.214862905358496078218 + z^2*poly(z) diff --git a/lib/libm/src/s_cbrt.c b/lib/libm/src/s_cbrt.c index af6b75d8d2b..8ea4003aded 100644 --- a/lib/libm/src/s_cbrt.c +++ b/lib/libm/src/s_cbrt.c @@ -72,7 +72,7 @@ cbrt(double x) r=(r-t)/(w+r); /* r-s is exact */ t=t+t*r; - /* retore the sign bit */ + /* restore the sign bit */ GET_HIGH_WORD(high,t); SET_HIGH_WORD(t,high|sign); return(t); diff --git a/lib/libm/src/s_cbrtf.c b/lib/libm/src/s_cbrtf.c index da59ae83e49..44829b0c0e8 100644 --- a/lib/libm/src/s_cbrtf.c +++ b/lib/libm/src/s_cbrtf.c @@ -60,7 +60,7 @@ cbrtf(float x) s=C+r*t; t*=G+F/(s+E+D/s); - /* retore the sign bit */ + /* restore the sign bit */ GET_FLOAT_WORD(high,t); SET_FLOAT_WORD(t,high|sign); return(t); diff --git a/lib/libpcap/fad-getad.c b/lib/libpcap/fad-getad.c index 829381a3081..b5b2bad31e1 100644 --- a/lib/libpcap/fad-getad.c +++ b/lib/libpcap/fad-getad.c @@ -101,7 +101,7 @@ add_or_find_if(pcap_if_t **curdev_ret, pcap_if_t **alldevs, const char *name, * but that don't support packet capture aren't included * in the list. An example of this is loopback interfaces * on Solaris; we don't just omit loopback interfaces - * becaue you *can* capture on loopback interfaces on some + * because you *can* capture on loopback interfaces on some * OSes. */ p = pcap_open_live(name, 68, 0, 0, errbuf); diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c index d8005da4893..e5f5d33423c 100644 --- a/lib/libpcap/gencode.c +++ b/lib/libpcap/gencode.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gencode.c,v 1.63 2022/05/28 03:20:33 deraadt Exp $ */ +/* $OpenBSD: gencode.c,v 1.64 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998 @@ -1625,7 +1625,7 @@ iphl_to_x(void) tmp->s.k = 2; sappend(s, tmp); - /* A = A + X (add off_nl again to compansate) */ + /* A = A + X (add off_nl again to compensate) */ sappend(s, new_stmt(BPF_ALU|BPF_ADD|BPF_X)); /* MEM[iphl_reg] = A */ diff --git a/lib/librpcsvc/mount.x b/lib/librpcsvc/mount.x index f6cacb8f7f0..9bc20096157 100644 --- a/lib/librpcsvc/mount.x +++ b/lib/librpcsvc/mount.x @@ -1,4 +1,4 @@ -/* $OpenBSD: mount.x,v 1.5 2010/09/01 14:43:34 millert Exp $ */ +/* $OpenBSD: mount.x,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -110,7 +110,7 @@ program MOUNTPROG { version MOUNTVERS { /* * Does no work. It is made available in all RPC services - * to allow server reponse testing and timing + * to allow server response testing and timing */ void MOUNTPROC_NULL(void) = 0; diff --git a/lib/librpcsvc/nfs_prot.x b/lib/librpcsvc/nfs_prot.x index 7634448463c..1712caa60f1 100644 --- a/lib/librpcsvc/nfs_prot.x +++ b/lib/librpcsvc/nfs_prot.x @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_prot.x,v 1.5 2010/09/01 14:43:34 millert Exp $ */ +/* $OpenBSD: nfs_prot.x,v 1.6 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -119,7 +119,7 @@ struct fattr { unsigned uid; /* owner user id */ unsigned gid; /* owner group id */ unsigned size; /* file size in bytes */ - unsigned blocksize; /* prefered block size */ + unsigned blocksize; /* preferred block size */ unsigned rdev; /* special device # */ unsigned blocks; /* Kb of disk used by file */ unsigned fsid; /* device # */ diff --git a/lib/librpcsvc/rnusers.x b/lib/librpcsvc/rnusers.x index 00c3913c50f..822a023e19e 100644 --- a/lib/librpcsvc/rnusers.x +++ b/lib/librpcsvc/rnusers.x @@ -1,4 +1,4 @@ -/* $OpenBSD: rnusers.x,v 1.14 2010/09/01 14:43:34 millert Exp $ */ +/* $OpenBSD: rnusers.x,v 1.15 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2010, Oracle America, Inc. @@ -51,7 +51,7 @@ % %/* % * This is the structure used in version 2 of the rusersd RPC service. -% * It corresponds to the utmp structure for BSD sytems. +% * It corresponds to the utmp structure for BSD systems. % */ % %#define RNUSERS_MAXUSERLEN 8 diff --git a/lib/librthread/rthread.c b/lib/librthread/rthread.c index 8825e7844af..53f1d9ca82b 100644 --- a/lib/librthread/rthread.c +++ b/lib/librthread/rthread.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread.c,v 1.99 2017/11/04 22:53:57 jca Exp $ */ +/* $OpenBSD: rthread.c,v 1.100 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst * All Rights Reserved. @@ -49,7 +49,7 @@ typeof(dlctl) dlctl asm("_dlctl") __attribute__((weak)); REDIRECT_SYSCALL(getthrid); -/* weak stub to be overriden by ld.so */ +/* weak stub to be overridden by ld.so */ int dlctl(void *handle, int cmd, void *data) { return 0; } /* diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c index c58a13f4fe1..b1e7f74e48b 100644 --- a/lib/libskey/skeylogin.c +++ b/lib/libskey/skeylogin.c @@ -10,7 +10,7 @@ * * S/Key verification check, lookups, and authentication. * - * $OpenBSD: skeylogin.c,v 1.62 2019/01/25 00:19:26 millert Exp $ + * $OpenBSD: skeylogin.c,v 1.63 2022/12/27 17:10:07 jmc Exp $ */ #ifdef QUOTA @@ -108,7 +108,7 @@ skeygetent(int fd, struct skey *mp, const char *name) } if (fd == -1) { - /* Open the user's databse entry, creating it as needed. */ + /* Open the user's database entry, creating it as needed. */ if (snprintf(filename, sizeof(filename), "%s/%s", _PATH_SKEYDIR, name) >= sizeof(filename)) { errno = ENAMETOOLONG; diff --git a/lib/libsndio/mio_priv.h b/lib/libsndio/mio_priv.h index 7373a50b764..f39833b19aa 100644 --- a/lib/libsndio/mio_priv.h +++ b/lib/libsndio/mio_priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mio_priv.h,v 1.12 2015/11/22 12:01:23 ratchov Exp $ */ +/* $OpenBSD: mio_priv.h,v 1.13 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -28,7 +28,7 @@ struct mio_hdl { struct mio_ops *ops; unsigned mode; /* MIO_IN | MIO_OUT */ int nbio; /* true if non-blocking io */ - int eof; /* true if error occured */ + int eof; /* true if error occurred */ }; /* diff --git a/lib/libsndio/sio_priv.h b/lib/libsndio/sio_priv.h index 9f143320862..ee933f6eb31 100644 --- a/lib/libsndio/sio_priv.h +++ b/lib/libsndio/sio_priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_priv.h,v 1.10 2022/04/29 08:30:48 ratchov Exp $ */ +/* $OpenBSD: sio_priv.h,v 1.11 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -33,7 +33,7 @@ struct sio_hdl { unsigned mode; /* SIO_PLAY | SIO_REC */ int started; /* true if started */ int nbio; /* true if non-blocking io */ - int eof; /* true if error occured */ + int eof; /* true if error occurred */ int rdrop; /* recorded bytes to drop */ int wsil; /* silence to play */ int rused; /* bytes used in read buffer */ diff --git a/lib/libsndio/sio_sun.c b/lib/libsndio/sio_sun.c index 28636485b16..36d69f0c281 100644 --- a/lib/libsndio/sio_sun.c +++ b/lib/libsndio/sio_sun.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sio_sun.c,v 1.29 2022/04/29 08:30:48 ratchov Exp $ */ +/* $OpenBSD: sio_sun.c,v 1.30 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2008 Alexandre Ratchov * @@ -586,7 +586,7 @@ sio_sun_revents(struct sio_hdl *sh, struct pollfd *pfd) /* * GETPOS reports positions including xruns, - * so we have to substract to get the real position + * so we have to subtract to get the real position */ hdl->idelta -= dierr; hdl->odelta -= doerr; diff --git a/lib/libsndio/sioctl_priv.h b/lib/libsndio/sioctl_priv.h index bfe806c0757..5a58ba8901a 100644 --- a/lib/libsndio/sioctl_priv.h +++ b/lib/libsndio/sioctl_priv.h @@ -1,4 +1,4 @@ -/* $OpenBSD: sioctl_priv.h,v 1.1 2020/02/26 13:53:58 ratchov Exp $ */ +/* $OpenBSD: sioctl_priv.h,v 1.2 2022/12/27 17:10:07 jmc Exp $ */ /* * Copyright (c) 2014-2020 Alexandre Ratchov * @@ -32,7 +32,7 @@ struct sioctl_hdl { void *ctl_arg; unsigned int mode; /* SIOCTL_READ | SIOCTL_WRITE */ int nbio; /* true if non-blocking io */ - int eof; /* true if error occured */ + int eof; /* true if error occurred */ }; /* diff --git a/lib/libusbhid/parse.c b/lib/libusbhid/parse.c index 7384bf3a591..faebdcfd368 100644 --- a/lib/libusbhid/parse.c +++ b/lib/libusbhid/parse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.c,v 1.12 2020/06/05 00:51:56 jsg Exp $ */ +/* $OpenBSD: parse.c,v 1.13 2022/12/27 17:10:07 jmc Exp $ */ /* $NetBSD: parse.c,v 1.2 2001/12/29 20:44:22 augustss Exp $ */ /* @@ -562,7 +562,7 @@ hid_report_size(report_desc_t r, enum hid_kind k, int id) } hid_end_parse(d); - /* safety check - can happen in case of currupt descriptors */ + /* safety check - can happen in case of corrupt descriptors */ if (lpos > hpos) temp = 0; else diff --git a/lib/libutil/bcrypt_pbkdf.c b/lib/libutil/bcrypt_pbkdf.c index 79eeddd867e..950dda8910e 100644 --- a/lib/libutil/bcrypt_pbkdf.c +++ b/lib/libutil/bcrypt_pbkdf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcrypt_pbkdf.c,v 1.16 2020/08/02 18:35:48 tb Exp $ */ +/* $OpenBSD: bcrypt_pbkdf.c,v 1.17 2022/12/27 17:10:08 jmc Exp $ */ /* * Copyright (c) 2013 Ted Unangst * @@ -33,7 +33,7 @@ * function with the following modifications: * 1. The input password and salt are preprocessed with SHA512. * 2. The output length is expanded to 256 bits. - * 3. Subsequently the magic string to be encrypted is lengthened and modifed + * 3. Subsequently the magic string to be encrypted is lengthened and modified * to "OxychromaticBlowfishSwatDynamite" * 4. The hash function is defined to perform 64 rounds of initial state * expansion. (More rounds are performed by iterating the hash.) diff --git a/lib/libutil/fmt_scaled.c b/lib/libutil/fmt_scaled.c index 374901ffe1e..7bc82df55cd 100644 --- a/lib/libutil/fmt_scaled.c +++ b/lib/libutil/fmt_scaled.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fmt_scaled.c,v 1.22 2022/03/11 09:04:59 dtucker Exp $ */ +/* $OpenBSD: fmt_scaled.c,v 1.23 2022/12/27 17:10:08 jmc Exp $ */ /* * Copyright (c) 2001, 2002, 2003 Ian F. Darwin. All rights reserved. @@ -182,7 +182,7 @@ scan_scaled(char *scaled, long long *result) /* scale whole part */ whole *= scale_fact; - /* truncate fpart so it does't overflow. + /* truncate fpart so it doesn't overflow. * then scale fractional part. */ while (fpart >= LLONG_MAX / scale_fact) { diff --git a/lib/libutil/login_fbtab.c b/lib/libutil/login_fbtab.c index cd76da264f7..ba6e83e1038 100644 --- a/lib/libutil/login_fbtab.c +++ b/lib/libutil/login_fbtab.c @@ -1,4 +1,4 @@ -/* $OpenBSD: login_fbtab.c,v 1.17 2022/04/20 21:55:17 jcs Exp $ */ +/* $OpenBSD: login_fbtab.c,v 1.18 2022/12/27 17:10:08 jmc Exp $ */ /************************************************************************ * Copyright 1995 by Wietse Venema. All rights reserved. Some individual @@ -28,7 +28,7 @@ SunOS 4.1.x fbtab(5) and SunOS 5.x logindevperm(4) manual pages. The program first looks for /etc/fbtab. If that file cannot be opened it attempts to process /etc/logindevperm. - We expect entries with the folowing format: + We expect entries with the following format: Comments start with a # and extend to the end of the line. diff --git a/lib/libz/README b/lib/libz/README index ba34d1894a9..aa9a6d77120 100644 --- a/lib/libz/README +++ b/lib/libz/README @@ -64,7 +64,7 @@ Notes for some targets: - zlib doesn't work with gcc 2.6.3 on a DEC 3000/300LX under OSF/1 2.1 it works when compiled with cc. -- On Digital Unix 4.0D (formely OSF/1) on AlphaServer, the cc option -std1 is +- On Digital Unix 4.0D (formerly OSF/1) on AlphaServer, the cc option -std1 is necessary to get gzprintf working correctly. This is done by configure. - zlib doesn't work on HP-UX 9.05 with some versions of /bin/cc. It works with diff --git a/lib/libz/compress.3 b/lib/libz/compress.3 index 6cc939bb336..285fc4123b7 100644 --- a/lib/libz/compress.3 +++ b/lib/libz/compress.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: compress.3,v 1.22 2021/12/11 17:25:10 jmc Exp $ +.\" $OpenBSD: compress.3,v 1.23 2022/12/27 17:10:08 jmc Exp $ .\" .\" Copyright (C) 1995-2017 Jean-loup Gailly and Mark Adler .\" @@ -23,7 +23,7 @@ .\" .\" This page corresponds to zlib version 1.2.3 .\" -.Dd $Mdocdate: December 11 2021 $ +.Dd $Mdocdate: December 27 2022 $ .Dt COMPRESS 3 .Os .Sh NAME @@ -1247,7 +1247,7 @@ If is called with dictionary equal to .Dv NULL , then only the dictionary length is returned, and nothing is copied. -Similary, if +Similarly, if .Fa dictLength is .Dv NULL , @@ -1744,7 +1744,7 @@ If is called with dictionary equal to .Dv NULL , then only the dictionary length is returned, and nothing is copied. -Similary, if +Similarly, if .Fa dictLength is .Dv NULL , then it is not set. diff --git a/lib/libz/crc32.c b/lib/libz/crc32.c index 0796b0f4c84..f67b6619154 100644 --- a/lib/libz/crc32.c +++ b/lib/libz/crc32.c @@ -779,8 +779,8 @@ unsigned long ZEXPORT crc32_z(crc, buf, len) words = (z_word_t const *)buf; /* Do endian check at execution time instead of compile time, since ARM - processors can change the endianess at execution time. If the - compiler knows what the endianess will be, it can optimize out the + processors can change the endianness at execution time. If the + compiler knows what the endianness will be, it can optimize out the check and the unused branch. */ endian = 1; if (*(unsigned char *)&endian) {