CVS commit: src/share/man/man4

2021-12-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Dec  2 05:10:05 UTC 2021

Modified Files:
src/share/man/man4: puc.4

Log Message:
Add some devices.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/share/man/man4/puc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/share/man/man4

2021-12-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Thu Dec  2 05:10:05 UTC 2021

Modified Files:
src/share/man/man4: puc.4

Log Message:
Add some devices.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/share/man/man4/puc.4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/share/man/man4/puc.4
diff -u src/share/man/man4/puc.4:1.42 src/share/man/man4/puc.4:1.43
--- src/share/man/man4/puc.4:1.42	Tue Mar 31 07:08:59 2020
+++ src/share/man/man4/puc.4	Thu Dec  2 05:10:04 2021
@@ -1,4 +1,4 @@
-.\" $NetBSD: puc.4,v 1.42 2020/03/31 07:08:59 ryo Exp $
+.\" $NetBSD: puc.4,v 1.43 2021/12/02 05:10:04 msaitoh Exp $
 .\"
 .\" Copyright (c) 1998 Christopher G. Demetriou
 .\" All rights reserved.
@@ -32,7 +32,7 @@
 .\"
 .\" <>
 .\"
-.Dd March 31, 2020
+.Dd December 2, 2021
 .Dt PUC 4
 .Os
 .Sh NAME
@@ -67,6 +67,7 @@ The driver currently supports the follow
 .It Tn "Advantech PCI-1610 (4 port serial)"
 .It Tn "Advantech PCI-1612 (4 port serial)"
 .It Tn "Advantech PCI-1620 (8 port serial)"
+.It Tn "ASIX AX9910 (4 port serial)"
 .It Tn "Avlab Low Profile PCI 4S Quartet (4 port serial)"
 .It Tn "Avlab Low Profile PCI 4 Serial (4 port serial)"
 .It Tn "Avlab PCI 2S (2 port serial)"
@@ -124,7 +125,7 @@ The driver currently supports the follow
 .It Tn "NetMos NM9845 series (up to 6 serial and 1 parallel)"
 .It Tn "NetMos NM9855 series (up to 4 serial and 1 parallel)"
 .It Tn "NetMos NM9865 series (up to 4 serial and 2 parallel)"
-.It Tn "NetMos NM9900 PCIe (4 port serial)"
+.It Tn "NetMos NM9900 PCIe (4 port or 8 port serial)"
 .It Tn "NetMos NM9901 PCIe (1 serial or 1 parallel)"
 .It Tn "NetMos NM9904 PCIe (4 port serial)"
 .It Tn "NetMos NM9912 PCIe (2 serial or 1 parallel)"
@@ -135,6 +136,7 @@ The driver currently supports the follow
 .It Tn "Oxford Semiconductor OXPCIe952 (2 port serial, legacy mode)"
 .It Tn "Oxford Semiconductor OXPCIe954 (4 port serial)"
 .It Tn "Oxford Semiconductor OXmPCI952 (2 port serial)"
+.It Tn "Oxford Semiconductor Exsys EX-41098 (4 port serial)"
 .It Tn "Perle Systems PCI-RAS 4 modem ports"
 .It Tn "Perle Systems PCI-RAS 8 modem ports"
 .It Tn "Perle Systems PCI-RASV92 4 modem ports"



