From 506971ff58c130f512700bb67574a7e2fdcd2f8c Mon Sep 17 00:00:00 2001 From: andvar Date: Thu, 3 Aug 2023 20:45:49 +0000 Subject: [PATCH] fix typos in comments and one definition, mainly s/sucket/socket/. --- lib/libm/src/math_private.h | 4 ++-- lib/librumpuser/rumpuser_daemonize.c | 6 +++--- tests/fs/common/fstest_puffs.c | 4 ++-- tests/lib/librumpclient/h_exec.c | 4 ++-- tests/lib/librumpclient/t_fd.c | 4 ++-- usr.sbin/altq/tbrconfig/tbrconfig.c | 4 ++-- usr.sbin/puffs/rump_syspuffs/rump_syspuffs.c | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/libm/src/math_private.h b/lib/libm/src/math_private.h index 14136a2f4baf..e30c3f047322 100644 --- a/lib/libm/src/math_private.h +++ b/lib/libm/src/math_private.h @@ -11,7 +11,7 @@ /* * from: @(#)fdlibm.h 5.1 93/09/24 - * $NetBSD: math_private.h,v 1.26 2022/08/27 08:31:59 christos Exp $ + * $NetBSD: math_private.h,v 1.27 2023/08/03 20:45:49 andvar Exp $ */ #ifndef _MATH_PRIVATE_H_ @@ -462,7 +462,7 @@ rnintf(float x) * The complications for extra precision are smaller for rnintl() since it * can safely assume that the rounding precision has been increased from * its default to FP_PE on x86. We don't exploit that here to get small - * optimizations from limiting the rangle to double. We just need it for + * optimizations from limiting the range to double. We just need it for * the magic number to work with long doubles. ld128 callers should use * rnint() instead of this if possible. ld80 callers should prefer * rnintl() since for amd64 this avoids swapping the register set, while diff --git a/lib/librumpuser/rumpuser_daemonize.c b/lib/librumpuser/rumpuser_daemonize.c index db04d2835fe5..071b057be066 100644 --- a/lib/librumpuser/rumpuser_daemonize.c +++ b/lib/librumpuser/rumpuser_daemonize.c @@ -1,4 +1,4 @@ -/* $NetBSD: rumpuser_daemonize.c,v 1.7 2014/11/04 19:05:17 pooka Exp $ */ +/* $NetBSD: rumpuser_daemonize.c,v 1.8 2023/08/03 20:45:49 andvar Exp $ */ /* * Copyright (c) 2010 Antti Kantee. All Rights Reserved. @@ -28,7 +28,7 @@ #include "rumpuser_port.h" #if !defined(lint) -__RCSID("$NetBSD: rumpuser_daemonize.c,v 1.7 2014/11/04 19:05:17 pooka Exp $"); +__RCSID("$NetBSD: rumpuser_daemonize.c,v 1.8 2023/08/03 20:45:49 andvar Exp $"); #endif /* !lint */ #include @@ -71,7 +71,7 @@ rumpuser_daemonize_begin(void) * after rump_init (which creates threads), do it now. Add * a little pipe trickery to make sure we don't exit until the * service is fully inited (i.e. interlocked daemonization). - * Actually, use sucketpair since that allows to easily steer + * Actually, use socketpair since that allows to easily steer * clear of the dreaded sigpipe. * * Note: We do *NOT* host chdir("/"). It's up to the caller to diff --git a/tests/fs/common/fstest_puffs.c b/tests/fs/common/fstest_puffs.c index 68d2af3653ec..0ededb0b1b21 100644 --- a/tests/fs/common/fstest_puffs.c +++ b/tests/fs/common/fstest_puffs.c @@ -1,4 +1,4 @@ -/* $NetBSD: fstest_puffs.c,v 1.13 2020/06/17 00:16:21 kamil Exp $ */ +/* $NetBSD: fstest_puffs.c,v 1.14 2023/08/03 20:45:50 andvar Exp $ */ /* * Copyright (c) 2010, 2011 The NetBSD Foundation, Inc. @@ -265,7 +265,7 @@ donewfs(const atf_tc_t *tc, void **argp, pflags = &args->pta_pflags; - /* Create sucketpair for communication with the real file server */ + /* Create socketpair for communication with the real file server */ if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sv) == -1) return errno; diff --git a/tests/lib/librumpclient/h_exec.c b/tests/lib/librumpclient/h_exec.c index cf2526ced636..f9176a02f09d 100644 --- a/tests/lib/librumpclient/h_exec.c +++ b/tests/lib/librumpclient/h_exec.c @@ -1,4 +1,4 @@ -/* $NetBSD: h_exec.c,v 1.6 2011/02/16 17:57:44 pooka Exp $ */ +/* $NetBSD: h_exec.c,v 1.7 2023/08/03 20:45:50 andvar Exp $ */ /* * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -67,7 +67,7 @@ main(int argc, char *argv[]) } } - /* open and listenize two TCP4 suckets */ + /* open and listenize two TCP4 sockets */ if ((s1 = rump_sys_socket(PF_INET, SOCK_STREAM, 0)) == -1) err(1, "socket 1"); if ((s2 = rump_sys_socket(PF_INET, SOCK_STREAM, 0)) == -1) diff --git a/tests/lib/librumpclient/t_fd.c b/tests/lib/librumpclient/t_fd.c index 7a4efaf5c79f..140e50c7c176 100644 --- a/tests/lib/librumpclient/t_fd.c +++ b/tests/lib/librumpclient/t_fd.c @@ -1,4 +1,4 @@ -/* $NetBSD: t_fd.c,v 1.7 2019/05/13 17:55:08 bad Exp $ */ +/* $NetBSD: t_fd.c,v 1.8 2023/08/03 20:45:50 andvar Exp $ */ /* * Copyright (c) 2011 The NetBSD Foundation, Inc. @@ -57,7 +57,7 @@ ATF_TC_HEAD(sigio, tc) "SIGIO"); } -#define RUMPSERV "unix://sucket" +#define RUMPSERV "unix://socket" ATF_TC_CLEANUP(bigenough, tc){system("env RUMP_SERVER=" RUMPSERV " rump.halt");} ATF_TC_CLEANUP(sigio, tc) { system("env RUMP_SERVER=" RUMPSERV " rump.halt"); } diff --git a/usr.sbin/altq/tbrconfig/tbrconfig.c b/usr.sbin/altq/tbrconfig/tbrconfig.c index ca2edce931e7..0ed6703aace4 100644 --- a/usr.sbin/altq/tbrconfig/tbrconfig.c +++ b/usr.sbin/altq/tbrconfig/tbrconfig.c @@ -1,4 +1,4 @@ -/* $NetBSD: tbrconfig.c,v 1.4 2011/08/29 20:38:54 joerg Exp $ */ +/* $NetBSD: tbrconfig.c,v 1.5 2023/08/03 20:45:50 andvar Exp $ */ /* $KAME: tbrconfig.c,v 1.3 2001/05/08 04:36:39 itojun Exp $ */ /* * Copyright (C) 2000 @@ -237,7 +237,7 @@ atobytes(const char *s) } /* - * use heuristics to determin the bucket size + * use heuristics to determine the bucket size */ static u_int size_bucket(const char *ifname, const u_int rate) diff --git a/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.c b/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.c index 63bd0369083b..a31fa6e69975 100644 --- a/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.c +++ b/usr.sbin/puffs/rump_syspuffs/rump_syspuffs.c @@ -1,4 +1,4 @@ -/* $NetBSD: rump_syspuffs.c,v 1.13 2019/02/01 09:06:07 mrg Exp $ */ +/* $NetBSD: rump_syspuffs.c,v 1.14 2023/08/03 20:45:50 andvar Exp $ */ /* * Copyright (c) 2008 Antti Kantee. All Rights Reserved. @@ -98,7 +98,7 @@ mount_syspuffs_parseargs(int argc, char *argv[], if (argc < 2) usage(); - /* Create sucketpair for communication with the real file server */ + /* Create socketpair for communication with the real file server */ if (socketpair(PF_LOCAL, SOCK_STREAM, 0, sv) == -1) err(1, "socketpair");