-/* $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 <martijn@openbsd.org>
*
* - 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
* 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
/*
-/* $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 $ */
/*
* 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
-/* $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 $ */
/*
* 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
-/* $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 <jtc@netbsd.org>.
* Public domain.
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
-/* $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 <mengshi.li.mars@gmail.com>
*
#include <machine/spinlock.h>
/*
- * 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
-/* $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
* 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
*
-/* $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 <eric@faurot.net>
*
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));
}
-/* $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 <eric@openbsd.org>
*
}
/*
- * 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
-/* $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 <eric@openbsd.org>
*
* 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.
*
* 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.
*/
-/* $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 <eric@openbsd.org>
*
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.
-/* $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
}
/*
- * 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.
*/
-/* $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
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.
*/
-# $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.
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.
-/* $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.
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.
*/
-/* $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 <guenther@openbsd.org>
*
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;
-/* $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 <guenther@openbsd.org>
*
_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;
****************************************************************/
-/* 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
-/* $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 <millert@openbsd.org>
/*
* 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)
-/* $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.
{
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.
-/* $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.
* 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.
*/
-/* $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 <guenther@openbsd.org>
*
#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);
#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
-/* $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 <jtc@netbsd.org>.
* Public domain.
* 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.
*/
-/* $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 <gilles@openbsd.org>
goto enoent;
}
- /* Firey death and destruction unless we prefetched EOS. */
+ /* Fiery death and destruction unless we prefetched EOS. */
if (ch != '\0')
goto enoent;
-/* $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
* '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'
-/* $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 <provos@physnet.uni-hamburg.de>
#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 */
-/* $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 $ */
/*
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);
}
/*
- * 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);
-/* $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
sopno subno;
# define BACKSL (1<<CHAR_BIT)
- pos = HERE(); /* repetion op, if any, covers from here */
+ pos = HERE(); /* repetition op, if any, covers from here */
assert(MORE()); /* caller should have ensured this */
c = GETNEXT();
-/* $OpenBSD: svc_tcp.c,v 1.42 2022/02/14 03:38:59 guenther Exp $ */
+/* $OpenBSD: svc_tcp.c,v 1.43 2022/12/27 17:10:06 jmc Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
* svc_tcp.c, Server side for TCP/IP based RPC.
*
* Actually implements two flavors of transporter -
- * a tcp rendezvouser (a listner and connection establisher)
+ * a tcp rendezvouser (a listener and connection establisher)
* and a record/tcp stream.
*/
xprt->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) {
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.)
*/
-/* $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.
}
/*
- * 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
-/* $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.
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.
*/
* 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)
-/* $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.
* 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
-/* $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.
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) {
* 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
-/* $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.
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) {
-/* $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.
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()
*/
-/* $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.
* 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
-/* $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
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) {
-.\" $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
.\"
.\" @(#)ktrace.2 8.1 (Berkeley) 6/4/93
.\"
-.Dd $Mdocdate: July 30 2022 $
+.Dd $Mdocdate: December 27 2022 $
.Dt KTRACE 2
.Os
.Sh NAME
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
-/* $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 <kurt@openbsd.org>
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()
*/
-/* $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 <jb@cimlogic.com.au>.
* All rights reserved.
* 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))
/** High-level decoding error */
struct cbor_error {
- /** Aproximate position */
+ /** Approximate position */
size_t position;
/** Description */
cbor_error_code code;
/** 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);
#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.
}
} 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.
-/* $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)
*
/*
- * 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)
-/* $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)
*
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);
{
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;
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 ':' */
/*
-/* $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 <das@FreeBSD.ORG>
* All rights reserved.
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 $ */
/*-
/* 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 */
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 */
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 */
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 $ */
/*-
/* 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 */
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 */
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 */
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <jtc@netbsd.org>.
* Public domain.
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
-/* $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 <jtc@netbsd.org>.
* Public domain.
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
-/* $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 <jtc@netbsd.org>.
* Public domain.
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
-/* $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 <jtc@netbsd.org>.
* Public domain.
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
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <das@FreeBSD.ORG>
* All rights reserved.
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 <martynas@openbsd.org>
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
-/* $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 $ */
/*-
DEF_STD(feupdateenv);
/*
- * The following functions are extentions to the standard
+ * The following functions are extensions to the standard
*/
int
feenableexcept(int mask)
* = 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)
* 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)
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.
* 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];
* = 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)
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);
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);
* 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);
-/* $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
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 */
-/* $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.
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;
-/* $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.
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 # */
-/* $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.
%
%/*
% * 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
-/* $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 <tedu@openbsd.org>
* All Rights Reserved.
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; }
/*
*
* 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
}
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;
-/* $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 <alex@caoua.org>
*
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 */
};
/*
-/* $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 <alex@caoua.org>
*
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 */
-/* $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 <alex@caoua.org>
*
/*
* 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;
-/* $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 <alex@caoua.org>
*
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 */
};
/*
-/* $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 $ */
/*
}
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
-/* $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 <tedu@openbsd.org>
*
* 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.)
-/* $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.
/* 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) {
-/* $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
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.
- 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
-.\" $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
.\"
.\"
.\" 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
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 ,
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.
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) {