CVS commit: src/sys/compat

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:39:45 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux32/arch/aarch64: linux32_syscall.h
linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c
linux32_systrace_args.c
src/sys/compat/linux32/arch/amd64: linux32_syscall.h
linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c
linux32_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c
cvs rdiff -u -r1.114 -r1.115 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.113 -r1.114 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.115 -r1.116 src/sys/compat/linux/arch/alpha/linux_syscalls.c
cvs rdiff -u -r1.75 -r1.76 src/sys/compat/linux/arch/amd64/linux_syscall.h \
src/sys/compat/linux/arch/amd64/linux_syscallargs.h \
src/sys/compat/linux/arch/amd64/linux_syscalls.c \
src/sys/compat/linux/arch/amd64/linux_sysent.c
cvs rdiff -u -r1.19 -r1.20 \
src/sys/compat/linux/arch/amd64/linux_systrace_args.c
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/arm/linux_syscall.h \
src/sys/compat/linux/arch/arm/linux_syscallargs.h \
src/sys/compat/linux/arch/arm/linux_syscalls.c \
src/sys/compat/linux/arch/arm/linux_sysent.c
cvs rdiff -u -r1.20 -r1.21 \
src/sys/compat/linux/arch/arm/linux_systrace_args.c
cvs rdiff -u -r1.120 -r1.121 src/sys/compat/linux/arch/i386/linux_syscall.h \
src/sys/compat/linux/arch/i386/linux_syscallargs.h \
src/sys/compat/linux/arch/i386/linux_sysent.c
cvs rdiff -u -r1.121 -r1.122 src/sys/compat/linux/arch/i386/linux_syscalls.c
cvs rdiff -u -r1.15 -r1.16 \
src/sys/compat/linux/arch/i386/linux_systrace_args.c
cvs rdiff -u -r1.113 -r1.114 src/sys/compat/linux/arch/m68k/linux_syscall.h \
src/sys/compat/linux/arch/m68k/linux_syscalls.c \
src/sys/compat/linux/arch/m68k/linux_sysent.c
cvs rdiff -u -r1.112 -r1.113 \
src/sys/compat/linux/arch/m68k/linux_syscallargs.h
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/mips/linux_syscall.h
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/mips/linux_syscallargs.h \
src/sys/compat/linux/arch/mips/linux_syscalls.c \
src/sys/compat/linux/arch/mips/linux_sysent.c
cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/powerpc/linux_syscall.h \
src/sys/compat/linux/arch/powerpc/linux_sysent.c
cvs rdiff -u -r1.90 -r1.91 \
src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \
src/sys/compat/linux/arch/powerpc/linux_syscalls.c
cvs rdiff -u -r1.2 -r1.3 \
src/sys/compat/linux32/arch/aarch64/linux32_syscall.h \
src/sys/compat/linux32/arch/aarch64/linux32_syscallargs.h \
src/sys/compat/linux32/arch/aarch64/linux32_syscalls.c \
src/sys/compat/linux32/arch/aarch64/linux32_sysent.c \
src/sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
cvs rdiff -u -r1.86 -r1.87 \
src/sys/compat/linux32/arch/amd64/linux32_syscall.h \
src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h \
src/sys/compat/linux32/arch/amd64/linux32_syscalls.c \
src/sys/compat/linux32/arch/amd64/linux32_sysent.c
cvs rdiff -u -r1.13 -r1.14 \
src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/linux_syscall.h
diff -u src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.3 src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.4
--- src/sys/compat/linux/arch/aarch64/linux_syscall.h:1.3

CVS commit: src/sys/compat

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:39:45 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/alpha: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/amd64: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/arm: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/i386: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c linux_systrace_args.c
src/sys/compat/linux/arch/m68k: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/mips: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux/arch/powerpc: linux_syscall.h linux_syscallargs.h
linux_syscalls.c linux_sysent.c
src/sys/compat/linux32/arch/aarch64: linux32_syscall.h
linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c
linux32_systrace_args.c
src/sys/compat/linux32/arch/amd64: linux32_syscall.h
linux32_syscallargs.h linux32_syscalls.c linux32_sysent.c
linux32_systrace_args.c

Log Message:
regen


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/aarch64/linux_syscall.h \
src/sys/compat/linux/arch/aarch64/linux_syscallargs.h \
src/sys/compat/linux/arch/aarch64/linux_syscalls.c \
src/sys/compat/linux/arch/aarch64/linux_sysent.c \
src/sys/compat/linux/arch/aarch64/linux_systrace_args.c
cvs rdiff -u -r1.114 -r1.115 src/sys/compat/linux/arch/alpha/linux_syscall.h \
src/sys/compat/linux/arch/alpha/linux_sysent.c
cvs rdiff -u -r1.113 -r1.114 \
src/sys/compat/linux/arch/alpha/linux_syscallargs.h
cvs rdiff -u -r1.115 -r1.116 src/sys/compat/linux/arch/alpha/linux_syscalls.c
cvs rdiff -u -r1.75 -r1.76 src/sys/compat/linux/arch/amd64/linux_syscall.h \
src/sys/compat/linux/arch/amd64/linux_syscallargs.h \
src/sys/compat/linux/arch/amd64/linux_syscalls.c \
src/sys/compat/linux/arch/amd64/linux_sysent.c
cvs rdiff -u -r1.19 -r1.20 \
src/sys/compat/linux/arch/amd64/linux_systrace_args.c
cvs rdiff -u -r1.87 -r1.88 src/sys/compat/linux/arch/arm/linux_syscall.h \
src/sys/compat/linux/arch/arm/linux_syscallargs.h \
src/sys/compat/linux/arch/arm/linux_syscalls.c \
src/sys/compat/linux/arch/arm/linux_sysent.c
cvs rdiff -u -r1.20 -r1.21 \
src/sys/compat/linux/arch/arm/linux_systrace_args.c
cvs rdiff -u -r1.120 -r1.121 src/sys/compat/linux/arch/i386/linux_syscall.h \
src/sys/compat/linux/arch/i386/linux_syscallargs.h \
src/sys/compat/linux/arch/i386/linux_sysent.c
cvs rdiff -u -r1.121 -r1.122 src/sys/compat/linux/arch/i386/linux_syscalls.c
cvs rdiff -u -r1.15 -r1.16 \
src/sys/compat/linux/arch/i386/linux_systrace_args.c
cvs rdiff -u -r1.113 -r1.114 src/sys/compat/linux/arch/m68k/linux_syscall.h \
src/sys/compat/linux/arch/m68k/linux_syscalls.c \
src/sys/compat/linux/arch/m68k/linux_sysent.c
cvs rdiff -u -r1.112 -r1.113 \
src/sys/compat/linux/arch/m68k/linux_syscallargs.h
cvs rdiff -u -r1.85 -r1.86 src/sys/compat/linux/arch/mips/linux_syscall.h
cvs rdiff -u -r1.84 -r1.85 src/sys/compat/linux/arch/mips/linux_syscallargs.h \
src/sys/compat/linux/arch/mips/linux_syscalls.c \
src/sys/compat/linux/arch/mips/linux_sysent.c
cvs rdiff -u -r1.91 -r1.92 src/sys/compat/linux/arch/powerpc/linux_syscall.h \
src/sys/compat/linux/arch/powerpc/linux_sysent.c
cvs rdiff -u -r1.90 -r1.91 \
src/sys/compat/linux/arch/powerpc/linux_syscallargs.h \
src/sys/compat/linux/arch/powerpc/linux_syscalls.c
cvs rdiff -u -r1.2 -r1.3 \
src/sys/compat/linux32/arch/aarch64/linux32_syscall.h \
src/sys/compat/linux32/arch/aarch64/linux32_syscallargs.h \
src/sys/compat/linux32/arch/aarch64/linux32_syscalls.c \
src/sys/compat/linux32/arch/aarch64/linux32_sysent.c \
src/sys/compat/linux32/arch/aarch64/linux32_systrace_args.c
cvs rdiff -u -r1.86 -r1.87 \
src/sys/compat/linux32/arch/amd64/linux32_syscall.h \
src/sys/compat/linux32/arch/amd64/linux32_syscallargs.h \
src/sys/compat/linux32/arch/amd64/linux32_syscalls.c \
src/sys/compat/linux32/arch/amd64/linux32_sysent.c
cvs rdiff -u -r1.13 -r1.14 \
src/sys/compat/linux32/arch/amd64/linux32_systrace_args.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:29:49 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master
src/sys/compat/linux/arch/alpha: syscalls.master
src/sys/compat/linux/arch/amd64: syscalls.master
src/sys/compat/linux/arch/arm: syscalls.master
src/sys/compat/linux/arch/i386: syscalls.master
src/sys/compat/linux/arch/m68k: syscalls.master
src/sys/compat/linux/arch/mips: syscalls.master
src/sys/compat/linux/arch/powerpc: syscalls.master
src/sys/compat/linux/common: linux_limit.h linux_misc.c
src/sys/compat/linux32/arch/aarch64: syscalls.master
src/sys/compat/linux32/arch/amd64: syscalls.master
src/sys/compat/linux32/common: linux32_resource.c

