Wed Apr 5 21:53:57 2023 UTC ()
remove some double ee typos in comments.


(andvar)
diff -r1.35 -r1.36 src/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c
diff -r1.2 -r1.3 src/sys/dev/ic/scmdreg.h
diff -r1.12 -r1.13 src/sys/netinet/sctp_indata.c
diff -r1.3 -r1.4 src/usr.sbin/fusermount/fusermount.c

cvs diff -r1.35 -r1.36 src/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c (expand / switch to unified diff)

--- src/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c 2021/08/07 16:18:55 1.35
+++ src/sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c 2023/04/05 21:53:56 1.36
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: hd64465pcmcia.c,v 1.35 2021/08/07 16:18:55 thorpej Exp $ */ 1/* $NetBSD: hd64465pcmcia.c,v 1.36 2023/04/05 21:53:56 andvar Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc. 4 * Copyright (c) 2001, 2002 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 UCHIYAMA Yasushi. 8 * by UCHIYAMA Yasushi.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions 11 * modification, are permitted provided that the following conditions
12 * are met: 12 * are met:
13 * 1. Redistributions of source code must retain the above copyright 13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer. 14 * notice, this list of conditions and the following disclaimer.
@@ -20,27 +20,27 @@ @@ -20,27 +20,27 @@
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE. 29 * POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32#include <sys/cdefs.h> 32#include <sys/cdefs.h>
33__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.35 2021/08/07 16:18:55 thorpej Exp $"); 33__KERNEL_RCSID(0, "$NetBSD: hd64465pcmcia.c,v 1.36 2023/04/05 21:53:56 andvar Exp $");
34 34
35#include <sys/param.h> 35#include <sys/param.h>
36#include <sys/systm.h> 36#include <sys/systm.h>
37#include <sys/device.h> 37#include <sys/device.h>
38#include <sys/kmem.h> 38#include <sys/kmem.h>
39#include <sys/kthread.h> 39#include <sys/kthread.h>
40#include <sys/boot_flag.h> 40#include <sys/boot_flag.h>
41#include <sys/bus.h> 41#include <sys/bus.h>
42 42
43#include <uvm/uvm_extern.h> 43#include <uvm/uvm_extern.h>
44 44
45#include <machine/intr.h> 45#include <machine/intr.h>
46 46
@@ -796,27 +796,27 @@ __sh_hd64465_map_2page(paddr_t pa) @@ -796,27 +796,27 @@ __sh_hd64465_map_2page(paddr_t pa)
796 { _PG_PCMCIA_ATTR16, _PG_PCMCIA_MEM16, _PG_PCMCIA_IO }; 796 { _PG_PCMCIA_ATTR16, _PG_PCMCIA_MEM16, _PG_PCMCIA_IO };
797 vaddr_t va, v; 797 vaddr_t va, v;
798 int i; 798 int i;
799 799
800 /* allocate kernel virtual */ 800 /* allocate kernel virtual */
801 v = va = uvm_km_alloc(kernel_map, 0x03000000, 0, UVM_KMF_VAONLY); 801 v = va = uvm_km_alloc(kernel_map, 0x03000000, 0, UVM_KMF_VAONLY);
802 if (va == 0) { 802 if (va == 0) {
803 PRINTF("can't allocate virtual for paddr 0x%08x\n", 803 PRINTF("can't allocate virtual for paddr 0x%08x\n",
804 (unsigned)pa); 804 (unsigned)pa);
805 805
806 return (0); 806 return (0);
807 } 807 }
808 808
809 /* map to physical addreess with specified memory type. */ 809 /* map to physical address with specified memory type. */
810 for (i = 0; i < 3; i++, pa += 0x01000000, va += 0x01000000) { 810 for (i = 0; i < 3; i++, pa += 0x01000000, va += 0x01000000) {
811 if (__sh_hd64465_map(va, pa, 0x2000, mode[i]) != 0) { 811 if (__sh_hd64465_map(va, pa, 0x2000, mode[i]) != 0) {
812 pmap_kremove(v, 0x03000000); 812 pmap_kremove(v, 0x03000000);
813 uvm_km_free(kernel_map, v, 0x03000000, UVM_KMF_VAONLY); 813 uvm_km_free(kernel_map, v, 0x03000000, UVM_KMF_VAONLY);
814 return (0); 814 return (0);
815 } 815 }
816 } 816 }
817 817
818 return (v); 818 return (v);
819} 819}
820 820
821int 821int
822__sh_hd64465_map(vaddr_t va, paddr_t pa, size_t sz, uint32_t flags) 822__sh_hd64465_map(vaddr_t va, paddr_t pa, size_t sz, uint32_t flags)

