Fri Aug 13 20:19:14 2021 UTC ()
s/bacause/because/


(andvar)
diff -r1.8 -r1.9 src/tests/sys/uvm/t_uvm_physseg.c
diff -r1.136 -r1.137 src/usr.sbin/syslogd/syslogd.c

cvs diff -r1.8 -r1.9 src/tests/sys/uvm/t_uvm_physseg.c (expand / switch to unified diff)

--- src/tests/sys/uvm/t_uvm_physseg.c 2019/01/16 13:54:17 1.8
+++ src/tests/sys/uvm/t_uvm_physseg.c 2021/08/13 20:19:13 1.9
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: t_uvm_physseg.c,v 1.8 2019/01/16 13:54:17 fox Exp $ */ 1/* $NetBSD: t_uvm_physseg.c,v 1.9 2021/08/13 20:19:13 andvar Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2015, 2016 The NetBSD Foundation, Inc. 4 * Copyright (c) 2015, 2016 The NetBSD Foundation, Inc.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * This code is derived from software contributed to The NetBSD Foundation 7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Santhosh N. Raju <santhosh.raju@gmail.com> and 8 * by Santhosh N. Raju <santhosh.raju@gmail.com> and
9 * by Cherry G. Mathew 9 * by Cherry G. Mathew
10 * 10 *
11 * Redistribution and use in source and binary forms, with or without 11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions 12 * modification, are permitted provided that the following conditions
13 * are met: 13 * are met:
14 * 1. Redistributions of source code must retain the above copyright 14 * 1. Redistributions of source code must retain the above copyright
@@ -21,27 +21,27 @@ @@ -21,27 +21,27 @@
21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
30 * POSSIBILITY OF SUCH DAMAGE. 30 * POSSIBILITY OF SUCH DAMAGE.
31 */ 31 */
32 32
33#include <sys/cdefs.h> 33#include <sys/cdefs.h>
34__RCSID("$NetBSD: t_uvm_physseg.c,v 1.8 2019/01/16 13:54:17 fox Exp $"); 34__RCSID("$NetBSD: t_uvm_physseg.c,v 1.9 2021/08/13 20:19:13 andvar Exp $");
35 35
36/* 36/*
37 * If this line is commented out tests related to uvm_physseg_get_pmseg() 37 * If this line is commented out tests related to uvm_physseg_get_pmseg()
38 * wont run. 38 * wont run.
39 * 39 *
40 * Have a look at machine/uvm_physseg.h for more details. 40 * Have a look at machine/uvm_physseg.h for more details.
41 */ 41 */
42#define __HAVE_PMAP_PHYSSEG 42#define __HAVE_PMAP_PHYSSEG
43 43
44/* 44/*
45 * This is a dummy struct used for testing purposes 45 * This is a dummy struct used for testing purposes
46 * 46 *
47 * In reality this struct would exist in the MD part of the code residing in 47 * In reality this struct would exist in the MD part of the code residing in
@@ -2241,27 +2241,27 @@ ATF_TC_BODY(uvm_page_physunload_force, t @@ -2241,27 +2241,27 @@ ATF_TC_BODY(uvm_page_physunload_force, t
2241 uvm_physseg_t upm; 2241 uvm_physseg_t upm;
2242 2242
2243 setup(); 2243 setup();
2244 upm = uvm_page_physload(VALID_START_PFN_1, VALID_END_PFN_1, 2244 upm = uvm_page_physload(VALID_START_PFN_1, VALID_END_PFN_1,
2245 VALID_AVAIL_START_PFN_1, VALID_AVAIL_END_PFN_1, VM_FREELIST_DEFAULT); 2245 VALID_AVAIL_START_PFN_1, VALID_AVAIL_END_PFN_1, VM_FREELIST_DEFAULT);
2246 2246
2247 ATF_REQUIRE_EQ(1, uvm_physseg_get_entries()); 2247 ATF_REQUIRE_EQ(1, uvm_physseg_get_entries());
2248 2248
2249 ATF_REQUIRE_EQ(0, uvmexp.npages); 2249 ATF_REQUIRE_EQ(0, uvmexp.npages);
2250 2250
2251 /* Insert more than one segment iff VM_PHYSSEG_MAX > 1 */ 2251 /* Insert more than one segment iff VM_PHYSSEG_MAX > 1 */
2252#if VM_PHYSSEG_MAX > 1 2252#if VM_PHYSSEG_MAX > 1
2253 /* 2253 /*
2254 * We have couple of physloads done this is bacause of the fact that if 2254 * We have couple of physloads done this is because of the fact that if
2255 * we physunload all the PFs from a given range and we have only one 2255 * we physunload all the PFs from a given range and we have only one
2256 * segment in total a panic() is called 2256 * segment in total a panic() is called
2257 */ 2257 */
2258 uvm_page_physload(VALID_START_PFN_2, VALID_END_PFN_2, 2258 uvm_page_physload(VALID_START_PFN_2, VALID_END_PFN_2,
2259 VALID_AVAIL_START_PFN_2, VALID_AVAIL_END_PFN_2, VM_FREELIST_DEFAULT); 2259 VALID_AVAIL_START_PFN_2, VALID_AVAIL_END_PFN_2, VM_FREELIST_DEFAULT);
2260 2260
2261 ATF_REQUIRE_EQ(2, uvm_physseg_get_entries()); 2261 ATF_REQUIRE_EQ(2, uvm_physseg_get_entries());
2262#endif 2262#endif
2263 2263
2264#if VM_PHYSSEG_MAX == 1 2264#if VM_PHYSSEG_MAX == 1
2265 atf_tc_expect_signal(SIGABRT, 2265 atf_tc_expect_signal(SIGABRT,
2266 "cannot uvm_page_physunload() the last segment"); 2266 "cannot uvm_page_physunload() the last segment");
2267#endif 2267#endif