Log Message:
add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/aarch64/syscalls.master
cvs rdiff -u -r1.101 -r1.102 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/amd64/syscalls.master
cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/arm/syscalls.master
cvs rdiff -u -r1.128 -r1.129 src/sys/compat/linux/arch/i386/syscalls.master
cvs rdiff -u -r1.100 -r1.101 src/sys/compat/linux/arch/m68k/syscalls.master
cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/mips/syscalls.master
cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/powerpc/syscalls.master
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/common/linux_limit.h
cvs rdiff -u -r1.255 -r1.256 src/sys/compat/linux/common/linux_misc.c
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux32/arch/aarch64/syscalls.master
cvs rdiff -u -r1.76 -r1.77 src/sys/compat/linux32/arch/amd64/syscalls.master
cvs rdiff -u -r1.12 -r1.13 src/sys/compat/linux32/common/linux32_resource.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/linux/arch/aarch64/syscalls.master
diff -u src/sys/compat/linux/arch/aarch64/syscalls.master:1.3 src/sys/compat/linux/arch/aarch64/syscalls.master:1.4
--- src/sys/compat/linux/arch/aarch64/syscalls.master:1.3	Thu Nov 25 02:29:33 2021
+++ src/sys/compat/linux/arch/aarch64/syscalls.master	Thu Dec  2 04:29:47 2021
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.3 2021/11/25 02:29:33 ryo Exp $
+	$NetBSD: syscalls.master,v 1.4 2021/12/02 04:29:47 ryo Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -490,7 +490,8 @@
 259	UNIMPL
 260	STD		{ int|linux_sys||wait4(int pid, int *status, \
 			int options, struct rusage50 *rusage); }
-261	UNIMPL		prlimit64
+261	STD		{ int|linux_sys||prlimit64(pid_t pid, int which, \
+			struct rlimit *new_rlp, struct rlimit *old_rlp); }
 262	UNIMPL		fanotify_init
 263	UNIMPL		fanotify_mark
 264	UNIMPL		name_to_handle_at

Index: src/sys/compat/linux/arch/alpha/syscalls.master
diff -u src/sys/compat/linux/arch/alpha/syscalls.master:1.101 src/sys/compat/linux/arch/alpha/syscalls.master:1.102
--- src/sys/compat/linux/arch/alpha/syscalls.master:1.101	Mon Sep 20 02:20:02 2021
+++ src/sys/compat/linux/arch/alpha/syscalls.master	Thu Dec  2 04:29:47 2021
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.101 2021/09/20 02:20:02 thorpej Exp $
+	$NetBSD: syscalls.master,v 1.102 2021/12/02 04:29:47 ryo Exp $
 ;
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -794,7 +794,8 @@
 493	UNIMPL		perf_counter_open
 494	UNIMPL		fanotify_init
 495	UNIMPL		fanotify_mark