cvs diff -r1.2 -r1.3 src/sys/dev/ic/scmdreg.h (expand / switch to unified diff)

--- src/sys/dev/ic/scmdreg.h 2022/05/21 19:07:23 1.2
+++ src/sys/dev/ic/scmdreg.h 2023/04/05 21:53:56 1.3
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: scmdreg.h,v 1.2 2022/05/21 19:07:23 andvar Exp $ */ 1/* $NetBSD: scmdreg.h,v 1.3 2023/04/05 21:53:56 andvar Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2021 Brad Spencer <brad@anduin.eldar.org> 4 * Copyright (c) 2021 Brad Spencer <brad@anduin.eldar.org>
5 * 5 *
6 * Permission to use, copy, modify, and distribute this software for any 6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above 7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies. 8 * copyright notice and this permission notice appear in all copies.
9 * 9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
@@ -212,25 +212,25 @@ @@ -212,25 +212,25 @@
212 */ 212 */
213/* Remote module I2C bus write / read window */ 213/* Remote module I2C bus write / read window */
214#define SCMD_REG_REM_ADDR 0x79 /* The slave module I2C address. This starts at 0x50 */ 214#define SCMD_REG_REM_ADDR 0x79 /* The slave module I2C address. This starts at 0x50 */
215#define SCMD_REG_REM_OFFSET 0x7A /* Remote module I2C register for write / read */ 215#define SCMD_REG_REM_OFFSET 0x7A /* Remote module I2C register for write / read */
216#define SCMD_REG_REM_DATA_WR 0x7B /* Data staged for write to remote module */ 216#define SCMD_REG_REM_DATA_WR 0x7B /* Data staged for write to remote module */
217#define SCMD_REG_REM_DATA_RD 0x7C /* Data returned from remote module */ 217#define SCMD_REG_REM_DATA_RD 0x7C /* Data returned from remote module */
218#define SCMD_REG_REM_WRITE 0x7D /* Write REM_DATA_WR to REM_OFFSET on remote module */ 218#define SCMD_REG_REM_WRITE 0x7D /* Write REM_DATA_WR to REM_OFFSET on remote module */
219#define SCMD_REG_REM_READ 0x7E /* Read from REM_OFFSET into REM_DATA_RD on remote 219#define SCMD_REG_REM_READ 0x7E /* Read from REM_OFFSET into REM_DATA_RD on remote
220 * module 220 * module
221 */ 221 */
222 222
223#define SCMD_LAST_REG SCMD_REG_REM_READ /* The last register address on a module */ 223#define SCMD_LAST_REG SCMD_REG_REM_READ /* The last register address on a module */
224#define SCMD_REG_SIZE 0x7F /* Size of the register space including the holes */ 224#define SCMD_REG_SIZE 0x7F /* Size of the register space including the holes */
225#define SCMD_REMOTE_ADDR_LOW 0x50 /* The first remote I2C addreess */ 225#define SCMD_REMOTE_ADDR_LOW 0x50 /* The first remote I2C address */
226#define SCMD_REMOTE_ADDR_HIGH 0x5F /* The last remote I2C address */ 226#define SCMD_REMOTE_ADDR_HIGH 0x5F /* The last remote I2C address */
227#define SCMD_HOLE_VALUE 0x55 /* Artificial value on read for a hole register */ 227#define SCMD_HOLE_VALUE 0x55 /* Artificial value on read for a hole register */
228#define SCMD_IS_HOLE(r) \ 228#define SCMD_IS_HOLE(r) \
229((r >= SCMD_REG_HOLE_1_LOW && r <= SCMD_REG_HOLE_1_HIGH) || \ 229((r >= SCMD_REG_HOLE_1_LOW && r <= SCMD_REG_HOLE_1_HIGH) || \
230 (r >= SCMD_REG_HOLE_2_LOW && r <= SCMD_REG_HOLE_2_HIGH)) 230 (r >= SCMD_REG_HOLE_2_LOW && r <= SCMD_REG_HOLE_2_HIGH))
231 231
232#define SCMD_MASTER_LOCK_UNLOCKED 0x9B 232#define SCMD_MASTER_LOCK_UNLOCKED 0x9B
233#define SCMD_USER_LOCK_UNLOCKED 0x5C 233#define SCMD_USER_LOCK_UNLOCKED 0x5C
234#define SCMD_ANY_LOCK_LOCKED 0x00 234#define SCMD_ANY_LOCK_LOCKED 0x00
235 235
236#endif 236#endif