cvs diff -r1.136 -r1.137 src/usr.sbin/syslogd/syslogd.c (expand / switch to unified diff)

--- src/usr.sbin/syslogd/syslogd.c 2020/11/08 01:12:46 1.136
+++ src/usr.sbin/syslogd/syslogd.c 2021/08/13 20:19:14 1.137
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: syslogd.c,v 1.136 2020/11/08 01:12:46 dholland Exp $ */ 1/* $NetBSD: syslogd.c,v 1.137 2021/08/13 20:19:14 andvar Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1983, 1988, 1993, 1994 4 * Copyright (c) 1983, 1988, 1993, 1994
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -29,27 +29,27 @@ @@ -29,27 +29,27 @@
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33#ifndef lint 33#ifndef lint
34__COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\ 34__COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993, 1994\
35 The Regents of the University of California. All rights reserved."); 35 The Regents of the University of California. All rights reserved.");
36#endif /* not lint */ 36#endif /* not lint */
37 37
38#ifndef lint 38#ifndef lint
39#if 0 39#if 0
40static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94"; 40static char sccsid[] = "@(#)syslogd.c 8.3 (Berkeley) 4/4/94";
41#else 41#else
42__RCSID("$NetBSD: syslogd.c,v 1.136 2020/11/08 01:12:46 dholland Exp $"); 42__RCSID("$NetBSD: syslogd.c,v 1.137 2021/08/13 20:19:14 andvar Exp $");
43#endif 43#endif
44#endif /* not lint */ 44#endif /* not lint */
45 45
46/* 46/*
47 * syslogd -- log system messages 47 * syslogd -- log system messages
48 * 48 *
49 * This program implements a system log. It takes a series of lines. 49 * This program implements a system log. It takes a series of lines.
50 * Each line may have a priority, signified as "<n>" as 50 * Each line may have a priority, signified as "<n>" as
51 * the first characters of the line. If this is 51 * the first characters of the line. If this is
52 * not present, a default priority is used. 52 * not present, a default priority is used.
53 * 53 *
54 * To kill syslogd, send a signal 15 (terminate). A signal 1 (hup) will 54 * To kill syslogd, send a signal 15 (terminate). A signal 1 (hup) will
55 * cause it to reread its configuration file. 55 * cause it to reread its configuration file.
@@ -570,27 +570,27 @@ getgroup: @@ -570,27 +570,27 @@ getgroup:
570 daemonized = 1; 570 daemonized = 1;
571 /* tuck my process id away, if i'm not in debug mode */ 571 /* tuck my process id away, if i'm not in debug mode */
572#ifdef __NetBSD_Version__ 572#ifdef __NetBSD_Version__
573 pidfile(NULL); 573 pidfile(NULL);
574#endif /* __NetBSD_Version__ */ 574#endif /* __NetBSD_Version__ */
575 } 575 }
576 576
577 include_pid = include_pid_buf; 577 include_pid = include_pid_buf;
578 snprintf(include_pid_buf, sizeof(include_pid_buf), "%d", getpid()); 578 snprintf(include_pid_buf, sizeof(include_pid_buf), "%d", getpid());
579 579
580 /* 580 /*
581 * Create the global kernel event descriptor. 581 * Create the global kernel event descriptor.
582 * 582 *
583 * NOTE: We MUST do this after daemon(), bacause the kqueue() 583 * NOTE: We MUST do this after daemon(), because the kqueue()
584 * API dictates that kqueue descriptors are not inherited 584 * API dictates that kqueue descriptors are not inherited
585 * across forks (lame!). 585 * across forks (lame!).
586 */ 586 */
587 (void)event_init(); 587 (void)event_init();
588 588
589 /* 589 /*
590 * We must read the configuration file for the first time 590 * We must read the configuration file for the first time
591 * after the kqueue descriptor is created, because we install 591 * after the kqueue descriptor is created, because we install
592 * events during this process. 592 * events during this process.
593 */ 593 */
594 init(0, 0, NULL); 594 init(0, 0, NULL);
595 595
596 /* 596 /*