-496	UNIMPL		prlimit64
+496	STD		{ int|linux_sys||prlimit64(pid_t pid, int which, \
+			struct rlimit *new_rlp, struct rlimit *old_rlp); }
 497	UNIMPL		name_to_handle_at
 498	UNIMPL		open_by_handle_at
 499	UNIMPL		clock_adjtime

Index: src/sys/compat/linux/arch/amd64/syscalls.master
diff -u src/sys/compat/linux/arch/amd64/syscalls.master:1.66 src/sys/compat/linux/arch/amd64/syscalls.master:1.67
--- src/sys/compat/linux/arch/amd64/syscalls.master:1.66	Mon Sep 20 02:20:02 2021
+++ src/sys/compat/linux/arch/amd64/syscalls.master	Thu Dec  2 04:29:48 2021
@@ -1,4 +1,4 @@
-	$NetBSD: syscalls.master,v 1.66 2021/09/20 02:20:02 thorpej Exp $
+	$NetBSD: syscalls.master,v 1.67 2021/12/02 04:29:48 ryo Exp $
 
 ;	@(#)syscalls.master	8.1 (Berkeley) 7/19/93
 
@@ -552,7 +552,8 @@
 			unsigned int flags, struct timespec *timeout); }
 300	UNIMPL		fanotify_init
 301	UNIMPL		fanotify_mark
-302	UNIMPL		prlimit64
+302	STD		{ int|linux_sys||prlimit64(pid_t pid, int which, \
+			struct rlimit *new_rlp, struct rlimit *old_rlp); }
 303	UNIMPL		name_to_handle_at
 304	UNIMPL		open_by_handle_at
 305	UNIMPL		clock_adjtime

Index: src/sys/compat/linux/arch/arm/syscalls.master
diff -u src/sys/compat/linux/arch/arm/syscalls.master:1.74 src/sys/compat/linux/arch/arm/syscalls.master:1.75
--- src/sys/compat/linux/arch/arm/syscalls.master:1.74	Wed Nov 24 18:52:13 2021
+++ src/sys/compat/linux/arch/arm/syscalls.master	Thu Dec  2 04:29:48 2021
@@ -1,4 +1,4 @@
-

CVS commit: src/sys/compat

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:29:49 UTC 2021

Modified Files:
src/sys/compat/linux/arch/aarch64: syscalls.master
src/sys/compat/linux/arch/alpha: syscalls.master
src/sys/compat/linux/arch/amd64: syscalls.master
src/sys/compat/linux/arch/arm: syscalls.master
src/sys/compat/linux/arch/i386: syscalls.master
src/sys/compat/linux/arch/m68k: syscalls.master
src/sys/compat/linux/arch/mips: syscalls.master
src/sys/compat/linux/arch/powerpc: syscalls.master
src/sys/compat/linux/common: linux_limit.h linux_misc.c
src/sys/compat/linux32/arch/aarch64: syscalls.master
src/sys/compat/linux32/arch/amd64: syscalls.master
src/sys/compat/linux32/common: linux32_resource.c

Log Message:
add prlimit64(2) syscall to COMPAT_LINUX and COMPAT_LINUX32


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/compat/linux/arch/aarch64/syscalls.master
cvs rdiff -u -r1.101 -r1.102 src/sys/compat/linux/arch/alpha/syscalls.master
cvs rdiff -u -r1.66 -r1.67 src/sys/compat/linux/arch/amd64/syscalls.master
cvs rdiff -u -r1.74 -r1.75 src/sys/compat/linux/arch/arm/syscalls.master
cvs rdiff -u -r1.128 -r1.129 src/sys/compat/linux/arch/i386/syscalls.master
cvs rdiff -u -r1.100 -r1.101 src/sys/compat/linux/arch/m68k/syscalls.master
cvs rdiff -u -r1.73 -r1.74 src/sys/compat/linux/arch/mips/syscalls.master
cvs rdiff -u -r1.79 -r1.80 src/sys/compat/linux/arch/powerpc/syscalls.master
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/linux/common/linux_limit.h
cvs rdiff -u -r1.255 -r1.256 src/sys/compat/linux/common/linux_misc.c
cvs rdiff -u -r1.2 -r1.3 src/sys/compat/linux32/arch/aarch64/syscalls.master
cvs rdiff -u -r1.76 -r1.77 src/sys/compat/linux32/arch/amd64/syscalls.master
cvs rdiff -u -r1.12 -r1.13 src/sys/compat/linux32/common/linux32_resource.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/compat/common

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:26:10 UTC 2021

Modified Files:
src/sys/compat/common: kern_sig_16.c