cvs diff -r1.12 -r1.13 src/sys/netinet/sctp_indata.c (expand / switch to unified diff)

--- src/sys/netinet/sctp_indata.c 2022/05/28 22:16:44 1.12
+++ src/sys/netinet/sctp_indata.c 2023/04/05 21:53:56 1.13
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: sctp_indata.c,v 1.12 2022/05/28 22:16:44 andvar Exp $ */ 1/* $NetBSD: sctp_indata.c,v 1.13 2023/04/05 21:53:56 andvar Exp $ */
2/* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */ 2/* $KAME: sctp_indata.c,v 1.36 2005/03/06 16:04:17 itojun Exp $ */
3 3
4/* 4/*
5 * Copyright (C) 2002, 2003, 2004 Cisco Systems Inc, 5 * Copyright (C) 2002, 2003, 2004 Cisco Systems Inc,
6 * All rights reserved. 6 * All rights reserved.
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in the 14 * notice, this list of conditions and the following disclaimer in the
@@ -21,27 +21,27 @@ @@ -21,27 +21,27 @@
21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 21 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 22 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE 23 * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 24 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 25 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE. 30 * SUCH DAMAGE.
31 */ 31 */
32 32
33#include <sys/cdefs.h> 33#include <sys/cdefs.h>
34__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.12 2022/05/28 22:16:44 andvar Exp $"); 34__KERNEL_RCSID(0, "$NetBSD: sctp_indata.c,v 1.13 2023/04/05 21:53:56 andvar Exp $");
35 35
36#ifdef _KERNEL_OPT 36#ifdef _KERNEL_OPT
37#include "opt_ipsec.h" 37#include "opt_ipsec.h"
38#include "opt_inet.h" 38#include "opt_inet.h"
39#include "opt_sctp.h" 39#include "opt_sctp.h"
40#endif /* _KERNEL_OPT */ 40#endif /* _KERNEL_OPT */
41 41
42#include <sys/param.h> 42#include <sys/param.h>
43#include <sys/systm.h> 43#include <sys/systm.h>
44#include <sys/mbuf.h> 44#include <sys/mbuf.h>
45#include <sys/malloc.h> 45#include <sys/malloc.h>
46#include <sys/socket.h> 46#include <sys/socket.h>
47#include <sys/socketvar.h> 47#include <sys/socketvar.h>
@@ -2149,27 +2149,27 @@ sctp_process_a_data_chunk(struct sctp_tc @@ -2149,27 +2149,27 @@ sctp_process_a_data_chunk(struct sctp_tc
2149 sctp_deliver_data(stcb, asoc, chk, 0); 2149 sctp_deliver_data(stcb, asoc, chk, 0);
2150 sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket); 2150 sctp_sorwakeup(stcb->sctp_ep, stcb->sctp_socket);
2151 } else { 2151 } else {
2152 /* Special check for when streams are resetting. 2152 /* Special check for when streams are resetting.
2153 * We could be more smart about this and check the 2153 * We could be more smart about this and check the
2154 * actual stream to see if it is not being reset.. that 2154 * actual stream to see if it is not being reset.. that
2155 * way we would not create a HOLB when amongst streams 2155 * way we would not create a HOLB when amongst streams
2156 * being reset and those not being reset. 2156 * being reset and those not being reset.
2157 * 2157 *
2158 * We take complete messages that have a stream reset 2158 * We take complete messages that have a stream reset
2159 * intervening (aka the TSN is after where our cum-ack needs 2159 * intervening (aka the TSN is after where our cum-ack needs
2160 * to be) off and put them on a pending_reply_queue. The 2160 * to be) off and put them on a pending_reply_queue. The
2161 * reassembly ones we do not have to worry about since 2161 * reassembly ones we do not have to worry about since
2162 * they are all sorted and proceessed by TSN order. It 2162 * they are all sorted and processed by TSN order. It
2163 * is only the singletons I must worry about. 2163 * is only the singletons I must worry about.
2164 */ 2164 */
2165 if ((asoc->pending_reply) && 2165 if ((asoc->pending_reply) &&
2166 ((compare_with_wrap(tsn, ntohl(asoc->pending_reply->reset_at_tsn), MAX_TSN)) || 2166 ((compare_with_wrap(tsn, ntohl(asoc->pending_reply->reset_at_tsn), MAX_TSN)) ||
2167 (tsn == ntohl(asoc->pending_reply->reset_at_tsn))) 2167 (tsn == ntohl(asoc->pending_reply->reset_at_tsn)))
2168 ) { 2168 ) {
2169 /* yep its past where we need to reset... go ahead and 2169 /* yep its past where we need to reset... go ahead and
2170 * queue it. 2170 * queue it.
2171 */ 2171 */
2172 TAILQ_INSERT_TAIL(&asoc->pending_reply_queue , chk, sctp_next); 2172 TAILQ_INSERT_TAIL(&asoc->pending_reply_queue , chk, sctp_next);
2173 } else { 2173 } else {
2174 sctp_queue_data_to_stream(stcb, asoc, chk, abort_flag); 2174 sctp_queue_data_to_stream(stcb, asoc, chk, abort_flag);
2175 } 2175 }

cvs diff -r1.3 -r1.4 src/usr.sbin/fusermount/fusermount.c (expand / switch to unified diff)

--- src/usr.sbin/fusermount/fusermount.c 2008/07/21 13:36:58 1.3
+++ src/usr.sbin/fusermount/fusermount.c 2023/04/05 21:53:56 1.4
@@ -20,27 +20,27 @@ @@ -20,27 +20,27 @@
20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
22 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 22 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 25 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
26 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28#include <sys/cdefs.h> 28#include <sys/cdefs.h>
29 29
30#ifndef lint 30#ifndef lint
31__COPYRIGHT("@(#) Copyright (c) 2007\ 31__COPYRIGHT("@(#) Copyright (c) 2007\
32 The NetBSD Foundation, Inc. All rights reserved."); 32 The NetBSD Foundation, Inc. All rights reserved.");
33__RCSID("$NetBSD: fusermount.c,v 1.3 2008/07/21 13:36:58 lukem Exp $"); 33__RCSID("$NetBSD: fusermount.c,v 1.4 2023/04/05 21:53:56 andvar Exp $");
34#endif 34#endif
35 35
36#include <sys/types.h> 36#include <sys/types.h>
37#include <sys/param.h> 37#include <sys/param.h>
38#include <sys/mount.h> 38#include <sys/mount.h>
39 39
40#include <err.h> 40#include <err.h>
41#include <stdio.h> 41#include <stdio.h>
42#include <stdlib.h> 42#include <stdlib.h>
43#include <string.h> 43#include <string.h>
44#include <unistd.h> 44#include <unistd.h>
45 45
46#ifndef FUSERMOUNT_VERSION 46#ifndef FUSERMOUNT_VERSION
@@ -62,27 +62,27 @@ refuse_unmount(int argc, char **argv) @@ -62,27 +62,27 @@ refuse_unmount(int argc, char **argv)
62{ 62{
63 int ret; 63 int ret;
64 int i; 64 int i;
65 65
66 for (ret = 1, i = 0 ; i < argc ; i++) { 66 for (ret = 1, i = 0 ; i < argc ; i++) {
67 if (unmount(argv[i], 0) < 0) { 67 if (unmount(argv[i], 0) < 0) {
68 warn("can't unmount `%s'", argv[i]); 68 warn("can't unmount `%s'", argv[i]);
69 ret = 0; 69 ret = 0;
70 } 70 }
71 } 71 }
72 return ret; 72 return ret;
73} 73}
74 74
75/* print the usage meessage */ 75/* print the usage message */
76static void 76static void
77usage(const char *prog) 77usage(const char *prog)
78{ 78{
79 (void) fprintf(stderr, 79 (void) fprintf(stderr,
80 "Usage: %s [-c] [-d name] [-h] [-p] [-u] [-x] mountpoint...\n", 80 "Usage: %s [-c] [-d name] [-h] [-p] [-u] [-x] mountpoint...\n",
81 prog); 81 prog);
82 (void) fprintf(stderr, "\t-c\tuse kernel cache\n"); 82 (void) fprintf(stderr, "\t-c\tuse kernel cache\n");
83 (void) fprintf(stderr, "\t-d name\tuse name in mount information\n"); 83 (void) fprintf(stderr, "\t-d name\tuse name in mount information\n");
84 (void) fprintf(stderr, "\t-h\tprint help information\n"); 84 (void) fprintf(stderr, "\t-h\tprint help information\n");
85 (void) fprintf(stderr, "\t-p\tcheck file permissions\n"); 85 (void) fprintf(stderr, "\t-p\tcheck file permissions\n");
86 (void) fprintf(stderr, "\t-u\tunmount mount point(s)\n"); 86 (void) fprintf(stderr, "\t-u\tunmount mount point(s)\n");
87 (void) fprintf(stderr, 87 (void) fprintf(stderr,
88 "\t-x\tallow access to mortal (non-root) users\n"); 88 "\t-x\tallow access to mortal (non-root) users\n");