Log Message:
don't call MODULE_HOOK_SET(), if exec_sigcode_alloc() fails.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/common/kern_sig_16.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/compat/common/kern_sig_16.c
diff -u src/sys/compat/common/kern_sig_16.c:1.7 src/sys/compat/common/kern_sig_16.c:1.8
--- src/sys/compat/common/kern_sig_16.c:1.7	Fri Nov 26 08:06:11 2021
+++ src/sys/compat/common/kern_sig_16.c	Thu Dec  2 04:26:09 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: kern_sig_16.c,v 1.7 2021/11/26 08:06:11 ryo Exp $	*/
+/*	$NetBSD: kern_sig_16.c,v 1.8 2021/12/02 04:26:09 ryo Exp $	*/
 
 /*-
  * Copyright (c) 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: kern_sig_16.c,v 1.7 2021/11/26 08:06:11 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_sig_16.c,v 1.8 2021/12/02 04:26:09 ryo Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -161,10 +161,12 @@ kern_sig_16_init(void)
 		emul_netbsd.e_sigobject = NULL;
 	}
 	rw_exit(&exec_lock);
+	if (error)
+		return error;
 	MODULE_HOOK_SET(sendsig_sigcontext_16_hook, sendsig_sigcontext);
 #endif
 
-	return error;
+	return 0;
 }
 
 int



CVS commit: src/sys/compat/common

2021-12-01 Thread Ryo Shimizu
Module Name:src
Committed By:   ryo
Date:   Thu Dec  2 04:26:10 UTC 2021

Modified Files:
src/sys/compat/common: kern_sig_16.c

Log Message:
don't call MODULE_HOOK_SET(), if exec_sigcode_alloc() fails.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/compat/common/kern_sig_16.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:56:56 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: deptgt-default.exp

Log Message:
tests/make: test target '.DEFAULT'


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/deptgt-default.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:56:56 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: deptgt-default.exp

Log Message:
tests/make: test target '.DEFAULT'


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/deptgt-default.exp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/deptgt-default.exp
diff -u src/usr.bin/make/unit-tests/deptgt-default.exp:1.1 src/usr.bin/make/unit-tests/deptgt-default.exp:1.2
--- src/usr.bin/make/unit-tests/deptgt-default.exp:1.1	Sun Aug 16 12:07:51 2020
+++ src/usr.bin/make/unit-tests/deptgt-default.exp	Wed Dec  1 23:56:56 2021
@@ -1 +1,2 @@
+Default command is making 'not-a-target' from 'not-a-target'.
 exit status 0



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:56:29 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: deptgt-default.mk

Log Message:
tests/make: test target '.DEFAULT'


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/deptgt-default.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:56:29 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: deptgt-default.mk

Log Message:
tests/make: test target '.DEFAULT'


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/deptgt-default.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/deptgt-default.mk
diff -u src/usr.bin/make/unit-tests/deptgt-default.mk:1.2 src/usr.bin/make/unit-tests/deptgt-default.mk:1.3
--- src/usr.bin/make/unit-tests/deptgt-default.mk:1.2	Sun Aug 16 14:25:16 2020
+++ src/usr.bin/make/unit-tests/deptgt-default.mk	Wed Dec  1 23:56:29 2021
@@ -1,8 +1,17 @@
-# $NetBSD: deptgt-default.mk,v 1.2 2020/08/16 14:25:16 rillig Exp $
+# $NetBSD: deptgt-default.mk,v 1.3 2021/12/01 23:56:29 rillig Exp $
 #
-# Tests for the special target .DEFAULT in dependency declarations.
+# Tests for the special target .DEFAULT in dependency declarations, which
+# attaches its associated commands to all targets that don't specify any way
+# to create them.
 
-# TODO: Implementation
+all: test-default not-a-target
+
+test-default: .PHONY
+
+has-commands: .PHONY
+	@echo 'Making ${.TARGET} from ${.IMPSRC}.'
+
+.DEFAULT: dependency-is-ignored
+	@echo "Default command is making '${.TARGET}' from '${.IMPSRC}'."
 
 all:
-	@:;



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:15:38 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: varname-dot-make-save_dollars.mk

Log Message:
tests/make: clean up test for .MAKE.SAVE_DOLLARS


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk
diff -u src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk:1.4 src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk:1.5
--- src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk:1.4	Tue Nov 30 23:58:10 2021
+++ src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk	Wed Dec  1 23:15:38 2021
@@ -1,12 +1,12 @@
-# $NetBSD: varname-dot-make-save_dollars.mk,v 1.4 2021/11/30 23:58:10 rillig Exp $
+# $NetBSD: varname-dot-make-save_dollars.mk,v 1.5 2021/12/01 23:15:38 rillig Exp $
 #
 # Tests for the special .MAKE.SAVE_DOLLARS variable, which controls whether
 # the assignment operator ':=' converts '$$' to a single '$' or keeps it
 # as-is.
 #
 # See also:
-#	var-op-expand.mk
-#	varmisc.mk		for the boolean values
+#	var-op-expand.mk	for ':=' in general
+#	varmisc.mk		for parsing the boolean values
 
 # Initially, the variable .MAKE.SAVE_DOLLARS is undefined. At this point the
 # behavior of the assignment operator ':=' depends.  NetBSD's usr.bin/make
@@ -18,23 +18,25 @@
 
 
 # Even when dollars are preserved, it only applies to literal dollars, not
-# those that come indirectly from other expressions.
-.MAKE.SAVE_DOLLARS=	yes
+# to those that come indirectly from other expressions.
 DOLLARS=		
+.MAKE.SAVE_DOLLARS=	yes
 VAR:=			${DOLLARS}
 # The reduction from 8 '$' to 4 '$' happens when ${VAR} is evaluated in the
-# condition; .MAKE.SAVE_DOLLARS only applies to the operator ':='.
+# condition; .MAKE.SAVE_DOLLARS only applies at the moment where the
+# assignment is performed using ':='.
 .if ${VAR} != "\$\$\$\$"
 .  error
 .endif
 
-# Dollars from the literal value are preserved now.
+# The 'yes' preserves the dollars from the literal.
 .MAKE.SAVE_DOLLARS=	yes
 VAR:=			
 .if ${VAR} != "\$\$\$\$"
 .  error
 .endif
 
+# The 'no' converts each '$$' to '$'.
 .MAKE.SAVE_DOLLARS=	no
 VAR:=			
 .if ${VAR} != "\$\$"
@@ -42,14 +44,14 @@ VAR:=			
 .endif
 
 # It's even possible to change the dollar interpretation in the middle of
-# evaluating an expression, even though there is no practical need for it.
+# evaluating an expression, but there is no practical need for it.
 .MAKE.SAVE_DOLLARS=	no
 VAR:=		-${.MAKE.SAVE_DOLLARS::=yes}-
 .if ${VAR} != "\$--\$\$"
 .  error
 .endif
 
-# The '$' from the ':U' expressions are indirect, therefore SAVE_DOLLARS
+# The '$' from the ':U' expressions are indirect, therefore .MAKE.SAVE_DOLLARS
 # doesn't apply to them.
 .MAKE.SAVE_DOLLARS=	no
 VAR:=		${:U\$\$\$\$}-${.MAKE.SAVE_DOLLARS::=yes}-${:U\$\$\$\$}



CVS commit: src/usr.bin/make/unit-tests

2021-12-01 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Wed Dec  1 23:15:38 UTC 2021

Modified Files:
src/usr.bin/make/unit-tests: varname-dot-make-save_dollars.mk

Log Message:
tests/make: clean up test for .MAKE.SAVE_DOLLARS


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
src/usr.bin/make/unit-tests/varname-dot-make-save_dollars.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/external/bsd/flex/bin

2021-12-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Dec  1 21:44:12 UTC 2021

Modified Files:
src/external/bsd/flex/bin: flex.1

Log Message:
flex(1): fix option name in man page.

>From Anon.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/flex/bin/flex.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/flex/bin/flex.1
diff -u src/external/bsd/flex/bin/flex.1:1.3 src/external/bsd/flex/bin/flex.1:1.4
--- src/external/bsd/flex/bin/flex.1:1.3	Wed Sep 15 06:52:33 2010
+++ src/external/bsd/flex/bin/flex.1	Wed Dec  1 21:44:12 2021
@@ -1,6 +1,6 @@
-.\" $NetBSD: flex.1,v 1.3 2010/09/15 06:52:33 wiz Exp $
+.\" $NetBSD: flex.1,v 1.4 2021/12/01 21:44:12 wiz Exp $
 .\"
-.TH FLEX 1 "February 2008" "Version 2.5"
+.TH FLEX 1 "December 2021" "Version 2.5"
 .SH NAME
 flex, lex \- fast lexical analyzer generator
 .SH SYNOPSIS
@@ -2679,7 +2679,7 @@ compression.
 is often a good compromise between speed and size for production
 scanners.
 .TP
-.B \-ooutput, \-\-outputfile=FILE
+.B \-ooutput, \-\-outfile=FILE
 directs flex to write the scanner to the file
 .B output
 instead of



CVS commit: src/external/bsd/flex/bin

2021-12-01 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Dec  1 21:44:12 UTC 2021

Modified Files:
src/external/bsd/flex/bin: flex.1

Log Message:
flex(1): fix option name in man page.

>From Anon.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/flex/bin/flex.1

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dev/i2c

2021-12-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Dec  1 21:33:19 UTC 2021

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
Use aprint_debug instead of aprint_error for expected failure.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/sdtemp.c
diff -u src/sys/dev/i2c/sdtemp.c:1.40 src/sys/dev/i2c/sdtemp.c:1.41
--- src/sys/dev/i2c/sdtemp.c:1.40	Sun Jun 13 09:47:36 2021
+++ src/sys/dev/i2c/sdtemp.c	Wed Dec  1 21:33:19 2021
@@ -1,4 +1,4 @@
-/*  $NetBSD: sdtemp.c,v 1.40 2021/06/13 09:47:36 mlelstv Exp $*/
+/*  $NetBSD: sdtemp.c,v 1.41 2021/12/01 21:33:19 msaitoh Exp $*/
 
 /*
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.40 2021/06/13 09:47:36 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdtemp.c,v 1.41 2021/12/01 21:33:19 msaitoh Exp $");
 
 #include 
 #include 
@@ -692,8 +692,8 @@ sdtemp_config_mcp(struct sdtemp_softc *s
 	if (rv == 0)
 		sc->sc_resolution = SDTEMP_CAP_RESOLUTION_MAX;
 	else
-		aprint_error("%s: error %d writing resolution register\n",
-		device_xname(sc->sc_dev), rv);
+		aprint_debug_dev(sc->sc_dev,
+		"error %d writing resolution register\n", rv);
 }
 
 static void
@@ -712,8 +712,8 @@ sdtemp_config_idt(struct sdtemp_softc *s
 	if (rv == 0)
 		sc->sc_resolution = SDTEMP_CAP_RESOLUTION_MAX;
 	else
-		aprint_error("%s: error %d writing resolution register\n",
-		device_xname(sc->sc_dev), rv);
+		aprint_debug_dev(sc->sc_dev,
+		"error %d writing resolution register\n", rv);
 }
 
 MODULE(MODULE_CLASS_DRIVER, sdtemp, "i2cexec,sysmon_envsys");



CVS commit: src/sys/dev/i2c

2021-12-01 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Dec  1 21:33:19 UTC 2021

Modified Files:
src/sys/dev/i2c: sdtemp.c

Log Message:
Use aprint_debug instead of aprint_error for expected failure.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dev/i2c/sdtemp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: xsrc/external/mit/xf86-video-suncg14/dist/src

2021-12-01 Thread Michael Lorenz
Module Name:xsrc
Committed By:   macallan
Date:   Wed Dec  1 17:47:11 UTC 2021

Modified Files:
xsrc/external/mit/xf86-video-suncg14/dist/src: cg14_driver.c

Log Message:
remove old guesswork code to determine VRAM size - we can rely on OBP now


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c
diff -u xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.16 xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.17
--- xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c:1.16	Mon Dec 31 22:17:21 2018
+++ xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c	Wed Dec  1 17:47:11 2021
@@ -347,8 +347,6 @@ CG14PreInit(ScrnInfoPtr pScrn, int flags
 	return FALSE;
 
 pCg14->memsize = 4 * 1024 * 1024;	/* always safe */
-if ((psdp->height * psdp->width * 4) > 0x0040)
-	 pCg14->memsize = 0x0080;
 len = 24;
 prom = sparcPromInit();
 if ((ptr = sparcPromGetProperty(&psdp->node, "reg", &len))) {



CVS commit: xsrc/external/mit/xf86-video-suncg14/dist/src

2021-12-01 Thread Michael Lorenz
Module Name:xsrc
Committed By:   macallan
Date:   Wed Dec  1 17:47:11 UTC 2021

Modified Files:
xsrc/external/mit/xf86-video-suncg14/dist/src: cg14_driver.c

Log Message:
remove old guesswork code to determine VRAM size - we can rely on OBP now


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 \
xsrc/external/mit/xf86-video-suncg14/dist/src/cg14_driver.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2021-12-01 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Dec  1 14:17:51 UTC 2021

Modified Files:
src/lib/librefuse: fuse_opt.h refuse_opt.c

Log Message:
Revert my previous change to struct fuse_opt

I should have thought twice before commiting it. Of course changing
the layout of a struct breaks ABI compatibility. Change the offset
back to fixed 32 bits.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/librefuse/fuse_opt.h
cvs rdiff -u -r1.20 -r1.21 src/lib/librefuse/refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librefuse/fuse_opt.h
diff -u src/lib/librefuse/fuse_opt.h:1.8 src/lib/librefuse/fuse_opt.h:1.9
--- src/lib/librefuse/fuse_opt.h:1.8	Wed Dec  1 13:51:33 2021
+++ src/lib/librefuse/fuse_opt.h	Wed Dec  1 14:17:50 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fuse_opt.h,v 1.8 2021/12/01 13:51:33 pho Exp $	*/
+/*	$NetBSD: fuse_opt.h,v 1.9 2021/12/01 14:17:50 pho Exp $	*/
 
 /*
  * Copyright (c) 2007 Alistair Crooks.  All rights reserved.
@@ -46,11 +46,11 @@ enum {
 
 struct fuse_opt {
 	const char	*templ;
-	unsigned long	offset;
-	int		value;
+	int32_t		offset;
+	int32_t		value;
 };
 
-#define FUSE_OPT_KEY(templ, key) { templ, -1U, key }
+#define FUSE_OPT_KEY(templ, key) { templ, -1, key }
 #define FUSE_OPT_END { .templ = NULL }
 
 typedef int (*fuse_opt_proc_t)(void *, const char *, int, struct fuse_args *);

Index: src/lib/librefuse/refuse_opt.c
diff -u src/lib/librefuse/refuse_opt.c:1.20 src/lib/librefuse/refuse_opt.c:1.21
--- src/lib/librefuse/refuse_opt.c:1.20	Wed Dec  1 13:51:33 2021
+++ src/lib/librefuse/refuse_opt.c	Wed Dec  1 14:17:50 2021
@@ -1,4 +1,4 @@
-/* 	$NetBSD: refuse_opt.c,v 1.20 2021/12/01 13:51:33 pho Exp $	*/
+/* 	$NetBSD: refuse_opt.c,v 1.21 2021/12/01 14:17:50 pho Exp $	*/
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -286,7 +286,7 @@ parse_matched_arg(const char* arg, struc
 		const struct fuse_opt* opt, int sep_idx, void* data,
 		fuse_opt_proc_t proc, bool is_opt)
 {
-	if (opt->offset == -1U) {
+	if (opt->offset == -1) {
 		/* The option description does not want any variables to be
 		 * updated.*/
 		if (call_proc(proc, data, arg, opt->value, outargs, is_opt) == -1)



CVS commit: src/lib/librefuse

2021-12-01 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Dec  1 14:17:51 UTC 2021

Modified Files:
src/lib/librefuse: fuse_opt.h refuse_opt.c

Log Message:
Revert my previous change to struct fuse_opt

I should have thought twice before commiting it. Of course changing
the layout of a struct breaks ABI compatibility. Change the offset
back to fixed 32 bits.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/librefuse/fuse_opt.h
cvs rdiff -u -r1.20 -r1.21 src/lib/librefuse/refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/librefuse

2021-12-01 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Dec  1 13:51:33 UTC 2021

Modified Files:
src/lib/librefuse: fuse_opt.h refuse_opt.c

Log Message:
Use correct types for the fields of struct fuse_opt

This change shouldn't make any behavioral differences in reality, but
compilers these days dislike converting -1U to int32_t implicitly,
which is indeed understandable.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/librefuse/fuse_opt.h
cvs rdiff -u -r1.19 -r1.20 src/lib/librefuse/refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/librefuse/fuse_opt.h
diff -u src/lib/librefuse/fuse_opt.h:1.7 src/lib/librefuse/fuse_opt.h:1.8
--- src/lib/librefuse/fuse_opt.h:1.7	Mon Nov 14 17:19:29 2016
+++ src/lib/librefuse/fuse_opt.h	Wed Dec  1 13:51:33 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: fuse_opt.h,v 1.7 2016/11/14 17:19:29 pho Exp $	*/
+/*	$NetBSD: fuse_opt.h,v 1.8 2021/12/01 13:51:33 pho Exp $	*/
 
 /*
  * Copyright (c) 2007 Alistair Crooks.  All rights reserved.
@@ -46,8 +46,8 @@ enum {
 
 struct fuse_opt {
 	const char	*templ;
-	int32_t		offset;
-	int32_t		value;
+	unsigned long	offset;
+	int		value;
 };
 
 #define FUSE_OPT_KEY(templ, key) { templ, -1U, key }

Index: src/lib/librefuse/refuse_opt.c
diff -u src/lib/librefuse/refuse_opt.c:1.19 src/lib/librefuse/refuse_opt.c:1.20
--- src/lib/librefuse/refuse_opt.c:1.19	Sat Oct 30 09:06:34 2021
+++ src/lib/librefuse/refuse_opt.c	Wed Dec  1 13:51:33 2021
@@ -1,4 +1,4 @@
-/* 	$NetBSD: refuse_opt.c,v 1.19 2021/10/30 09:06:34 nia Exp $	*/
+/* 	$NetBSD: refuse_opt.c,v 1.20 2021/12/01 13:51:33 pho Exp $	*/
 
 /*-
  * Copyright (c) 2007 Juan Romero Pardines.
@@ -286,7 +286,7 @@ parse_matched_arg(const char* arg, struc
 		const struct fuse_opt* opt, int sep_idx, void* data,
 		fuse_opt_proc_t proc, bool is_opt)
 {
-	if (opt->offset == -1) {
+	if (opt->offset == -1U) {
 		/* The option description does not want any variables to be
 		 * updated.*/
 		if (call_proc(proc, data, arg, opt->value, outargs, is_opt) == -1)



CVS commit: src/lib/librefuse

2021-12-01 Thread Masatake Daimon
Module Name:src
Committed By:   pho
Date:   Wed Dec  1 13:51:33 UTC 2021

Modified Files:
src/lib/librefuse: fuse_opt.h refuse_opt.c

Log Message:
Use correct types for the fields of struct fuse_opt

This change shouldn't make any behavioral differences in reality, but
compilers these days dislike converting -1U to int32_t implicitly,
which is indeed understandable.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/librefuse/fuse_opt.h
cvs rdiff -u -r1.19 -r1.20 src/lib/librefuse/refuse_opt.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.