CVS commit: src/sys/sys

2024-05-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 24 13:50:30 UTC 2024

Modified Files:
src/sys/sys: ucontext.h

Log Message:
Move __UCONTEXT_SIZE inside _KERNEL like before

Fix pkgsrc/lang/rust runtime SIGILL error during pkgsrc/www/firefox build.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/sys/ucontext.h

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



CVS commit: src/sys/sys

2024-05-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 24 13:50:30 UTC 2024

Modified Files:
src/sys/sys: ucontext.h

Log Message:
Move __UCONTEXT_SIZE inside _KERNEL like before

Fix pkgsrc/lang/rust runtime SIGILL error during pkgsrc/www/firefox build.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/sys/ucontext.h

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

Modified files:

Index: src/sys/sys/ucontext.h
diff -u src/sys/sys/ucontext.h:1.22 src/sys/sys/ucontext.h:1.23
--- src/sys/sys/ucontext.h:1.22	Sat May 18 01:21:42 2024
+++ src/sys/sys/ucontext.h	Fri May 24 13:50:30 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: ucontext.h,v 1.22 2024/05/18 01:21:42 thorpej Exp $	*/
+/*	$NetBSD: ucontext.h,v 1.23 2024/05/24 13:50:30 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2003, 2024 The NetBSD Foundation, Inc.
@@ -82,12 +82,6 @@ struct __ucontext {
 #define _UC_UCONTEXT_ALIGN (~0)
 #endif
 
-#ifdef __UCONTEXT_SIZE
-__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
-#else
-#define	__UCONTEXT_SIZE		sizeof(ucontext_t)
-#endif
-
 #ifndef _UC_TLSBASE
 #error	_UC_TLSBASE not defined.
 #endif
@@ -108,6 +102,12 @@ int	setucontext(struct lwp *, const ucon
 void	cpu_getmcontext(struct lwp *, mcontext_t *, unsigned int *);
 int	cpu_setmcontext(struct lwp *, const mcontext_t *, unsigned int);
 int	cpu_mcontext_validate(struct lwp *, const mcontext_t *);
+
+#ifdef __UCONTEXT_SIZE
+__CTASSERT(sizeof(ucontext_t) == __UCONTEXT_SIZE);
+#else
+#define	__UCONTEXT_SIZE		sizeof(ucontext_t)
+#endif
 #endif /* _KERNEL */
 
 #endif /* !_SYS_UCONTEXT_H_ */



CVS commit: src/usr.bin/kdump

2024-03-16 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Mar 16 23:40:26 UTC 2024

Modified Files:
src/usr.bin/kdump: kdump.c

Log Message:
Remove debug print


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/usr.bin/kdump/kdump.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/kdump

2024-03-16 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Mar 16 23:40:26 UTC 2024

Modified Files:
src/usr.bin/kdump: kdump.c

Log Message:
Remove debug print


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/usr.bin/kdump/kdump.c

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/kdump/kdump.c
diff -u src/usr.bin/kdump/kdump.c:1.144 src/usr.bin/kdump/kdump.c:1.145
--- src/usr.bin/kdump/kdump.c:1.144	Sun Mar 10 18:54:41 2024
+++ src/usr.bin/kdump/kdump.c	Sat Mar 16 23:40:25 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: kdump.c,v 1.144 2024/03/10 18:54:41 rillig Exp $	*/
+/*	$NetBSD: kdump.c,v 1.145 2024/03/16 23:40:25 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 19
 #if 0
 static char sccsid[] = "@(#)kdump.c	8.4 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: kdump.c,v 1.144 2024/03/10 18:54:41 rillig Exp $");
+__RCSID("$NetBSD: kdump.c,v 1.145 2024/03/16 23:40:25 ryoon Exp $");
 #endif
 #endif /* not lint */
 
@@ -900,7 +900,6 @@ ktrsyscall(struct ktr_syscall *ktr)
 			ap++;
 			argcount--;
 			register_t level = *ap;
-			fprintf(stderr, "level=%jx\n", (intmax_t)level);
 			if ((cp = sockproto(level)) != NULL) {
 (void)printf(",%s", cp);
 			} else {



Re: CVS commit: src/tools/gcc

2024-02-22 Thread Ryo ONODERA
Hi,

"matthew green"  writes:

> Module Name:  src
> Committed By: mrg
> Date: Thu Feb 22 02:47:27 UTC 2024
>
> Modified Files:
>   src/tools/gcc: Makefile
>
> Log Message:
> enable isl support for GCC 12.

I have HAVE_GCC=12 in my /etc/mk.conf.

I have gotten the following error.
Maybe something for isl library is missing in the src tree.

Could you take a look at my problem?
Thank you.


checking for objdir... .libs [463/94127]
checking for the correct version of gmp.h... yes
checking for the correct version of mpfr.h... yes
checking for the correct version of mpc.h... yes
checking for the correct version of the gmp/mpfr/mpc libraries... yes
checking for isl 0.15 or later... no
required isl version is 0.15 or later
configure: error: Unable to find a usable isl.  See config.log for details.

*** Failed target: .configure_done
*** Failed commands:
@mkdir build 2>/dev/null || true
@(cd build && ${CONFIGURE_ENV} ${HOST_SH} ${GNUHOSTDIST}/configure ${CON
FIGURE_ARGS})
=> @(cd build && gcc_cv_libc_provides_ssp=yes  gcc_cv_as_sparc_gotdata_o
p=no AR=ar  AWK=/usr/world/10.99/amd64/tools/bin/nbawk  CC=cc  CFLAGS=-O  CONFIG
_SHELL=/bin/sh  CPPFLAGS=  CXX=c++  CXXFLAGS=-O  INSTALL=/usr/world/10.99/amd64/
tools/bin/x86_64--netbsd-install\ -c\ -p\ -r  LDFLAGS=  LEX=/usr/world/10.99/amd
64/tools/bin/nblex  FLEX=/usr/world/10.99/amd64/tools/bin/nblex  M4=/usr/world/1
0.99/amd64/tools/bin/nbm4  MAKE=/usr/world/10.99/amd64/tools/bin/nbgmake  PATH="
/usr/world/10.99/amd64/tools/bin:$PATH"  RANLIB=ranlib  YACC=/usr/world/10.99/am
d64/tools/bin/nbyacc /bin/sh /usr/src/tools/gcc/../../external/gpl3/gcc/dist/con
figure --target=x86_64--netbsd  --enable-long-long  --enable-threads  --with-bug
url=http://www.NetBSD.org/support/send-pr.html  --with-pkgversion="NetBSD nb1 20
230729"  --with-system-zlib  --enable-__cxa_atexit  --enable-libstdcxx-time=rt
--enable-libstdcxx-threads  --with-diagnostics-color=auto-if-env --with-tune=noc
ona --with-default-libstdcxx-abi=new --with-sysroot=/usr/world/10.99/amd64/dest
 --with-mpc=/usr/world/10.99/amd64/tools  --with-mpfr=/usr/world/10.99/amd64/too
ls  --with-gmp=/usr/world/10.99/amd64/tools  --with-isl=/usr/world/10.99/amd64/t
ools  --disable-nls  --enable-multilib--program-transform-name="s,^,x86_64--
netbsd-,"  --enable-languages="c c++ objc" --prefix=/usr/world/10.99/amd64/tools
)
@echo ${BUILD_PLATFORM} > $@
=> @echo NetBSD-10.99.10-amd64 > .configure_done
*** [.configure_done] Error code 1

nbmake[4]: stopped in /usr/src/tools/gcc
nbmake[4]: 1 error

nbmake[4]: stopped in /usr/src/tools/gcc


>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.110 -r1.111 src/tools/gcc/Makefile
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>
> Modified files:
>
> Index: src/tools/gcc/Makefile
> diff -u src/tools/gcc/Makefile:1.110 src/tools/gcc/Makefile:1.111
> --- src/tools/gcc/Makefile:1.110  Thu Feb 22 02:40:21 2024
> +++ src/tools/gcc/MakefileThu Feb 22 02:47:26 2024
> @@ -1,4 +1,4 @@
> -#$NetBSD: Makefile,v 1.110 2024/02/22 02:40:21 mrg Exp $
> +#$NetBSD: Makefile,v 1.111 2024/02/22 02:47:26 mrg Exp $
>  
>  .include 
>  
> @@ -35,7 +35,6 @@ COMMON_CONFIGURE_ARGS=  --target=${MACHIN
>   
> --with-bugurl=http://www.NetBSD.org/support/send-pr.html \
>   --with-pkgversion="NetBSD ${NETBSD_GCC_VERSION}" \
>   --with-system-zlib \
> - --without-isl \
>   --enable-__cxa_atexit \
>   --enable-libstdcxx-time=rt \
>   --enable-libstdcxx-threads \
> @@ -58,12 +57,21 @@ COMMON_CONFIGURE_ARGS+=   --enable-fix-cor
>  COMMON_CONFIGURE_ARGS+=  --with-default-libstdcxx-abi=new
>  .endif
>  
> +# We nabled isl support for GCC 12.  Move into normal segment when
> +# removing GCC 10.
> +.if ${HAVE_GCC} < 12
> +ISL_CONFIGURE_ARGS+= --without-isl
> +.else
> +ISL_CONFIGURE_ARGS+= --with-isl=${TOOLDIR}
> +.endif
> +
>  CONFIGURE_ARGS=  ${COMMON_CONFIGURE_ARGS}
>  CONFIGURE_ARGS+= \
>   --with-sysroot=${DESTDIR} \
>   --with-mpc=${TOOLDIR} \
>   --with-mpfr=${TOOLDIR} \
>   --with-gmp=${TOOLDIR} \
> + ${ISL_CONFIGURE_ARGS} \
>   --disable-nls \
>   ${MULTILIB_ARGS} \
>   ${SOFTFLOAT_ARGS} \
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/lib/libm/src

2024-01-26 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jan 27 05:50:42 UTC 2024

Modified Files:
src/lib/libm/src: e_acoshl.c e_acosl.c e_asinl.c e_atanhl.c e_coshl.c
s_asinhl.c s_logl.c s_tanhl.c

Log Message:
Enable asinl, acosl, logl, coshl, tanhl, atanhl, asinhl and acoshl

* Fix pkgsrc/math/py-numpy and pkgsrc/graphics/py-matplotlib, for example.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_acoshl.c \
src/lib/libm/src/e_acosl.c src/lib/libm/src/e_asinl.c \
src/lib/libm/src/e_atanhl.c src/lib/libm/src/e_coshl.c \
src/lib/libm/src/s_asinhl.c src/lib/libm/src/s_tanhl.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_logl.c

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



CVS commit: src/lib/libm/src

2024-01-26 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jan 27 05:50:42 UTC 2024

Modified Files:
src/lib/libm/src: e_acoshl.c e_acosl.c e_asinl.c e_atanhl.c e_coshl.c
s_asinhl.c s_logl.c s_tanhl.c

Log Message:
Enable asinl, acosl, logl, coshl, tanhl, atanhl, asinhl and acoshl

* Fix pkgsrc/math/py-numpy and pkgsrc/graphics/py-matplotlib, for example.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_acoshl.c \
src/lib/libm/src/e_acosl.c src/lib/libm/src/e_asinl.c \
src/lib/libm/src/e_atanhl.c src/lib/libm/src/e_coshl.c \
src/lib/libm/src/s_asinhl.c src/lib/libm/src/s_tanhl.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_logl.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/libm/src/e_acoshl.c
diff -u src/lib/libm/src/e_acoshl.c:1.1 src/lib/libm/src/e_acoshl.c:1.2
--- src/lib/libm/src/e_acoshl.c:1.1	Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_acoshl.c	Sat Jan 27 05:50:42 2024
@@ -16,6 +16,12 @@
 
 #include "namespace.h"
 
+#include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
+
 #ifdef __HAVE_LONG_DOUBLE
 __weak_alias(acoshl, _acoshl)
 
@@ -26,14 +32,10 @@ __weak_alias(acoshl, _acoshl)
  * Bruce D. Evans.
  */
 
-#include 
 #ifdef __i386__
 #include 
 #endif
 
-#include "math.h"
-#include "math_private.h"
-
 /* EXP_LARGE is the threshold above which we use acosh(x) ~= log(2x). */
 #if LDBL_MANT_DIG == 64
 #define	EXP_LARGE	34
Index: src/lib/libm/src/e_acosl.c
diff -u src/lib/libm/src/e_acosl.c:1.1 src/lib/libm/src/e_acosl.c:1.2
--- src/lib/libm/src/e_acosl.c:1.1	Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_acosl.c	Sat Jan 27 05:50:42 2024
@@ -19,6 +19,10 @@
 #include "namespace.h"
 
 #include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
 
 #ifdef __HAVE_LONG_DOUBLE
 __weak_alias(acosl, _acosl)
@@ -30,8 +34,6 @@ __weak_alias(acosl, _acosl)
 #else
 #error "Unsupported long double format"
 #endif
-#include "math.h"
-#include "math_private.h"
 
 #ifdef LDBL_IMPLICIT_NBIT
 #define	LDBL_NBIT	0
Index: src/lib/libm/src/e_asinl.c
diff -u src/lib/libm/src/e_asinl.c:1.1 src/lib/libm/src/e_asinl.c:1.2
--- src/lib/libm/src/e_asinl.c:1.1	Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_asinl.c	Sat Jan 27 05:50:42 2024
@@ -19,6 +19,10 @@
 
 #include "namespace.h"
 #include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
 
 #ifdef __HAVE_LONG_DOUBLE
 
@@ -31,8 +35,6 @@ __weak_alias(asinl, _asinl)
 #else
 #error "Unsupported long double format"
 #endif
-#include "math.h"
-#include "math_private.h"
 
 #ifdef LDBL_IMPLICIT_NBIT
 #define	LDBL_NBIT	0
Index: src/lib/libm/src/e_atanhl.c
diff -u src/lib/libm/src/e_atanhl.c:1.1 src/lib/libm/src/e_atanhl.c:1.2
--- src/lib/libm/src/e_atanhl.c:1.1	Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_atanhl.c	Sat Jan 27 05:50:42 2024
@@ -17,6 +17,10 @@
 #include "namespace.h"
 
 #include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
 
 #ifdef __HAVE_LONG_DOUBLE
 __weak_alias(atanhl, _atanhl)
@@ -31,9 +35,6 @@ __weak_alias(atanhl, _atanhl)
 #include 
 #endif
 
-#include "math.h"
-#include "math_private.h"
-
 /* EXP_TINY is the threshold below which we use atanh(x) ~= x. */
 #if LDBL_MANT_DIG == 64
 #define	EXP_TINY	-34
Index: src/lib/libm/src/e_coshl.c
diff -u src/lib/libm/src/e_coshl.c:1.1 src/lib/libm/src/e_coshl.c:1.2
--- src/lib/libm/src/e_coshl.c:1.1	Sun Jan 21 18:53:17 2024
+++ src/lib/libm/src/e_coshl.c	Sat Jan 27 05:50:42 2024
@@ -24,6 +24,7 @@
 __weak_alias(coshl, _coshl)
 
 #ifdef __HAVE_LONG_DOUBLE
+#error SHOULD STOP HERE!!!
 
 #ifdef __i386__
 #include 
Index: src/lib/libm/src/s_asinhl.c
diff -u src/lib/libm/src/s_asinhl.c:1.1 src/lib/libm/src/s_asinhl.c:1.2
--- src/lib/libm/src/s_asinhl.c:1.1	Sun Jan 21 18:53:18 2024
+++ src/lib/libm/src/s_asinhl.c	Sat Jan 27 05:50:42 2024
@@ -16,6 +16,10 @@
 #include "namespace.h"
 
 #include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
 
 #ifdef __HAVE_LONG_DOUBLE
 __weak_alias(asinhl, _asinhl)
@@ -31,9 +35,6 @@ __weak_alias(asinhl, _asinhl)
 #include 
 #endif
 
-#include "math.h"
-#include "math_private.h"
-
 /* EXP_LARGE is the threshold above which we use asinh(x) ~= log(2x). */
 /* EXP_TINY is the threshold below which we use asinh(x) ~= x. */
 #if LDBL_MANT_DIG == 64
Index: src/lib/libm/src/s_tanhl.c
diff -u src/lib/libm/src/s_tanhl.c:1.1 src/lib/libm/src/s_tanhl.c:1.2
--- src/lib/libm/src/s_tanhl.c:1.1	Sun Jan 21 18:53:19 2024
+++ src/lib/libm/src/s_tanhl.c	Sat Jan 27 05:50:42 2024
@@ -15,6 +15,10 @@
 
 #include "namespace.h"
 #include 
+#include 
+
+#include "math.h"
+#include "math_private.h"
 
 #ifdef __HAVE_LONG_DOUBLE
 __weak_alias(tanhl, _tanhl)
@@ -28,8 +32,6 @@ __weak_alias(tanhl, _tanhl)
 #include 
 #endif
 
-#include "math.h"
-#include "math_private.h"
 #if LDBL_MANT_DIG == 64
 #include "../ld80/k_expl.h"
 #elif LDBL_MANT_DIG == 113

Index: src/lib/libm/src/s_logl.c
diff -u 

CVS commit: src/lib/libm/src

2024-01-26 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Jan 26 12:32:49 UTC 2024

Modified Files:
src/lib/libm/src: s_sinl.c

Log Message:
Fix inverted logic for weak alias

* Fix gfortran from pkgsrc/lang/gcc10 and pkgsrc/math/coinmp, for example.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_sinl.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/libm/src/s_sinl.c
diff -u src/lib/libm/src/s_sinl.c:1.1 src/lib/libm/src/s_sinl.c:1.2
--- src/lib/libm/src/s_sinl.c:1.1	Sun Jan 21 18:53:19 2024
+++ src/lib/libm/src/s_sinl.c	Fri Jan 26 12:32:49 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_sinl.c,v 1.1 2024/01/21 18:53:19 christos Exp $	*/
+/*	$NetBSD: s_sinl.c,v 1.2 2024/01/26 12:32:49 ryoon Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause
@@ -29,7 +29,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: s_sinl.c,v 1.1 2024/01/21 18:53:19 christos Exp $");
+__RCSID("$NetBSD: s_sinl.c,v 1.2 2024/01/26 12:32:49 ryoon Exp $");
 
 #include "namespace.h"
 #include 
@@ -37,7 +37,7 @@ __RCSID("$NetBSD: s_sinl.c,v 1.1 2024/01
 #include 
 #endif
 
-#ifndef __weak_alias
+#ifdef __weak_alias
 __weak_alias(sinl, _sinl)
 #endif
 



CVS commit: src/lib/libm/src

2024-01-26 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Jan 26 12:32:49 UTC 2024

Modified Files:
src/lib/libm/src: s_sinl.c

Log Message:
Fix inverted logic for weak alias

* Fix gfortran from pkgsrc/lang/gcc10 and pkgsrc/math/coinmp, for example.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/s_sinl.c

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



Re: CVS commit: src/sys/compat/linux

2023-08-21 Thread Ryo ONODERA
Hi,

"Christos Zoulas"  writes:

> Module Name:  src
> Committed By: christos
> Date: Sun Aug 20 18:08:57 UTC 2023
>
> Modified Files:
>   src/sys/compat/linux: files.linux
>
> Log Message:
> add inotify (forgot to commit this)
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.22 -r1.23 src/sys/compat/linux/files.linux
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

The compat_linux kernel module is also required to have inotify.
The following patch fixes my error from 'modload compat_linux'.

# modload compat_linux
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_sys_inotify_add_watch' not found
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_sys_inotify_init1' not found
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_sys_inotify_rm_watch' not found
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_inotify_init' not found
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_sys_inotify_init' not found
[ 14619.3999280] kobj_checksyms, 1013: [compat_linux]: linker error: symbol 
`linux_inotify_fini' not found
[ 14619.3999280] WARNING: module error: unable to affix module `compat_linux', 
error 8

Patch:
Index: sys/modules/compat_linux/Makefile
===
RCS file: /cvsroot/src/sys/modules/compat_linux/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- sys/modules/compat_linux/Makefile   9 Oct 2021 07:01:35 -   1.6
+++ sys/modules/compat_linux/Makefile   21 Aug 2023 19:37:08 -
@@ -9,7 +9,8 @@
 
 .PATH: ${S}/compat/linux/common
 SRCS=  linux_blkio.c linux_cdrom.c linux_errno.c linux_exec.c
-SRCS+= linux_fdio.c linux_file.c linux_hdio.c linux_ioctl.c
+SRCS+= linux_fdio.c linux_file.c linux_hdio.c linux_inotify.c
+SRCS+= linux_ioctl.c
 SRCS+= linux_ipc.c linux_misc.c linux_mtio.c linux_sched.c
 SRCS+= linux_sg.c linux_signal.c linux_signo.c linux_socket.c
 SRCS+= linux_sysctl.c linux_termios.c linux_time.c linux_mod.c

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/lib/libc/string

2023-08-11 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Aug 11 13:07:17 UTC 2023

Modified Files:
src/lib/libc/string: Makefile.inc

Log Message:
Install strncpy.3 to fix build


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/lib/libc/string/Makefile.inc

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

Modified files:

Index: src/lib/libc/string/Makefile.inc
diff -u src/lib/libc/string/Makefile.inc:1.88 src/lib/libc/string/Makefile.inc:1.89
--- src/lib/libc/string/Makefile.inc:1.88	Fri Aug 11 09:39:39 2023
+++ src/lib/libc/string/Makefile.inc	Fri Aug 11 13:07:17 2023
@@ -1,5 +1,5 @@
 #	from: @(#)Makefile.inc	8.1 (Berkeley) 6/4/93
-#	$NetBSD: Makefile.inc,v 1.88 2023/08/11 09:39:39 riastradh Exp $
+#	$NetBSD: Makefile.inc,v 1.89 2023/08/11 13:07:17 ryoon Exp $
 
 # string sources
 .PATH: ${ARCHDIR}/string ${.CURDIR}/string
@@ -48,7 +48,7 @@ MAN+=	bm.3 bcmp.3 bcopy.3 bstring.3 bzer
 	popcount.3 \
 	rindex.3 strcasecmp.3 strcat.3 strchr.3 strcmp.3 strcoll.3 \
 	strcpy.3 strcspn.3 strdup.3 strerror.3 string.3 strings.3 strlcpy.3 \
-	strlen.3 strmode.3 strpbrk.3 strrchr.3 strsep.3 \
+	strlen.3 strmode.3 strncpy.3 strpbrk.3 strrchr.3 strsep.3 \
 	strsignal.3 strspn.3 strstr.3 strtok.3 strxfrm.3 \
 	swab.3 wcstok.3 wcswidth.3 wmemchr.3 wcsdup.3 wcscasecmp.3
 



CVS commit: src/lib/libc/string

2023-08-11 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Aug 11 13:07:17 UTC 2023

Modified Files:
src/lib/libc/string: Makefile.inc

Log Message:
Install strncpy.3 to fix build


To generate a diff of this commit:
cvs rdiff -u -r1.88 -r1.89 src/lib/libc/string/Makefile.inc

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



Re: CVS commit: src

2023-08-02 Thread Ryo ONODERA
Hi,

I have no strong opinion about this change.
I just want to unbreak the build to test the latest epoll(2) related
side effects for pkgsrc packages.

Thank you.

On Wed, Aug 2, 2023 at 4:20 PM Taylor R Campbell
 wrote:
>
> Let's please just revert all these ioctl renames now, and go back to
> the drawing board, rather than continue to dig ourselves into a deeper
> hole with unnecessary incremental cosmetic changes that are breaking
> all the builds.
>
> I generally agree that calling something plain `old' is bad and the
> proliferation of them into sanitizers is also bad, but flailing around
> with broken builds and without a clear plan for how this should fit
> together and be maintained is much worse.



-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src

2023-08-02 Thread Ryo ONODERA
Hi,

I have the same build failure.
I think that there are some typos and inconsistencies.

With the attached patch, I can finish build.sh build successfully.

Thank you.

On Wed, Aug 2, 2023 at 2:32 AM Christos Zoulas  wrote:
>
> I am looking into it. With new code that restores the old names it should all 
> work, unless I have typo that I have not found yet.
>
> christos
>
>


-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


libsanitizer.diff
Description: Binary data


CVS commit: src/share/mk

2023-05-12 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 12 11:49:47 UTC 2023

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Fix broken conditional


To generate a diff of this commit:
cvs rdiff -u -r1.1317 -r1.1318 src/share/mk/bsd.own.mk

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



CVS commit: src/share/mk

2023-05-12 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri May 12 11:49:47 UTC 2023

Modified Files:
src/share/mk: bsd.own.mk

Log Message:
Fix broken conditional


To generate a diff of this commit:
cvs rdiff -u -r1.1317 -r1.1318 src/share/mk/bsd.own.mk

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

Modified files:

Index: src/share/mk/bsd.own.mk
diff -u src/share/mk/bsd.own.mk:1.1317 src/share/mk/bsd.own.mk:1.1318
--- src/share/mk/bsd.own.mk:1.1317	Fri May 12 11:27:48 2023
+++ src/share/mk/bsd.own.mk	Fri May 12 11:49:47 2023
@@ -1,4 +1,4 @@
-#	$NetBSD: bsd.own.mk,v 1.1317 2023/05/12 11:27:48 christos Exp $
+#	$NetBSD: bsd.own.mk,v 1.1318 2023/05/12 11:49:47 ryoon Exp $
 
 # This needs to be before bsd.init.mk
 .if defined(BSD_MK_COMPAT_FILE)
@@ -133,7 +133,7 @@ EXTERNAL_GDB_SUBDIR=		/does/not/exist
 #
 .if ${MACHINE} == "amd64" || \
 ${MACHINE_ARCH:Maarch64*} || \
-${MACHINE_ARCH} == "sparc64" \\
+${MACHINE_ARCH} == "sparc64" || \
 ${MACHINE} == "vax"
 HAVE_OPENSSL?=	30
 .else



CVS commit: src/games/cribbage

2023-01-06 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Jan  6 19:02:02 UTC 2023

Modified Files:
src/games/cribbage: cribbage.h

Log Message:
Define yes as extern veriable to fix build

PR bin/57164 is insufficient.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/games/cribbage/cribbage.h

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

Modified files:

Index: src/games/cribbage/cribbage.h
diff -u src/games/cribbage/cribbage.h:1.17 src/games/cribbage/cribbage.h:1.18
--- src/games/cribbage/cribbage.h:1.17	Sat Oct 13 20:36:06 2012
+++ src/games/cribbage/cribbage.h	Fri Jan  6 19:02:02 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: cribbage.h,v 1.17 2012/10/13 20:36:06 dholland Exp $	*/
+/*	$NetBSD: cribbage.h,v 1.18 2023/01/06 19:02:02 ryoon Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -53,6 +53,7 @@ extern  BOOLEAN		iwon;			/* if comp won 
 extern  BOOLEAN		explain;		/* player mistakes explained */
 extern  BOOLEAN		rflag;			/* if all cuts random */
 extern  BOOLEAN		quiet;			/* if suppress random mess */
+extern  BOOLEAN		yes;			/* default 'y' to "Another game?" */
 
 extern  char		explan[];		/* string for explanation */
 



CVS commit: src/games/cribbage

2023-01-06 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Jan  6 19:02:02 UTC 2023

Modified Files:
src/games/cribbage: cribbage.h

Log Message:
Define yes as extern veriable to fix build

PR bin/57164 is insufficient.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/games/cribbage/cribbage.h

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



CVS commit: src/usr.sbin/tprof

2022-12-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Dec 26 03:25:55 UTC 2022

Modified Files:
src/usr.sbin/tprof: tprof.c

Log Message:
Reflect recent new options for top operation, add a and c


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/tprof/tprof.c

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



CVS commit: src/usr.sbin/tprof

2022-12-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Dec 26 03:25:55 UTC 2022

Modified Files:
src/usr.sbin/tprof: tprof.c

Log Message:
Reflect recent new options for top operation, add a and c


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/usr.sbin/tprof/tprof.c

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

Modified files:

Index: src/usr.sbin/tprof/tprof.c
diff -u src/usr.sbin/tprof/tprof.c:1.18 src/usr.sbin/tprof/tprof.c:1.19
--- src/usr.sbin/tprof/tprof.c:1.18	Fri Dec 16 08:02:04 2022
+++ src/usr.sbin/tprof/tprof.c	Mon Dec 26 03:25:55 2022
@@ -1,4 +1,4 @@
-/*	$NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $	*/
+/*	$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $	*/
 
 /*
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -57,7 +57,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: tprof.c,v 1.18 2022/12/16 08:02:04 ryo Exp $");
+__RCSID("$NetBSD: tprof.c,v 1.19 2022/12/26 03:25:55 ryoon Exp $");
 #endif /* not lint */
 
 #include 
@@ -133,7 +133,7 @@ usage(void)
 	" only outputs a counter.\n");
 	fprintf(stderr, "\tanalyze [-CkLPs] [-p pid] file\n");
 	fprintf(stderr, "\t\tAnalyze the samples of the file 'file'.\n");
-	fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-u]\n");
+	fprintf(stderr, "\ttop [-e name [-e ...]] [-i interval] [-acu]\n");
 	fprintf(stderr, "\t\tDisplay profiling results in real-time.\n");
 	exit(EXIT_FAILURE);
 }



Re: CVS commit: src/lib/libcurses

2022-11-30 Thread Ryo ONODERA
Hi,

r1.125 of refresh.c breaks /usr/bin/vi for me.
When scrolling down long file with 'j' key and reaches the bottom
line, screen is not scrolled up and new lines are displayed
over the previous bottom line.

Could you take a look at my problem?

Thank you very much.

"Brett Lymn"  writes:

> Module Name:  src
> Committed By: blymn
> Date: Wed Nov 30 06:19:16 UTC 2022
>
> Modified Files:
>   src/lib/libcurses: refresh.c
>
> Log Message:
> When performing a scroll, check the last line of the region is the same
> on virtscr and curscr because the indexes past are supposed to be
> one *past* the last matching line (they may actually match if the line is
> at the bottom of the screen).  Iff they don't match reduce the scroll
> region size by one so we don't scroll non-matching lines, also check
> if the region is then 0 after the decrement and just return if it was.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.124 -r1.125 src/lib/libcurses/refresh.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/libcurses/refresh.c
> diff -u src/lib/libcurses/refresh.c:1.124 src/lib/libcurses/refresh.c:1.125
> --- src/lib/libcurses/refresh.c:1.124 Wed Oct 19 06:09:27 2022
> +++ src/lib/libcurses/refresh.c   Wed Nov 30 06:19:15 2022
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: refresh.c,v 1.124 2022/10/19 06:09:27 blymn Exp $  */
> +/*   $NetBSD: refresh.c,v 1.125 2022/11/30 06:19:15 blymn Exp $  */
>  
>  /*
>   * Copyright (c) 1981, 1993, 1994
> @@ -34,7 +34,7 @@
>  #if 0
>  static char sccsid[] = "@(#)refresh.c8.7 (Berkeley) 8/13/94";
>  #else
> -__RCSID("$NetBSD: refresh.c,v 1.124 2022/10/19 06:09:27 blymn Exp $");
> +__RCSID("$NetBSD: refresh.c,v 1.125 2022/11/30 06:19:15 blymn Exp $");
>  #endif
>  #endif   /* not lint */
>  
> @@ -1852,6 +1852,13 @@ scrolln(int starts, int startw, int curs
>   ox = curscr->curx;
>   n = starts - startw;
>  
> + if (!lineeq(__virtscr->alines[startw]->line,
> + curscr->alines[starts]->line, (size_t) __virtscr->maxx))
> + n--;
> +
> + if (n == 0)
> + return;
> +
>   /*
>* XXX
>* The initial tests that set __noqch don't let us reach here unless
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


re: CVS commit: src/usr.bin/ldd

2022-10-25 Thread Ryo ONODERA
Hi,

matthew green  writes:

>> With this change, ldd /lib/libc.so.12.220 fails under NetBSD/amd64 9.99.101.
>>
>>
>> /lib/libc.so.12.220:
>> ldd: /lib/libc.so.12.220: invalid ELF class 2, expected 1
>>
>> It seems that elf32_ldd() fails.
>>
>> Builds of some pkgsrc packages that use gobject introspection and meson fails
>> because they uses ldd command during build.
>
> this should be fixed now.  sorry for the failure..

I am sorry. I have missed your email.
Thanks for your quick fix!!!

> .mrg.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/usr.bin/ldd

2022-10-18 Thread Ryo ONODERA
Hi,

With this change, ldd /lib/libc.so.12.220 fails under NetBSD/amd64 9.99.101.

/lib/libc.so.12.220:
ldd: /lib/libc.so.12.220: invalid ELF class 2, expected 1

It seems that elf32_ldd() fails.

Builds of some pkgsrc packages that use gobject introspection and meson fails 
because they uses ldd command during build.

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3

> On Oct 15, 2022, at 14:55, matthew green  wrote:
> 
> Module Name:src
> Committed By:mrg
> Date:Sat Oct 15 05:55:46 UTC 2022
> 
> Modified Files:
>src/usr.bin/ldd: ldd.1 ldd.c
> 
> Log Message:
> ldd(1): add a -v option to display all errors not just the latest.
> 
> ldd on a go binary currently fails with an error that basically
> says "not elf32 class".  this is a true statement, as it is an
> elf64 class object, but it's not useful.  it happens because
> ldd_elf64() is called, fails in _rtld_map_object(), and then
> ldd_elf32() is called, and it fails because the class is wrong,
> and only this error is returned.  (this problem remains.  the
> call to map the object fails due to there being 3 instead of 2
> elf segments in the file.  i guess we need similar code in
> ld.elf_so/map_objects.c as the kernel gained some time ago.)
> 
> perhaps the first error, not the last error, should be used if
> everything fails, but this allows all failures to be see and
> would be useful even if the error string handling changed.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.20 -r1.21 src/usr.bin/ldd/ldd.1
> cvs rdiff -u -r1.25 -r1.26 src/usr.bin/ldd/ldd.c
> 
> 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/ldd/ldd.1 diff -u 
> src/usr.bin/ldd/ldd.1:1.20 src/usr.bin/ldd/ldd.1:1.21 --- 
> src/usr.bin/ldd/ldd.1:1.20 Mon Dec 25 05:08:49 2017 +++ src/usr.bin/ldd/ldd.1 
> Sat Oct 15 05:55:45 2022 @@ -1,4 +1,4 @@ -.\" $NetBSD: ldd.1,v 1.20 
> 2017/12/25 05:08:49 maya Exp $ +.\" $NetBSD: ldd.1,v 1.21 2022/10/15 05:55:45 
> mrg Exp $ .\" .\" Copyright (c) 1998 The NetBSD Foundation, Inc. .\" All 
> rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF 
> THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" 
> -.Dd December 25, 2017 +.Dd October 15, 2022 .Dt LDD 1 .Os .Sh NAME @@ -35,7 
> +35,7 @@ .Nd list dynamic object dependencies .Sh SYNOPSIS .Nm -.Op Fl o +.Op 
> Fl ov .Op Fl f Ar format .Ar program ... .Sh DESCRIPTION @@ -105,6 +105,10 @@ 
> which makes .Nm behave analogously to .Ic nm Fl o . +.Pp +The +.Fl v +option 
> turns on verbose mode. .Sh EXIT STATUS .Ex -std .Sh SEE ALSO @@ -118,9 +122,3 
> @@ A utility first appeared in SunOS 4.0, it appeared in its current form in 
> .Nx 0.9a . -.Sh BUGS -The -a.out -.Nm -actually runs the program it has been 
> requested to analyze which in specially -constructed environments can have 
> security implications. Index: src/usr.bin/ldd/ldd.c diff -u 
> src/usr.bin/ldd/ldd.c:1.25 src/usr.bin/ldd/ldd.c:1.26 --- 
> src/usr.bin/ldd/ldd.c:1.25 Fri Jul 23 04:20:05 2021 +++ src/usr.bin/ldd/ldd.c 
> Sat Oct 15 05:55:45 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: ldd.c,v 1.25 2021/07/23 
> 04:20:05 martin Exp $ */ +/* $NetBSD: ldd.c,v 1.26 2022/10/15 05:55:45 mrg 
> Exp $ */ /*- * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. @@ -62,7 
> +62,7 @@ #include #ifndef lint -__RCSID("$NetBSD: ldd.c,v 1.25 2021/07/23 
> 04:20:05 martin Exp $"); +__RCSID("$NetBSD: ldd.c,v 1.26 2022/10/15 05:55:45 
> mrg Exp $"); #endif /* not lint */ #include @@ -124,11 +124,12 @@ main(int 
> argc, char **argv) const char *fmt1 = NULL, *fmt2 = NULL; int c, exit_status 
> = EXIT_SUCCESS; char cwd[MAXPATHLEN], path[MAXPATHLEN]; + bool verbose = 
> false, failed = false; #ifdef DEBUG debug = 1; #endif - while ((c = 
> getopt(argc, argv, "f:o")) != -1) { + while ((c = getopt(argc, argv, "f:ov")) 
> != -1) { switch (c) { case 'f': if (fmt1) { @@ -143,6 +144,9 @@ main(int 
> argc, char **argv) errx(1, "Cannot use -o and -f together"); fmt1 = 
> "%a:-l%o.%m => %p\n"; break; + case 'v': + verbose = true; + break; default: 
> usage(); /*NOTREACHED*/ @@ -174,17 +178,31 @@ main(int argc, char **argv) 
> warn("%s", *argv); continue; } - if (elf_ldd(fd, *argv, path, fmt1, fmt2) == 
> -1 - /* Alpha never had 32 bit support. */ + if (elf_ldd(fd, *argv, path, 
> fmt1, fmt2) == -1) { + if (verbose) + warnx("%s", error_message); + failed = 
> true; + } + /* Alpha never had 32 bit support. */ #if (defined(_LP64) && 
> !defined(ELF64_ONLY)) || defined(MIPS_N32) - &&

Re: CVS commit: src/sys/dev

2022-10-04 Thread Ryo ONODERA
Hi,

Taylor R Campbell  writes:

>> Date: Tue, 04 Oct 2022 15:53:58 +0900
>> From: Ryo ONODERA 
>> 
>> With this patch, it works fine for me.
>> There is no stall after genfb(4).
>> And I do not find any other problem so far.
>
> Thanks!  There probably is another problem which is that kernel
> console printfs might stop appearing after a certain point, which the
> following patch might fix too -- I inadvertently reversed the sense
> of a conditional in the subr_prf.c changes.

I have not encountered another problem yet. However with your
consprintfix.patch, it works fine for me too.

Thank you.

> From 0f058a0e89e3f545a9020a2fb79dadd7ad89029a Mon Sep 17 00:00:00 2001
> From: Taylor R Campbell 
> Date: Tue, 4 Oct 2022 05:48:39 +
> Subject: [PATCH] squash! constty(4): Make MP-safe.
>
> - Fix reversed sense of conditional.
> ---
>  sys/kern/subr_prf.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
> index e87e6efc8501..53fb20c1d393 100644
> --- a/sys/kern/subr_prf.c
> +++ b/sys/kern/subr_prf.c
> @@ -425,7 +425,7 @@ putone(int c, int flags, struct tty *tp)
>   if ((flags & TOLOG) &&
>   c != '\0' && c != '\r' && c != 0177)
>   logputchar(c);
> - if ((flags & TOCONS) && ctp != NULL && c != '\0')
> + if ((flags & TOCONS) && ctp == NULL && c != '\0')
>   (*v_putc)(c);
>  
>   pserialize_read_exit(s);

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/dev

2022-10-04 Thread Ryo ONODERA
Hi,

Taylor R Campbell  writes:

>> Date: Tue, 04 Oct 2022 12:12:15 +0900
>> From: Ryo ONODERA 
>> 
>> "Taylor R Campbell"  writes:
>> 
>> > console(4), constty(4): Rip off the kernel lock.
>> 
>> After introduction of MP-safe console/constty, my kernel stopped
>> just after genfb(4) detection.
>> LOCKDEBUG, DIAGNOSTIC, DEBUG options does not provide any additional
>> information with me.
>> Could you take a look at my problem?
>
> Sorry about that -- I've reverted this change and the MP-safe cons(4)
> change for now, but let's try to figure out what's wrong with them so
> I can reapply them and get the console paths out of the kernel lock
> for good.

No problem. And thanks for your quick response.

> Can you try the attached patch on top?

With this patch, it works fine for me.
There is no stall after genfb(4).
And I do not find any other problem so far.

$ cd /usr/src
$ TZ=UTC cvs up -dP -D2022-10-04
$ patch -p1 < ~/consokfix.patch
$ ./build.sh ... kernel=...

Thank you very much!!!

> From 2de03f1efbe5b73d42dc2f59730c17b99c04b3b9 Mon Sep 17 00:00:00 2001
> From: Taylor R Campbell 
> Date: Tue, 4 Oct 2022 05:24:49 +
> Subject: [PATCH] squash! constty(4): Make MP-safe.
>
> - Fix initialization of ok in cn_redirect.
> ---
>  sys/dev/cons.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/sys/dev/cons.c b/sys/dev/cons.c
> index f4f9a1602221..e621292a6b4a 100644
> --- a/sys/dev/cons.c
> +++ b/sys/dev/cons.c
> @@ -463,7 +463,7 @@ cn_redirect(dev_t *devp, int is_read, int *error, struct 
> tty **ctpp)
>   dev_t dev = *devp;
>   struct tty *ctp;
>   int s;
> - bool ok;
> + bool ok = false;
>  
>   *error = ENXIO;
>   *ctpp = NULL;
> @@ -472,18 +472,17 @@ cn_redirect(dev_t *devp, int is_read, int *error, 
> struct tty **ctpp)
>   (cn_tab == NULL || (cn_tab->cn_pri != CN_REMOTE))) {
>   if (is_read) {
>   *error = 0;
> - ok = false;
>   goto out;
>   }
>   tty_acquire(ctp);
>   *ctpp = ctp;
>   dev = ctp->t_dev;
>   } else if (cn_tab == NULL) {
> - ok = false;
>   goto out;
>   } else {
>   dev = cn_tab->cn_dev;
>   }
> + ok = true;
>   *devp = dev;
>  out: pserialize_read_exit(s);
>   return ok;

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/dev

2022-10-03 Thread Ryo ONODERA
les:
>
> Index: src/sys/dev/cons.c
> diff -u src/sys/dev/cons.c:1.83 src/sys/dev/cons.c:1.84
> --- src/sys/dev/cons.c:1.83   Mon Oct  3 19:57:05 2022
> +++ src/sys/dev/cons.cMon Oct  3 19:57:25 2022
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: cons.c,v 1.83 2022/10/03 19:57:05 riastradh Exp $  */
> +/*   $NetBSD: cons.c,v 1.84 2022/10/03 19:57:25 riastradh Exp $  */
>  
>  /*
>   * Copyright (c) 1988 University of Utah.
> @@ -39,7 +39,7 @@
>   */
>  
>  #include 
> -__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.83 2022/10/03 19:57:05 riastradh Exp 
> $");
> +__KERNEL_RCSID(0, "$NetBSD: cons.c,v 1.84 2022/10/03 19:57:25 riastradh Exp 
> $");
>  
>  #include 
>  #include 
> @@ -84,7 +84,7 @@ const struct cdevsw cons_cdevsw = {
>   .d_mmap = nommap,
>   .d_kqfilter = cnkqfilter,
>   .d_discard = nodiscard,
> - .d_flag = D_TTY
> + .d_flag = D_TTY|D_MPSAFE,
>  };
>  
>  static struct kmutex cn_lock;
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src

2021-12-30 Thread Ryo ONODERA
Hi,

Tobias Nygren  writes:

> On Fri, 31 Dec 2021 01:44:19 +0900
> Ryo ONODERA  wrote:
>
>> #  link  LOCKDEBUG/netbsd
>> /usr/world/9.99/amd64/tools/bin/x86_64--netbsd-ld -Map netbsd.map --cref -T 
>> netbsd.ldscript -Ttext 0x8020 -e start -z max-page-size=0x20 
>> -X -o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
>> NetBSD 9.99.93 (LOCKDEBUG) #0: Fri Dec 31 01:31:35 JST 2021
>>textdata bss dec hex filename
>> 21646842 728976 1368064 2374388216a4d8a netbsd
>> + mv -f netbsd netbsd.gdb
>> + /usr/world/9.99/amd64/tools/bin/x86_64--netbsd-objcopy --only-keep-debug 
>> netbsd.gdb netbsd-/usr/src/sys/arch/amd64/conf/LOCKDEBUG.debug
>> /usr/world/9.99/amd64/tools/bin/x86_64--netbsd-objcopy: 
>> netbsd-/usr/src/sys/arch/amd64/conf/LOCKDEBUG.debug: No such file or 
>> directory
>
> Hi,
>
> Changing ${KERNEL_BUILD} to ${KERNEL_BUILD:T} mostly fixes the
> above problem. But this change is still incompatible with MKUNPRIVED:

I have never used :T modifier.
Thanks for your information. It is very useful for my task.

> aarch64--netbsd-install: 
> /work/src/../obj/destdir.evbarm/usr/libdata/debug/netbsd-GENERIC.lx2k.debug.inst.xOfGh2:
>  chown/chgrp: Operation not permitted

And I have MKUNPRIVIVED too.

> Additionally, it produces new noisy output that does not respect
> MAKEVERBOSE level 0 or 1 in the final link stage.
>
> -Tobias

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src

2021-12-30 Thread Ryo ONODERA
Hi,

chris...@astron.com (Christos Zoulas) writes:

> In article <875yr6ujoc@brownie.elements.tetera.org>,
> Ryo ONODERA   wrote:
>
>>My Makefile for the kernel has the following line.
>>Your code may expect BUILD_KERNEL as kernel configuration file name,
>>for example GENERIC or LOCKDEBUG in above error message.
>>However it is absolute path and not kernel configuration file name.
>>
>>KERNEL_BUILD=/usr/src/sys/arch/amd64/conf/LOCKDEBUG
>
> I will fix that.
>
>>I have 2 questions.
>>(1) In MKDEBUG=no, split-debug file for kernel is created.
>>This behavior is not consistent with your commit message.
>
> I will check that.

Thank you very much!!!

>>(2) You have added "./usr/libdata/debug/netbsd-CONFIG.debug ..." entry
>>to src/distrib/sets/lists/debug/mi. Do you intended BUILD_KERNEL
>>as constant CONFIG string?
>
> The sets.subr substitutes the real string.

I see. Thanks for your explanation.

> christos
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src

2021-12-30 Thread Ryo ONODERA
Hi,

In MKDEBUG=yes and MKDEBUG=no cases,
./build.sh kernel=LOCKDEBUG fails as follows, for example:

(snip)
#  link  LOCKDEBUG/netbsd
/usr/world/9.99/amd64/tools/bin/x86_64--netbsd-ld -Map netbsd.map --cref -T 
netbsd.ldscript -Ttext 0x8020 -e start -z max-page-size=0x20 -X 
-o netbsd ${SYSTEM_OBJ:[@]:Nswapnetbsd.o} ${EXTRA_OBJ} vers.o swapnetbsd.o
NetBSD 9.99.93 (LOCKDEBUG) #0: Fri Dec 31 01:31:35 JST 2021
   textdata bss dec hex filename
21646842 728976 1368064 2374388216a4d8a netbsd
+ mv -f netbsd netbsd.gdb
+ /usr/world/9.99/amd64/tools/bin/x86_64--netbsd-objcopy --only-keep-debug 
netbsd.gdb netbsd-/usr/src/sys/arch/amd64/conf/LOCKDEBUG.debug
/usr/world/9.99/amd64/tools/bin/x86_64--netbsd-objcopy: 
netbsd-/usr/src/sys/arch/amd64/conf/LOCKDEBUG.debug: No such file or directory
+ exit 1

*** Failed target: netbsd
*** Failed commands:
${SYSTEM_LD_HEAD}
=> @rm -f netbsd
${SYSTEM_LD}
=> echo '#  ' "   link  LOCKDEBUG/netbsd";  echo /usr/world/9.99/amd64/t
(snip)

My Makefile for the kernel has the following line.
Your code may expect BUILD_KERNEL as kernel configuration file name,
for example GENERIC or LOCKDEBUG in above error message.
However it is absolute path and not kernel configuration file name.

KERNEL_BUILD=/usr/src/sys/arch/amd64/conf/LOCKDEBUG
(snip)

I have 2 questions.
(1) In MKDEBUG=no, split-debug file for kernel is created.
This behavior is not consistent with your commit message.
(2) You have added "./usr/libdata/debug/netbsd-CONFIG.debug ..." entry
to src/distrib/sets/lists/debug/mi. Do you intended BUILD_KERNEL
as constant CONFIG string?

Thank you.

"Christos Zoulas"  writes:

> Module Name:  src
> Committed By: christos
> Date: Wed Dec 29 22:22:13 UTC 2021
>
> Modified Files:
>   src: build.sh
>   src/distrib/sets: sets.subr
>   src/distrib/sets/lists/debug: mi
>   src/etc: Makefile
>   src/sys/conf: Makefile.kern.inc
>
> Log Message:
> Enable split-debug files for kernels. Enabled by default with MKDEBUG=yes.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.359 -r1.360 src/build.sh
> cvs rdiff -u -r1.197 -r1.198 src/distrib/sets/sets.subr
> cvs rdiff -u -r1.369 -r1.370 src/distrib/sets/lists/debug/mi
> cvs rdiff -u -r1.455 -r1.456 src/etc/Makefile
> cvs rdiff -u -r1.285 -r1.286 src/sys/conf/Makefile.kern.inc
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/lib/libc/time

2021-10-22 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Oct 22 16:57:14 UTC 2021

Modified Files:
src/lib/libc/time: zdump.c

Log Message:
Fix build failure

* Fix merge mistake.
* Cast to int for strict comparison like before.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/zdump.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/libc/time/zdump.c
diff -u src/lib/libc/time/zdump.c:1.54 src/lib/libc/time/zdump.c:1.55
--- src/lib/libc/time/zdump.c:1.54	Fri Oct 22 14:26:04 2021
+++ src/lib/libc/time/zdump.c	Fri Oct 22 16:57:14 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: zdump.c,v 1.54 2021/10/22 14:26:04 christos Exp $	*/
+/*	$NetBSD: zdump.c,v 1.55 2021/10/22 16:57:14 ryoon Exp $	*/
 /* Dump time zone data in a textual format.  */
 
 /*
@@ -8,7 +8,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: zdump.c,v 1.54 2021/10/22 14:26:04 christos Exp $");
+__RCSID("$NetBSD: zdump.c,v 1.55 2021/10/22 16:57:14 ryoon Exp $");
 #endif /* !defined lint */
 
 #ifndef NETBSD_INSPIRED
@@ -699,12 +699,6 @@ hunt(timezone_t tz, char *name, time_t l
 			+ hit / 2);
 		if (t == lot)
 			break;
-		t = lot;
-		t += diff / 2;
-		if (t <= lot)
-			++t;
-		else if (t >= hit)
-			--t;
 		tm_ok = my_localtime_rz(tz, , ) != NULL;
 		if (lotm_ok == tm_ok
 		&& (only_ok
@@ -1176,10 +1170,10 @@ dumptime(const struct tm *timeptr)
 	*/
 	printf("%s %s%3d %.2d:%.2d:%.2d ",
 		((0 <= timeptr->tm_wday
-		  && timeptr->tm_wday < sizeof wday_name / sizeof wday_name[0])
+		  && timeptr->tm_wday < (int) (sizeof wday_name / sizeof wday_name[0]))
 		 ? wday_name[timeptr->tm_wday] : "???"),
 		((0 <= timeptr->tm_mon
-		  && timeptr->tm_mon < sizeof mon_name / sizeof mon_name[0])
+		  && timeptr->tm_mon < (int) (sizeof mon_name / sizeof mon_name[0]))
 		 ? mon_name[timeptr->tm_mon] : "???"),
 		timeptr->tm_mday, timeptr->tm_hour,
 		timeptr->tm_min, timeptr->tm_sec);



CVS commit: src/lib/libc/time

2021-10-22 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Oct 22 16:57:14 UTC 2021

Modified Files:
src/lib/libc/time: zdump.c

Log Message:
Fix build failure

* Fix merge mistake.
* Cast to int for strict comparison like before.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libc/time/zdump.c

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



CVS commit: src/sys/sys

2021-09-21 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Sep 21 13:51:46 UTC 2021

Modified Files:
src/sys/sys: eventfd.h timerfd.h

Log Message:
Fix C++ case for eventfd.h and timerd.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/sys/eventfd.h src/sys/sys/timerfd.h

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

Modified files:

Index: src/sys/sys/eventfd.h
diff -u src/sys/sys/eventfd.h:1.2 src/sys/sys/eventfd.h:1.3
--- src/sys/sys/eventfd.h:1.2	Sun Sep 19 15:51:27 2021
+++ src/sys/sys/eventfd.h	Tue Sep 21 13:51:46 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: eventfd.h,v 1.2 2021/09/19 15:51:27 thorpej Exp $	*/
+/*	$NetBSD: eventfd.h,v 1.3 2021/09/21 13:51:46 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -49,9 +49,11 @@ typedef uint64_t eventfd_t;
 struct lwp;
 int	do_eventfd(struct lwp *, unsigned int, int, register_t *);
 #else /* ! _KERNEL */
+__BEGIN_DECLS
 int	eventfd(unsigned int, int);
 int	eventfd_read(int, eventfd_t *);
 int	eventfd_write(int, eventfd_t);
+__END_DECLS
 #endif /* _KERNEL */
 
 #endif /* _SYS_EVENTFD_H_ */
Index: src/sys/sys/timerfd.h
diff -u src/sys/sys/timerfd.h:1.2 src/sys/sys/timerfd.h:1.3
--- src/sys/sys/timerfd.h:1.2	Sun Sep 19 15:51:27 2021
+++ src/sys/sys/timerfd.h	Tue Sep 21 13:51:46 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: timerfd.h,v 1.2 2021/09/19 15:51:27 thorpej Exp $	*/
+/*	$NetBSD: timerfd.h,v 1.3 2021/09/21 13:51:46 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -56,10 +56,12 @@ int	do_timerfd_gettime(struct lwp *, int
 int	do_timerfd_settime(struct lwp *, int, int, const struct itimerspec *,
 	struct itimerspec *, register_t *);
 #else /* ! _KERNEL */
+__BEGIN_DECLS
 int	timerfd_create(clockid_t, int);
 int	timerfd_gettime(int, struct itimerspec *);
 int	timerfd_settime(int, int, const struct itimerspec *,
 	struct itimerspec *);
+__END_DECLS
 #endif /* _KERNEL */
 
 #endif /* _SYS_TIMERFD_H_ */



CVS commit: src/sys/sys

2021-09-21 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Sep 21 13:51:46 UTC 2021

Modified Files:
src/sys/sys: eventfd.h timerfd.h

Log Message:
Fix C++ case for eventfd.h and timerd.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/sys/eventfd.h src/sys/sys/timerfd.h

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



Re: CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-06 Thread Ryo ONODERA
Hi,

Rin Okuyama  writes:

> On 2021/09/06 23:11, Ryo ONODERA wrote:
>> Hi,
>> 
>> Rin Okuyama  writes:
>> 
>>> On 2021/09/06 22:11, Ryo ONODERA wrote:
>>>> Module Name:   src
>>>> Committed By:  ryoon
>>>> Date:  Mon Sep  6 13:11:34 UTC 2021
>>>>
>>>> Modified Files:
>>>>src/crypto/external/bsd/openssh/dist: dns.c
>>>>
>>>> Log Message:
>>>> Make no diff to upstream
>>>>
>>>>
>>>> To generate a diff of this commit:
>>>> cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssh/dist/dns.c
>>>>
>>>> Please note that diffs are not public domain; they are subject to the
>>>> copyright notices on the relevant files.
>>>
>>> This diff from upstream is intentional. See:
>>>
>>> http://cvsweb.netbsd.org/bsdweb.cgi/src/crypto/external/bsd/openssh/dist/dns.c#rev1.6
>>> http://cvsweb.netbsd.org/bsdweb.cgi/src/crypto/external/bsd/openssh/dist/dns.c#rev1.7
>> 
>> Thanks for your pointer.
>> 
>> 
>> #define timingsafe_bcmp(a, b, c) (!consttime_memequal((a), (b), (c)))
>> 
>> is in src/crypto/external/bsd/openssh/dist/includes.h.
>> 
>> My change still uses consttime_memequal() practically like
>> other places in OpenSSH.
>
> Ah, I got it. Thanks for explanation, and sorry for the noise!

Sorry for my less explanation.
I should write more information in the commit message.

Thank you.

> rin

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-06 Thread Ryo ONODERA
Hi,

Rin Okuyama  writes:

> On 2021/09/06 22:11, Ryo ONODERA wrote:
>> Module Name: src
>> Committed By:ryoon
>> Date:Mon Sep  6 13:11:34 UTC 2021
>> 
>> Modified Files:
>>  src/crypto/external/bsd/openssh/dist: dns.c
>> 
>> Log Message:
>> Make no diff to upstream
>> 
>> 
>> To generate a diff of this commit:
>> cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssh/dist/dns.c
>> 
>> Please note that diffs are not public domain; they are subject to the
>> copyright notices on the relevant files.
>
> This diff from upstream is intentional. See:
>
> http://cvsweb.netbsd.org/bsdweb.cgi/src/crypto/external/bsd/openssh/dist/dns.c#rev1.6
> http://cvsweb.netbsd.org/bsdweb.cgi/src/crypto/external/bsd/openssh/dist/dns.c#rev1.7

Thanks for your pointer.


#define timingsafe_bcmp(a, b, c) (!consttime_memequal((a), (b), (c)))

is in src/crypto/external/bsd/openssh/dist/includes.h.

My change still uses consttime_memequal() practically like
other places in OpenSSH.

> Thanks,
> rin

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-06 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Sep  6 13:11:34 UTC 2021

Modified Files:
src/crypto/external/bsd/openssh/dist: dns.c

Log Message:
Make no diff to upstream


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssh/dist/dns.c

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

Modified files:

Index: src/crypto/external/bsd/openssh/dist/dns.c
diff -u src/crypto/external/bsd/openssh/dist/dns.c:1.20 src/crypto/external/bsd/openssh/dist/dns.c:1.21
--- src/crypto/external/bsd/openssh/dist/dns.c:1.20	Sat Sep  4 01:47:47 2021
+++ src/crypto/external/bsd/openssh/dist/dns.c	Mon Sep  6 13:11:34 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dns.c,v 1.20 2021/09/04 01:47:47 ryoon Exp $	*/
+/*	$NetBSD: dns.c,v 1.21 2021/09/06 13:11:34 ryoon Exp $	*/
 /* $OpenBSD: dns.c,v 1.41 2021/07/19 03:13:28 dtucker Exp $ */
 
 /*
@@ -27,7 +27,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: dns.c,v 1.20 2021/09/04 01:47:47 ryoon Exp $");
+__RCSID("$NetBSD: dns.c,v 1.21 2021/09/06 13:11:34 ryoon Exp $");
 #include 
 #include 
 
@@ -267,7 +267,7 @@ verify_host_key_dns(const char *hostname
 		/* Check if the current key is the same as the given key */
 		if (hostkey_algorithm == dnskey_algorithm &&
 		hostkey_digest_len == dnskey_digest_len) {
-			if (!consttime_memequal(hostkey_digest, dnskey_digest,
+			if (timingsafe_bcmp(hostkey_digest, dnskey_digest,
 			hostkey_digest_len) == 0) {
 debug_f("matched SSHFP type %d fptype %d",
 dnskey_algorithm, dnskey_digest_type);



CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-06 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Sep  6 13:11:34 UTC 2021

Modified Files:
src/crypto/external/bsd/openssh/dist: dns.c

Log Message:
Make no diff to upstream


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/crypto/external/bsd/openssh/dist/dns.c

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



CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-03 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Sep  4 01:47:47 UTC 2021

Modified Files:
src/crypto/external/bsd/openssh/dist: dns.c

Log Message:
Fix inverted logic in OpenSSH SSHFP DNS record verification


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/crypto/external/bsd/openssh/dist/dns.c

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



CVS commit: src/crypto/external/bsd/openssh/dist

2021-09-03 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Sep  4 01:47:47 UTC 2021

Modified Files:
src/crypto/external/bsd/openssh/dist: dns.c

Log Message:
Fix inverted logic in OpenSSH SSHFP DNS record verification


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/crypto/external/bsd/openssh/dist/dns.c

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

Modified files:

Index: src/crypto/external/bsd/openssh/dist/dns.c
diff -u src/crypto/external/bsd/openssh/dist/dns.c:1.19 src/crypto/external/bsd/openssh/dist/dns.c:1.20
--- src/crypto/external/bsd/openssh/dist/dns.c:1.19	Thu Sep  2 11:26:17 2021
+++ src/crypto/external/bsd/openssh/dist/dns.c	Sat Sep  4 01:47:47 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: dns.c,v 1.19 2021/09/02 11:26:17 christos Exp $	*/
+/*	$NetBSD: dns.c,v 1.20 2021/09/04 01:47:47 ryoon Exp $	*/
 /* $OpenBSD: dns.c,v 1.41 2021/07/19 03:13:28 dtucker Exp $ */
 
 /*
@@ -27,7 +27,7 @@
  */
 
 #include "includes.h"
-__RCSID("$NetBSD: dns.c,v 1.19 2021/09/02 11:26:17 christos Exp $");
+__RCSID("$NetBSD: dns.c,v 1.20 2021/09/04 01:47:47 ryoon Exp $");
 #include 
 #include 
 
@@ -267,7 +267,7 @@ verify_host_key_dns(const char *hostname
 		/* Check if the current key is the same as the given key */
 		if (hostkey_algorithm == dnskey_algorithm &&
 		hostkey_digest_len == dnskey_digest_len) {
-			if (consttime_memequal(hostkey_digest, dnskey_digest,
+			if (!consttime_memequal(hostkey_digest, dnskey_digest,
 			hostkey_digest_len) == 0) {
 debug_f("matched SSHFP type %d fptype %d",
 dnskey_algorithm, dnskey_digest_type);



Re: CVS commit: src

2021-07-25 Thread Ryo ONODERA
rs
> diff -u src/sys/conf/majors:1.97 src/sys/conf/majors:1.98
> --- src/sys/conf/majors:1.97  Sun Dec  6 02:57:30 2020
> +++ src/sys/conf/majors   Sat Jul 24 11:39:19 2021
> @@ -1,4 +1,4 @@
> -# $NetBSD: majors,v 1.97 2020/12/06 02:57:30 jmcneill Exp $
> +# $NetBSD: majors,v 1.98 2021/07/24 11:39:19 jmcneill Exp $
>  #
>  # Device majors for Machine-Independent drivers.
>  #
> @@ -91,3 +91,4 @@ device-major vio9p char 356vio9
>  device-major fault char 357 fault
>  device-major wwanc char 358 wwanc
>  device-major acpi  char 359acpi
> +device-major smbioschar 360smbios
>
> Index: src/sys/dev/smbios.c
> diff -u src/sys/dev/smbios.c:1.1 src/sys/dev/smbios.c:1.2
> --- src/sys/dev/smbios.c:1.1  Wed Jul 21 23:16:09 2021
> +++ src/sys/dev/smbios.c  Sat Jul 24 11:39:19 2021
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: smbios.c,v 1.1 2021/07/21 23:16:09 jmcneill Exp $  */
> +/*   $NetBSD: smbios.c,v 1.2 2021/07/24 11:39:19 jmcneill Exp $  */
>  
>  /*
>   * Copyright (c) 1999 The NetBSD Foundation, Inc.
> @@ -86,12 +86,15 @@
>   */
>  
>  #include 
> -__KERNEL_RCSID(0, "$NetBSD: smbios.c,v 1.1 2021/07/21 23:16:09 jmcneill Exp 
> $");
> +__KERNEL_RCSID(0, "$NetBSD: smbios.c,v 1.2 2021/07/24 11:39:19 jmcneill Exp 
> $");
>  
>  #include 
> +#include 
>  #include 
>  #include 
>  
> +#include 
> +
>  #include 
>  
>  #define  SMBIOS_MAKESIG(a, b, c, d)  \
> @@ -99,6 +102,104 @@ __KERNEL_RCSID(0, "$NetBSD: smbios.c,v 1
>  
>  struct smbios_entry smbios_entry;
>  
> +static dev_type_read(smbios_read);
> +
> +const struct cdevsw smbios_cdevsw = {
> + .d_open = nullopen,
> + .d_close= nullclose,
> + .d_read = smbios_read,
> + .d_write= nowrite,
> + .d_ioctl= noioctl,
> + .d_stop = nostop,
> + .d_tty  = notty,
> + .d_poll = nopoll,
> + .d_mmap = nommap,
> + .d_kqfilter = nokqfilter,
> + .d_discard  = nodiscard,
> + .d_flag = D_OTHER | D_MPSAFE,
> +};
> +
> +static void *
> +smbios_map_memory(paddr_t pa, size_t size)
> +{
> + paddr_t spa, epa, curpa;
> + vaddr_t va, curva;
> +
> + spa = trunc_page(pa);
> + epa = round_page(pa + size);
> +
> + va = uvm_km_alloc(kernel_map, epa - spa, 0, UVM_KMF_VAONLY);
> + if (va == 0) {
> + return NULL;
> + }
> +
> + for (curpa = spa, curva = va; curpa < epa; curpa += PAGE_SIZE, curva += 
> PAGE_SIZE) {
> + pmap_kenter_pa(curva, curpa, VM_PROT_READ, PMAP_WRITE_BACK);
> + }
> + pmap_update(pmap_kernel());
> +
> + return (void *)(va + (pa - spa));
> +}
> +
> +static void
> +smbios_unmap_memory(void *va, size_t size)
> +{
> + vaddr_t ova;
> + vsize_t osz;
> +
> + ova = trunc_page((vaddr_t)va);
> + osz = round_page((vaddr_t)va + size) - ova;
> +
> + pmap_kremove(ova, osz);
> + pmap_update(pmap_kernel());
> + uvm_km_free(kernel_map, ova, osz, UVM_KMF_VAONLY);
> +}
> +
> +/*
> + * smbios_read --
> + *
> + *   Read data from an SMBIOS table that resides in physical memory.
> + */
> +static int
> +smbios_read(dev_t dev, struct uio *uio, int flag)
> +{
> + paddr_t pa;
> + uint8_t *data;
> + size_t len;
> + int error;
> +
> + if (smbios_entry.addr == NULL) {
> + return EIO;
> + }
> + if (uio->uio_rw != UIO_READ) {
> + return EPERM;
> + }
> +
> + pa = uio->uio_offset;
> + if (pa == smbios_entry.hdrphys) {
> + /* SMBIOS header */
> + len = uimin(0x20, uio->uio_resid);
> +
> + } else {
> + /* Table data */
> + if (pa < smbios_entry.tabphys ||
> + pa >= smbios_entry.tabphys + smbios_entry.len) {
> + return EFAULT;
> +     }
> + len = uimin(smbios_entry.len - (pa - smbios_entry.tabphys),
> + uio->uio_resid);
> + }
> +
> + data = smbios_map_memory(pa, len);
> + if (data == NULL) {
> + return ENOMEM;
> + }
> + error = uiomove(data, len, uio);
> + smbios_unmap_memory(data, len);
> +
> + return error;
> +}
> +
>  int
>  smbios2_check_header(const uint8_t *p)
>  {
> Index: src/sys/dev/smbiosvar.h
> diff -u src/sys/dev/smbiosvar.h:1.1 src/sys/dev/smbiosvar.h:1.2
> --- src/sys/dev/smbiosvar.h:1.1   Wed Jul 21 23:16:09 2021
> +++ src/sys/dev/smbiosvar.h   Sat Jul 24 11:39:19 2021
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: smbiosvar.h,v 1.1 2021/07/21 23:16:09 jmcneill Exp $ */
> +/*   $NetBSD: smbiosvar.h,v 1.2 2021/07/24 11:39:19 jmcneill Exp $ */
>  /*
>   * Copyright (c) 2006 Gordon Willem Klok 
>   * Copyright (c) 2005 Jordan Hargrave
> @@ -41,6 +41,8 @@
>  #define SMBIOS_UUID_REPLEN 37 /* 16 zero padded values, 4 hyphens, 1 null */
>  
>  struct smbios_entry {
> + paddr_t hdrphys;
> + paddr_t tabphys;
>   uint8_t rev;
>   uint8_t mjr;
>   uint8_t min;
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src

2021-04-07 Thread Ryo ONODERA
Hi,

Thanks for your quick fix!
I will rebuild userland and ruby30-base.

On Wed, Apr 7, 2021 at 7:00 PM Simon Burge  wrote:
>
> Ryo ONODERA wrote:
>
> > Hi,
> >
> > dtrace support of pkgsrc/lang/ruby30-base uses drti.o.
> > Without drti.o, ruby30-base is not buildable with dtrace option
> > and dtrace option is enabled by default.
> >
> > Could you please put drti.o back?
>
> Thanks for the bug report.  I've reverted this change.
>
> Background - I was having problems getting the MIPS dtrace build working
> with all available ABIs and couldn't find any use of drti.o anywhere in
> the tree.  It didn't occur to me that it might be used (actively!) by
> packages.
>
> Cheers,
> Simon.


Re: CVS commit: src

2021-04-06 Thread Ryo ONODERA
Hi,

dtrace support of pkgsrc/lang/ruby30-base uses drti.o.
Without drti.o, ruby30-base is not buildable with dtrace option
and dtrace option is enabled by default.

Could you please put drti.o back?

Thank you.

On Mon, Mar 29, 2021 at 10:57 AM Simon Burge  wrote:
>
> Module Name:src
> Committed By:   simonb
> Date:   Mon Mar 29 01:57:09 UTC 2021
>
> Modified Files:
> src/distrib/sets/lists/comp: stl.mi
> src/external/cddl/osnet/lib: Makefile
>
> Log Message:
> Don't build or install /usr/lib/dtrace/drti.o - currently not used, may
> be one day...
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.7 -r1.8 src/distrib/sets/lists/comp/stl.mi
> cvs rdiff -u -r1.9 -r1.10 src/external/cddl/osnet/lib/Makefile
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>


CVS commit: src

2021-03-17 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Wed Mar 17 15:26:20 UTC 2021

Modified Files:
src: README.md

Log Message:
Improve URL consistency

Replace netbsd.org in URL with NetBSD.org and add www. to URL of web server.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/README.md

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



CVS commit: src

2021-03-17 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Wed Mar 17 15:26:20 UTC 2021

Modified Files:
src: README.md

Log Message:
Improve URL consistency

Replace netbsd.org in URL with NetBSD.org and add www. to URL of web server.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/README.md

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

Modified files:

Index: src/README.md
diff -u src/README.md:1.5 src/README.md:1.6
--- src/README.md:1.5	Fri Jan 10 12:33:28 2020
+++ src/README.md	Wed Mar 17 15:26:20 2021
@@ -19,8 +19,8 @@ Additional build information available i
 Binaries
 
 
-- [Daily builds](https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/)
-- [Releases](https://cdn.netbsd.org/pub/NetBSD/)
+- [Daily builds](https://nycdn.NetBSD.org/pub/NetBSD-daily/HEAD/latest/)
+- [Releases](https://cdn.NetBSD.org/pub/NetBSD/)
 
 Testing
 ---
@@ -32,9 +32,9 @@ On a running NetBSD system:
 Troubleshooting
 ---
 
-- Send bugs and patches [via web form](https://www.netbsd.org/cgi-bin/sendpr.cgi?gndb=netbsd).
-- Subscribe to the [mailing lists](https://www.netbsd.org/mailinglists/).
-  The [netbsd-users](https://netbsd.org/mailinglists/#netbsd-users) list is a good choice for many problems; watch [current-users](https://netbsd.org/mailinglists/#current-users) if you follow the bleeding edge of NetBSD-current.
+- Send bugs and patches [via web form](https://www.NetBSD.org/cgi-bin/sendpr.cgi?gndb=netbsd).
+- Subscribe to the [mailing lists](https://www.NetBSD.org/mailinglists/).
+  The [netbsd-users](https://www.NetBSD.org/mailinglists/#netbsd-users) list is a good choice for many problems; watch [current-users](https://www.NetBSD.org/mailinglists/#current-users) if you follow the bleeding edge of NetBSD-current.
 - Join the community IRC channel [#netbsd @ freenode](https://webchat.freenode.net/?channels=#netbsd).
 
 Latest sources
@@ -51,6 +51,6 @@ To work in the Git mirror, which is upda
 Additional Links
 
 
-- [The NetBSD Guide](https://www.netbsd.org/docs/guide/en/)
-- [NetBSD manual pages](http://man.netbsd.org/)
-- [NetBSD Cross-Reference](https://nxr.netbsd.org/)
+- [The NetBSD Guide](https://www.NetBSD.org/docs/guide/en/)
+- [NetBSD manual pages](http://man.NetBSD.org/)
+- [NetBSD Cross-Reference](https://nxr.NetBSD.org/)



CVS commit: src/sys/fs/msdosfs

2021-02-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Thu Feb 11 00:15:55 UTC 2021

Modified Files:
src/sys/fs/msdosfs: msdosfs_vfsops.c

Log Message:
Enable to mount Raspberry Pi Pico's USB mass storage partition

Fix PR kern/55985.
O.k. by thorpej@.

Pull-up to netbsd-8 and netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/fs/msdosfs/msdosfs_vfsops.c

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



CVS commit: src/sys/fs/msdosfs

2021-02-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Thu Feb 11 00:15:55 UTC 2021

Modified Files:
src/sys/fs/msdosfs: msdosfs_vfsops.c

Log Message:
Enable to mount Raspberry Pi Pico's USB mass storage partition

Fix PR kern/55985.
O.k. by thorpej@.

Pull-up to netbsd-8 and netbsd-9.


To generate a diff of this commit:
cvs rdiff -u -r1.135 -r1.136 src/sys/fs/msdosfs/msdosfs_vfsops.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/fs/msdosfs/msdosfs_vfsops.c
diff -u src/sys/fs/msdosfs/msdosfs_vfsops.c:1.135 src/sys/fs/msdosfs/msdosfs_vfsops.c:1.136
--- src/sys/fs/msdosfs/msdosfs_vfsops.c:1.135	Mon Apr 13 19:23:17 2020
+++ src/sys/fs/msdosfs/msdosfs_vfsops.c	Thu Feb 11 00:15:55 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: msdosfs_vfsops.c,v 1.135 2020/04/13 19:23:17 ad Exp $	*/
+/*	$NetBSD: msdosfs_vfsops.c,v 1.136 2021/02/11 00:15:55 ryoon Exp $	*/
 
 /*-
  * Copyright (C) 1994, 1995, 1997 Wolfgang Solfrank.
@@ -48,7 +48,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.135 2020/04/13 19:23:17 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: msdosfs_vfsops.c,v 1.136 2021/02/11 00:15:55 ryoon Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -520,6 +520,13 @@ msdosfs_mountfs(struct vnode *devvp, str
 	b50 = (struct byte_bpb50 *)bsp->bs50.bsBPB;
 	b710 = (struct byte_bpb710 *)bsp->bs710.bsBPB;
 
+#if 0
+	/*
+	 * Some FAT partition, for example Raspberry Pi Pico's
+	 * USB mass storage, does not have exptected BOOTSIGs.
+	 * According to FreeBSD's comment, some PC-9800/9821
+	 * FAT floppy disks have similar problems.
+	 */
 	if (!(argp->flags & MSDOSFSMNT_GEMDOSFS)) {
 		if (bsp->bs50.bsBootSectSig0 != BOOTSIG0
 		|| bsp->bs50.bsBootSectSig1 != BOOTSIG1) {
@@ -530,6 +537,7 @@ msdosfs_mountfs(struct vnode *devvp, str
 			goto error_exit;
 		}
 	}
+#endif
 
 	pmp = malloc(sizeof(*pmp), M_MSDOSFSMNT, M_WAITOK|M_ZERO);
 	pmp->pm_mountp = mp;



CVS commit: src/sys/dev/pci

2021-02-07 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Feb  7 11:25:56 UTC 2021

Modified Files:
src/sys/dev/pci: xhci_pci.c

Log Message:
Allow MSIX and MSI for interrupt type


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/xhci_pci.c

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



CVS commit: src/sys/dev/pci

2021-02-07 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Feb  7 11:25:56 UTC 2021

Modified Files:
src/sys/dev/pci: xhci_pci.c

Log Message:
Allow MSIX and MSI for interrupt type


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dev/pci/xhci_pci.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/pci/xhci_pci.c
diff -u src/sys/dev/pci/xhci_pci.c:1.27 src/sys/dev/pci/xhci_pci.c:1.28
--- src/sys/dev/pci/xhci_pci.c:1.27	Sun Feb  7 04:58:17 2021
+++ src/sys/dev/pci/xhci_pci.c	Sun Feb  7 11:25:56 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: xhci_pci.c,v 1.27 2021/02/07 04:58:17 dbj Exp $	*/
+/*	$NetBSD: xhci_pci.c,v 1.28 2021/02/07 11:25:56 ryoon Exp $	*/
 /*	OpenBSD: xhci_pci.c,v 1.4 2014/07/12 17:38:51 yuo Exp	*/
 
 /*
@@ -32,7 +32,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.27 2021/02/07 04:58:17 dbj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci_pci.c,v 1.28 2021/02/07 11:25:56 ryoon Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_xhci_pci.h"
@@ -223,7 +223,7 @@ xhci_pci_attach(device_t parent, device_
 #endif
 
 	/* Allocate and establish the interrupt. */
-	if (pci_intr_alloc(pa, >sc_pihp, counts, 0)) {
+	if (pci_intr_alloc(pa, >sc_pihp, counts, PCI_INTR_TYPE_MSIX)) {
 		aprint_error_dev(self, "can't allocate handler\n");
 		goto fail;
 	}



CVS commit: src/external/gpl2/send-pr/dist/send-pr

2021-02-03 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Wed Feb  3 15:42:53 UTC 2021

Modified Files:
src/external/gpl2/send-pr/dist/send-pr: send-pr-el.in

Log Message:
Do not use old-style backquotes and other old-style expressions.

Fix PR misc/55918.
Tested with pkgsrc/editors/emacs26 and emacs27.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in

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

Modified files:

Index: src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in
diff -u src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in:1.2 src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in:1.3
--- src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in:1.2	Thu Jan 14 21:13:20 2016
+++ src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in	Wed Feb  3 15:42:53 2021
@@ -151,23 +151,23 @@ at runtime.")
 ;;; during runtime instead of having them here in the code.
 ;;;
 (defconst send-pr::fields
-  (` (("Category" send-pr::set-categories
-   (, (or (gnats::get-config "DEFAULT_CATEGORY") nil)) enum)
+`(("Category" send-pr::set-categories
+   ,(or (gnats::get-config "DEFAULT_CATEGORY") nil) enum)
   ("Class" (("sw-bug") ("doc-bug") ("change-request") ("support"))
-   (, (or (gnats::get-config "DEFAULT_CLASS") 0)) enum)
+   ,(or (gnats::get-config "DEFAULT_CLASS") 0) enum)
   ("Confidential" (("yes") ("no"))
-   (, (or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1)) enum)
+   ,(or (gnats::get-config "DEFAULT_CONFIDENTIAL") 1) enum)
   ("Severity" (("non-critical") ("serious") ("critical"))
-   (, (or (gnats::get-config "DEFAULT_SEVERITY") 1)) enum)
+   ,(or (gnats::get-config "DEFAULT_SEVERITY") 1) enum)
   ("Priority" (("low") ("medium") ("high"))
-   (, (or (gnats::get-config "DEFAULT_PRIORITY") 1)) enum)
+   ,(or (gnats::get-config "DEFAULT_PRIORITY") 1) enum)
   ("Release" nil
-   (, (or (gnats::get-config "DEFAULT_RELEASE") "xDEFAULT_RELEASEx"))
+   ,(or (gnats::get-config "DEFAULT_RELEASE") "`uname -s` `uname -r`")
text)
   ("Submitter-Id" nil
-   (, (or (gnats::get-config "SUBMITTER") "xSUBMITTERx")) text)
+   ,(or (gnats::get-config "SUBMITTER") "net") text)
   ("Synopsis" nil nil text
-   (lambda (a b c) (gnats::set-mail-field "Subject" c)
+   (lambda (a b c) (gnats::set-mail-field "Subject" c
   "AList, keyed on the name of the field, of:
 1) The field name.
 2) The list of completions.  This can be a list, a function to call, or nil.
@@ -178,7 +178,7 @@ at runtime.")
 (defvar gnats::fields nil)
 
 (defmacro gnats::push (i l)
-  (` (setq (, l) (cons (,@ (list i l))
+  `(setq ,l (cons ,@ (list i l
 
 (defun send-pr::set-categories ( arg)
   "Get the list of categories for the current site out of



CVS commit: src/external/gpl2/send-pr/dist/send-pr

2021-02-03 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Wed Feb  3 15:42:53 UTC 2021

Modified Files:
src/external/gpl2/send-pr/dist/send-pr: send-pr-el.in

Log Message:
Do not use old-style backquotes and other old-style expressions.

Fix PR misc/55918.
Tested with pkgsrc/editors/emacs26 and emacs27.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl2/send-pr/dist/send-pr/send-pr-el.in

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



CVS commit: src/sys/dev/usb

2021-01-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Jan 10 15:50:16 UTC 2021

Modified Files:
src/sys/dev/usb: uaudio.c

Log Message:
Add whitespace after comma


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/dev/usb/uaudio.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/usb/uaudio.c
diff -u src/sys/dev/usb/uaudio.c:1.167 src/sys/dev/usb/uaudio.c:1.168
--- src/sys/dev/usb/uaudio.c:1.167	Sun Jan 10 13:17:44 2021
+++ src/sys/dev/usb/uaudio.c	Sun Jan 10 15:50:16 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: uaudio.c,v 1.167 2021/01/10 13:17:44 ryoon Exp $	*/
+/*	$NetBSD: uaudio.c,v 1.168 2021/01/10 15:50:16 ryoon Exp $	*/
 
 /*
  * Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.167 2021/01/10 13:17:44 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.168 2021/01/10 15:50:16 ryoon Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1786,7 +1786,7 @@ uaudio_identify_as(struct uaudio_softc *
 			 id->bNumEndpoints);
 			break;
 		}
-		id = uaudio_find_iface(tbuf, size, ,UISUBCLASS_AUDIOSTREAM);
+		id = uaudio_find_iface(tbuf, size, , UISUBCLASS_AUDIOSTREAM);
 		if (id == NULL)
 			break;
 	}



CVS commit: src/sys/dev/usb

2021-01-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Jan 10 15:50:16 UTC 2021

Modified Files:
src/sys/dev/usb: uaudio.c

Log Message:
Add whitespace after comma


To generate a diff of this commit:
cvs rdiff -u -r1.167 -r1.168 src/sys/dev/usb/uaudio.c

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



CVS commit: src/sys/dev/usb

2021-01-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Jan 10 13:17:44 UTC 2021

Modified Files:
src/sys/dev/usb: uaudio.c

Log Message:
Fix a typo in debug message


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/dev/usb/uaudio.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/usb/uaudio.c
diff -u src/sys/dev/usb/uaudio.c:1.166 src/sys/dev/usb/uaudio.c:1.167
--- src/sys/dev/usb/uaudio.c:1.166	Tue Dec 29 08:04:59 2020
+++ src/sys/dev/usb/uaudio.c	Sun Jan 10 13:17:44 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: uaudio.c,v 1.166 2020/12/29 08:04:59 jdc Exp $	*/
+/*	$NetBSD: uaudio.c,v 1.167 2021/01/10 13:17:44 ryoon Exp $	*/
 
 /*
  * Copyright (c) 1999, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.166 2020/12/29 08:04:59 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uaudio.c,v 1.167 2021/01/10 13:17:44 ryoon Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1546,7 +1546,7 @@ uaudio_process_as(struct uaudio_softc *s
 	if (asid->bDescriptorType != UDESC_CS_INTERFACE ||
 	asid->bDescriptorSubtype != AS_GENERAL)
 		return USBD_INVAL;
-	DPRINTF("asid: bTerminakLink=%d wFormatTag=%d\n",
+	DPRINTF("asid: bTerminalLink=%d wFormatTag=%d\n",
 		 asid->bTerminalLink, UGETW(asid->wFormatTag));
 	offs += asid->bLength;
 	if (offs > size)



CVS commit: src/sys/dev/usb

2021-01-10 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Jan 10 13:17:44 UTC 2021

Modified Files:
src/sys/dev/usb: uaudio.c

Log Message:
Fix a typo in debug message


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/dev/usb/uaudio.c

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



CVS commit: src/sbin/newfs_msdos

2020-12-11 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Dec 11 18:49:38 UTC 2020

Modified Files:
src/sbin/newfs_msdos: newfs_msdos.8

Log Message:
Describe after example like other examples


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sbin/newfs_msdos/newfs_msdos.8

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

Modified files:

Index: src/sbin/newfs_msdos/newfs_msdos.8
diff -u src/sbin/newfs_msdos/newfs_msdos.8:1.23 src/sbin/newfs_msdos/newfs_msdos.8:1.24
--- src/sbin/newfs_msdos/newfs_msdos.8:1.23	Fri Feb 17 09:29:35 2017
+++ src/sbin/newfs_msdos/newfs_msdos.8	Fri Dec 11 18:49:37 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: newfs_msdos.8,v 1.23 2017/02/17 09:29:35 wiz Exp $
+.\" $NetBSD: newfs_msdos.8,v 1.24 2020/12/11 18:49:37 ryoon Exp $
 .\"
 .\" Copyright (c) 1998 Robert Nordier
 .\" All rights reserved.
@@ -228,11 +228,12 @@ Create a standard 1.44M file system, wit
 .Ar foo ,
 on
 .Pa /dev/rfd0a .
-Create a 30MB image file, with the FAT partition starting
-63 sectors within the image file:
 .Bd -literal -offset indent
 newfs_msdos -C 30M -@63s ./somefile
 .Ed
+.Pp
+Create a 30MB image file, with the FAT partition starting
+63 sectors within the image file:
 .Sh DIAGNOSTICS
 Exit status is 0 on success and 1 on error.
 .Sh SEE ALSO



CVS commit: src/sbin/newfs_msdos

2020-12-11 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Fri Dec 11 18:49:38 UTC 2020

Modified Files:
src/sbin/newfs_msdos: newfs_msdos.8

Log Message:
Describe after example like other examples


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sbin/newfs_msdos/newfs_msdos.8

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



Re: CVS import: src/external/bsd/dhcpcd/dist

2020-10-16 Thread Ryo ONODERA
Hi,

Roy Marples  writes:

> Hi Ryo
>
> On 15/10/2020 02:23, Ryo ONODERA wrote:
>> dhcpcd-9.3.1 do not detect carrier with cdce(4) and urndis(4) devices.
>> dhcpcd-9.2.0 from pkgsrc-2020Q3 branch works without problems.
>> (Maybe 9.3.0 in NetBSD base worked for me.)
>> 
>> cdce and urndis have no "status" line in ifconfig command output.
>> Is this related to my problem?
>
> Does this fix it?

This patch fixes my problem.

Thank you very much!

> diff --git a/src/if.c b/src/if.c
> index 5f4edb86..deb5280b 100644
> --- a/src/if.c
> +++ b/src/if.c
> @@ -198,10 +198,8 @@ if_is_link_up(const struct interface *ifp)
>   {
>
>   return ifp->flags & IFF_UP &&
> - (ifp->carrier == LINK_UP ||
> -  (ifp->carrier == LINK_UNKNOWN &&
> -   !(ifp->options == NULL ||
> - ifp->options->options & DHCPCD_LINK)));
> +     (ifp->carrier != LINK_DOWN ||
> +  (ifp->options != NULL && !(ifp->options->options & DHCPCD_LINK)));
>   }
>
>   int

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS import: src/external/bsd/dhcpcd/dist

2020-10-14 Thread Ryo ONODERA
Hi,

dhcpcd-9.3.1 do not detect carrier with cdce(4) and urndis(4) devices.
dhcpcd-9.2.0 from pkgsrc-2020Q3 branch works without problems.
(Maybe 9.3.0 in NetBSD base worked for me.)

cdce and urndis have no "status" line in ifconfig command output.
Is this related to my problem?

"Roy Marples"  writes:

> Module Name:  src
> Committed By: roy
> Date: Mon Oct 12 14:07:56 UTC 2020
>
> Update of /cvsroot/src/external/bsd/dhcpcd/dist
> In directory ivanova.netbsd.org:/tmp/cvs-serv8895
>
> Log Message:
> Update to dhcpcd-9.3.1 with the following changes:
>  * dhcpcd: carrier handling issue fixed from 9.3.0
>  * dhcpcd: log if interface type is unsupported in debug
>  * duid: memory leak fixed if UUID wanted but none available
>  * privsep: fix receiving inet and no BPF running
>  * privsep: allow gettimeofday for SECCOMP
>  * privsep: fix stderr redirection again
>
> Status:
>
> Vendor Tag:   ROY
> Release Tags: dhcpcd-9_3_1
>   
> U src/external/bsd/dhcpcd/dist/LICENSE
> U src/external/bsd/dhcpcd/dist/README.md
> U src/external/bsd/dhcpcd/dist/src/defs.h
> U src/external/bsd/dhcpcd/dist/src/common.c
> U src/external/bsd/dhcpcd/dist/src/control.c
> C src/external/bsd/dhcpcd/dist/src/dhcpcd.c
> U src/external/bsd/dhcpcd/dist/src/duid.c
> U src/external/bsd/dhcpcd/dist/src/eloop.c
> C src/external/bsd/dhcpcd/dist/src/logerr.c
> U src/external/bsd/dhcpcd/dist/src/if.c
> U src/external/bsd/dhcpcd/dist/src/if-options.c
> U src/external/bsd/dhcpcd/dist/src/sa.c
> U src/external/bsd/dhcpcd/dist/src/route.c
> U src/external/bsd/dhcpcd/dist/src/dhcp-common.c
> C src/external/bsd/dhcpcd/dist/src/script.c
> U src/external/bsd/dhcpcd/dist/src/auth.c
> C src/external/bsd/dhcpcd/dist/src/if-bsd.c
> C src/external/bsd/dhcpcd/dist/src/dhcp.c
> U src/external/bsd/dhcpcd/dist/src/ipv4.c
> U src/external/bsd/dhcpcd/dist/src/bpf.c
> U src/external/bsd/dhcpcd/dist/src/arp.c
> U src/external/bsd/dhcpcd/dist/src/ipv4ll.c
> C src/external/bsd/dhcpcd/dist/src/ipv6.c
> C src/external/bsd/dhcpcd/dist/src/ipv6nd.c
> C src/external/bsd/dhcpcd/dist/src/dhcp6.c
> U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.c
> C src/external/bsd/dhcpcd/dist/src/privsep.c
> U src/external/bsd/dhcpcd/dist/src/privsep-root.c
> U src/external/bsd/dhcpcd/dist/src/privsep-control.c
> U src/external/bsd/dhcpcd/dist/src/privsep-inet.c
> U src/external/bsd/dhcpcd/dist/src/privsep-bpf.c
> U src/external/bsd/dhcpcd/dist/src/privsep-bsd.c
> U src/external/bsd/dhcpcd/dist/src/common.h
> U src/external/bsd/dhcpcd/dist/src/control.h
> U src/external/bsd/dhcpcd/dist/src/dhcpcd.h
> U src/external/bsd/dhcpcd/dist/src/duid.h
> U src/external/bsd/dhcpcd/dist/src/eloop.h
> U src/external/bsd/dhcpcd/dist/src/logerr.h
> U src/external/bsd/dhcpcd/dist/src/if.h
> U src/external/bsd/dhcpcd/dist/src/if-options.h
> U src/external/bsd/dhcpcd/dist/src/sa.h
> U src/external/bsd/dhcpcd/dist/src/route.h
> U src/external/bsd/dhcpcd/dist/src/dhcp-common.h
> U src/external/bsd/dhcpcd/dist/src/script.h
> U src/external/bsd/dhcpcd/dist/src/auth.h
> U src/external/bsd/dhcpcd/dist/src/dhcp.h
> U src/external/bsd/dhcpcd/dist/src/ipv4.h
> U src/external/bsd/dhcpcd/dist/src/bpf.h
> U src/external/bsd/dhcpcd/dist/src/arp.h
> U src/external/bsd/dhcpcd/dist/src/ipv4ll.h
> U src/external/bsd/dhcpcd/dist/src/ipv6.h
> U src/external/bsd/dhcpcd/dist/src/ipv6nd.h
> U src/external/bsd/dhcpcd/dist/src/dhcp6.h
> U src/external/bsd/dhcpcd/dist/src/dhcpcd-embedded.h
> U src/external/bsd/dhcpcd/dist/src/privsep.h
> U src/external/bsd/dhcpcd/dist/src/privsep-root.h
> U src/external/bsd/dhcpcd/dist/src/privsep-control.h
> U src/external/bsd/dhcpcd/dist/src/privsep-inet.h
> U src/external/bsd/dhcpcd/dist/src/privsep-bpf.h
> U src/external/bsd/dhcpcd/dist/src/dev.h
> U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf.5.in
> U src/external/bsd/dhcpcd/dist/src/dhcpcd.8.in
> U src/external/bsd/dhcpcd/dist/src/dhcpcd.conf
> U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.in
> U src/external/bsd/dhcpcd/dist/hooks/dhcpcd-run-hooks.8.in
> U src/external/bsd/dhcpcd/dist/hooks/01-test
> U src/external/bsd/dhcpcd/dist/hooks/10-wpa_supplicant
> U src/external/bsd/dhcpcd/dist/hooks/15-timezone
> U src/external/bsd/dhcpcd/dist/hooks/20-resolv.conf
> U src/external/bsd/dhcpcd/dist/hooks/29-lookup-hostname
> U src/external/bsd/dhcpcd/dist/hooks/30-hostname.in
> U src/external/bsd/dhcpcd/dist/hooks/50-ntp.conf
> U src/external/bsd/dhcpcd/dist/hooks/50-ypbind.in
>
> 9 conflicts created by this import.
> Use the following command to help the merge:
>
>   cvs checkout -jROY:yesterday -jROY src/external/bsd/dhcpcd/dist
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/sys/arch/x86/x86

2020-10-12 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Oct 12 12:11:03 UTC 2020

Modified Files:
src/sys/arch/x86/x86: hyperv.c

Log Message:
Fix typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/hyperv.c

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



CVS commit: src/sys/arch/x86/x86

2020-10-12 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Oct 12 12:11:03 UTC 2020

Modified Files:
src/sys/arch/x86/x86: hyperv.c

Log Message:
Fix typo in comment


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/sys/arch/x86/x86/hyperv.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/arch/x86/x86/hyperv.c
diff -u src/sys/arch/x86/x86/hyperv.c:1.11 src/sys/arch/x86/x86/hyperv.c:1.12
--- src/sys/arch/x86/x86/hyperv.c:1.11	Tue Jul 14 00:45:53 2020
+++ src/sys/arch/x86/x86/hyperv.c	Mon Oct 12 12:11:03 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: hyperv.c,v 1.11 2020/07/14 00:45:53 yamaguchi Exp $	*/
+/*	$NetBSD: hyperv.c,v 1.12 2020/10/12 12:11:03 ryoon Exp $	*/
 
 /*-
  * Copyright (c) 2009-2012,2016-2017 Microsoft Corp.
@@ -29,11 +29,11 @@
  */
 
 /**
- * Implements low-level interactions with Hyper-V/Azuree
+ * Implements low-level interactions with Hyper-V/Azure
  */
 #include 
 #ifdef __KERNEL_RCSID
-__KERNEL_RCSID(0, "$NetBSD: hyperv.c,v 1.11 2020/07/14 00:45:53 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hyperv.c,v 1.12 2020/10/12 12:11:03 ryoon Exp $");
 #endif
 #ifdef __FBSDID
 __FBSDID("$FreeBSD: head/sys/dev/hyperv/vmbus/hyperv.c 331757 2018-03-30 02:25:12Z emaste $");



Re: CVS commit: src/sys/uvm

2020-09-22 Thread Ryo ONODERA
Hi,

Chuck Silvers  writes:

> On Tue, Sep 22, 2020 at 01:51:33AM +0900, Ryo ONODERA wrote:
>> Hi,
>> 
>> It seems that r1.124 of uvm_amap.c causes random userland segfaults
>> on my NetBSD/amd64.
>
> this should be fixed now, could you try again?
>
> this was another case of my usual trick "test a change well, modify
> the change at the last minute, re-test only minimally, commit".
> sorry about that.

Your commit fixes the random segfaults.

Thank you very much for your quick fix.

> -Chuck

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/uvm

2020-09-21 Thread Ryo ONODERA
Hi,

It seems that r1.124 of uvm_amap.c causes random userland segfaults
on my NetBSD/amd64.

If you cannot reproduce the random segfaults, I will send my backtraces.

"Chuck Silvers"  writes:

> Module Name:  src
> Committed By: chs
> Date: Sun Sep 20 23:03:01 UTC 2020
>
> Modified Files:
>   src/sys/uvm: uvm_amap.c
>
> Log Message:
> Effectively disable the AMAP_REFALL flag because it is unsafe.
> This flag tells the amap code that it does not need to allocate ppref
> as part of adding or removing a reference, but that is only correct
> if the range of the reference being added or removed is the same
> as the range of all other references to the amap, and the point of
> this flag is exactly to try to optimize the case where the range is
> different and thus this flag would not be correct to use.
> Fixes PR 55366.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.123 -r1.124 src/sys/uvm/uvm_amap.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/uvm/uvm_amap.c
> diff -u src/sys/uvm/uvm_amap.c:1.123 src/sys/uvm/uvm_amap.c:1.124
> --- src/sys/uvm/uvm_amap.c:1.123  Tue Aug 18 10:40:20 2020
> +++ src/sys/uvm/uvm_amap.cSun Sep 20 23:03:01 2020
> @@ -1,4 +1,4 @@
> -/*   $NetBSD: uvm_amap.c,v 1.123 2020/08/18 10:40:20 chs Exp $   */
> +/*   $NetBSD: uvm_amap.c,v 1.124 2020/09/20 23:03:01 chs Exp $   */
>  
>  /*
>   * Copyright (c) 1997 Charles D. Cranor and Washington University.
> @@ -35,7 +35,7 @@
>   */
>  
>  #include 
> -__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.123 2020/08/18 10:40:20 chs Exp 
> $");
> +__KERNEL_RCSID(0, "$NetBSD: uvm_amap.c,v 1.124 2020/09/20 23:03:01 chs Exp 
> $");
>  
>  #include "opt_uvmhist.h"
>  
> @@ -1593,7 +1593,7 @@ amap_adjref_anons(struct vm_amap *amap, 
>* so that the ppref values match the current amap refcount.
>*/
>  
> - if (amap->am_ppref == NULL && !all && len != amap->am_nslot) {
> + if (amap->am_ppref == NULL) {
>   amap_pp_establish(amap, offset);
>   }
>  #endif
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/sys/dev/usb

2020-09-07 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Sep  7 06:33:05 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs.h usbdevs_data.h

Log Message:
Regenerate


To generate a diff of this commit:
cvs rdiff -u -r1.775 -r1.776 src/sys/dev/usb/usbdevs.h \
src/sys/dev/usb/usbdevs_data.h

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



CVS commit: src/sys/dev/usb

2020-09-07 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Sep  7 06:32:13 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
Add Buffalo BWC-35H01 or BWC-30L01


To generate a diff of this commit:
cvs rdiff -u -r1.785 -r1.786 src/sys/dev/usb/usbdevs

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/usb/usbdevs
diff -u src/sys/dev/usb/usbdevs:1.785 src/sys/dev/usb/usbdevs:1.786
--- src/sys/dev/usb/usbdevs:1.785	Tue Aug 18 02:53:01 2020
+++ src/sys/dev/usb/usbdevs	Mon Sep  7 06:32:13 2020
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.785 2020/08/18 02:53:01 simonb Exp $
+$NetBSD: usbdevs,v 1.786 2020/09/07 06:32:13 ryoon Exp $
 
 /*-
  * Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -1179,6 +1179,7 @@ product CHICONY RTL8188CUS_4	0xaffa	RTL8
 product CHICONY RTL8188CUS_5	0xaffb	RTL8188CUS
 product CHICONY RTL8188CUS_6	0xaffc	RTL8188CUS
 product CHICONY2 TWINKLECAM	0x600d	TwinkleCam USB camera
+product CHICONY2 BWC35HL01	0x602c	Buffalo WBC-35H/L01
 
 /* CH Products */
 product CHPRODUCTS PROTHROTTLE	0x00f1	Pro Throttle



CVS commit: src/sys/dev/usb

2020-09-07 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Sep  7 06:32:13 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
Add Buffalo BWC-35H01 or BWC-30L01


To generate a diff of this commit:
cvs rdiff -u -r1.785 -r1.786 src/sys/dev/usb/usbdevs

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/man4.i386

2020-08-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Aug 25 15:31:24 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: spic.4

Log Message:
Sort correctly, pointed by wiz@. Thank you


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/man4.i386/spic.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/man4.i386/spic.4
diff -u src/share/man/man4/man4.i386/spic.4:1.5 src/share/man/man4/man4.i386/spic.4:1.6
--- src/share/man/man4/man4.i386/spic.4:1.5	Mon Aug 24 19:32:33 2020
+++ src/share/man/man4/man4.i386/spic.4	Tue Aug 25 15:31:24 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: spic.4,v 1.5 2020/08/24 19:32:33 ryoon Exp $
+.\" $NetBSD: spic.4,v 1.6 2020/08/25 15:31:24 ryoon Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -57,8 +57,8 @@ The jog dial works as a
 scroll button, and clicking it generates a click with the "middle" button.
 .Sh SEE ALSO
 .Xr acpi 4 ,
-.Xr wsmouse 4 ,
-.Xr sony 4
+.Xr sony 4 ,
+.Xr wsmouse 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4/man4.i386

2020-08-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Aug 25 15:31:24 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: spic.4

Log Message:
Sort correctly, pointed by wiz@. Thank you


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/man4.i386/spic.4

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



Re: CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Hi,

Valery Ushakov  writes:

> On Mon, Aug 24, 2020 at 19:27:36 +0000, Ryo ONODERA wrote:
>
>> Module Name: src
>> Committed By:ryoon
>> Date:Mon Aug 24 19:27:36 UTC 2020
>> 
>> Modified Files:
>>  src/share/man/man4: viomb.4
>> 
>> Log Message:
>> Add a missing comma
>> 
>> And bump date.
>
> I don't think minor edits like this require a date bump.
>
> I'd say, the date bump is needed only for significant changes like
> adding or removing an option, or may be doing a large edit that
> changes the way the information is presented.

Sorry.
It makes sense.
Should I revert the date changes?

> -uwe

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/share/man/man4/man4.i386

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:36:32 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: elansc.4

Log Message:
Do not split for AUTHORS

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man4/man4.i386/elansc.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/man4.i386/elansc.4
diff -u src/share/man/man4/man4.i386/elansc.4:1.15 src/share/man/man4/man4.i386/elansc.4:1.16
--- src/share/man/man4/man4.i386/elansc.4:1.15	Sat Feb 18 22:39:01 2017
+++ src/share/man/man4/man4.i386/elansc.4	Mon Aug 24 19:36:32 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: elansc.4,v 1.15 2017/02/18 22:39:01 wiz Exp $
+.\"	$NetBSD: elansc.4,v 1.16 2020/08/24 19:36:32 ryoon Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd February 17, 2017
+.Dd August 25, 2020
 .Dt ELANSC 4 i386
 .Os
 .Sh NAME
@@ -110,6 +110,7 @@ Support for PCI exceptions reporting and
 first appeared in
 .Nx 5.0 .
 .Sh AUTHORS
+.An -nosplit
 The
 .Nm
 driver was written by



CVS commit: src/share/man/man4/man4.i386

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:36:32 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: elansc.4

Log Message:
Do not split for AUTHORS

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man4/man4.i386/elansc.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/man4.i386

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:32:33 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: spic.4

Log Message:
Add a missing comma

And bump date


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/man4.i386/spic.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/man4.i386

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:32:33 UTC 2020

Modified Files:
src/share/man/man4/man4.i386: spic.4

Log Message:
Add a missing comma

And bump date


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/man4.i386/spic.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/man4.i386/spic.4
diff -u src/share/man/man4/man4.i386/spic.4:1.4 src/share/man/man4/man4.i386/spic.4:1.5
--- src/share/man/man4/man4.i386/spic.4:1.4	Tue Apr  5 08:24:43 2011
+++ src/share/man/man4/man4.i386/spic.4	Mon Aug 24 19:32:33 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: spic.4,v 1.4 2011/04/05 08:24:43 wiz Exp $
+.\" $NetBSD: spic.4,v 1.5 2020/08/24 19:32:33 ryoon Exp $
 .\"
 .\" Copyright (c) 2002 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -57,7 +57,8 @@ The jog dial works as a
 scroll button, and clicking it generates a click with the "middle" button.
 .Sh SEE ALSO
 .Xr acpi 4 ,
-.Xr wsmouse 4
+.Xr wsmouse 4 ,
+.Xr sony 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:30:00 UTC 2020

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

Log Message:
Add COMPAT_90

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.514 -r1.515 src/share/man/man4/options.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

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:30:00 UTC 2020

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

Log Message:
Add COMPAT_90

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.514 -r1.515 src/share/man/man4/options.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/options.4
diff -u src/share/man/man4/options.4:1.514 src/share/man/man4/options.4:1.515
--- src/share/man/man4/options.4:1.514	Tue Aug  4 06:10:27 2020
+++ src/share/man/man4/options.4	Mon Aug 24 19:30:00 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: options.4,v 1.514 2020/08/04 06:10:27 skrll Exp $
+.\"	$NetBSD: options.4,v 1.515 2020/08/24 19:30:00 ryoon Exp $
 .\"
 .\" Copyright (c) 1996
 .\" 	Perry E. Metzger.  All rights reserved.
@@ -30,7 +30,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd August 4, 2020
+.Dd August 25, 2020
 .Dt OPTIONS 4
 .Os
 .Sh NAME
@@ -398,6 +398,12 @@ Enable binary compatibility with
 This provides support for old
 .Xr route 4
 interfaces.
+.It Cd options COMPAT_80
+Enable binary compatibility with
+.Nx 8.0 .
+.It Cd options COMPAT_90
+Enable binary compatibility with
+.Nx 9.0 .
 .It Cd options COMPAT_BSDPTY
 This option is currently on by default and enables the pty multiplexer
 .Xr ptm 4



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:27:36 UTC 2020

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

Log Message:
Add a missing comma

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/viomb.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/viomb.4
diff -u src/share/man/man4/viomb.4:1.3 src/share/man/man4/viomb.4:1.4
--- src/share/man/man4/viomb.4:1.3	Thu Mar  8 22:52:22 2012
+++ src/share/man/man4/viomb.4	Mon Aug 24 19:27:36 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: viomb.4,v 1.3 2012/03/08 22:52:22 wiz Exp $
+.\"	$NetBSD: viomb.4,v 1.4 2020/08/24 19:27:36 ryoon Exp $
 .\"
 .\" Copyright (C) 2011 Minoura Makoto.
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.Dd November 26, 2011
+.Dd August 25, 2020
 .Dt VIOMB 4
 .Os
 .Sh NAME
@@ -69,7 +69,8 @@ shows the requested number of memory pag
 shows the actual number of memory pages that are already returned to the hypervisor.
 .Sh SEE ALSO
 .Xr virtio 4 ,
-.Xr sysctl 8
+.Xr sysctl 8 ,
+.Xr x86/balloon 4
 .Pp
 .Rs
 .%A Rusty Russell, IBM Corporation



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:27:36 UTC 2020

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

Log Message:
Add a missing comma

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/share/man/man4/viomb.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

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:25:57 UTC 2020

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

Log Message:
Markup authors

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/sf2r.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

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:25:57 UTC 2020

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

Log Message:
Markup authors

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/share/man/man4/sf2r.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/sf2r.4
diff -u src/share/man/man4/sf2r.4:1.5 src/share/man/man4/sf2r.4:1.6
--- src/share/man/man4/sf2r.4:1.5	Wed Jan  2 02:14:48 2002
+++ src/share/man/man4/sf2r.4	Mon Aug 24 19:25:57 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sf2r.4,v 1.5 2002/01/02 02:14:48 wiz Exp $
+.\"	$NetBSD: sf2r.4,v 1.6 2020/08/24 19:25:57 ryoon Exp $
 .\"	$RuOBSD: sf2r.4,v 1.3 2001/10/26 05:38:44 form Exp $
 .\"	$OpenBSD: sf2r.4,v 1.2 2001/12/05 11:27:44 mickey Exp $
 .\"
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd October 8, 2001
+.Dd August 25, 2020
 .Dt SF2R 4
 .Os
 .Sh NAME
@@ -71,10 +71,15 @@ device driver appeared in
 and
 .Nx 1.6 .
 .Sh AUTHORS
+.An -nosplit
 The
 .Nm
-driver was written by Vladimir Popov and Maxim Tsyplakov.
-The man page was written by Vladimir Popov.
+driver was written by
+.An Vladimir Popov
+and
+.An Maxim Tsyplakov.
+The man page was written by
+.An Vladimir Popov .
 .Sh BUGS
 MediaForte made two variants of the SF16-FMR2 cards, the first one has
 an internal amplifier of the output sound, the second one does not have



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:22:06 UTC 2020

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

Log Message:
Link to i386/spic(4) instead of spic(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/sony.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

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:22:06 UTC 2020

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

Log Message:
Link to i386/spic(4) instead of spic(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/sony.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/sony.4
diff -u src/share/man/man4/sony.4:1.4 src/share/man/man4/sony.4:1.5
--- src/share/man/man4/sony.4:1.4	Wed Jun  1 08:14:16 2016
+++ src/share/man/man4/sony.4	Mon Aug 24 19:22:06 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: sony.4,v 1.4 2016/06/01 08:14:16 wiz Exp $
+.\" $NetBSD: sony.4,v 1.5 2020/08/24 19:22:06 ryoon Exp $
 .\"
 .\" Copyright (c) 2005 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 1, 2016
+.Dd August 25, 2020
 .Dt SONY 4
 .Os
 .Sh NAME
@@ -101,7 +101,7 @@ Fn + F3 (volume down)
 .El
 .Sh SEE ALSO
 .Xr acpi 4 ,
-.Xr spic 4
+.Xr i386/spic 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:19:25 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man4/ess.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

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:19:25 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/share/man/man4/ess.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/ess.4
diff -u src/share/man/man4/ess.4:1.14 src/share/man/man4/ess.4:1.15
--- src/share/man/man4/ess.4:1.14	Wed Apr 30 13:10:54 2008
+++ src/share/man/man4/ess.4	Mon Aug 24 19:19:24 2020
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ess.4,v 1.14 2008/04/30 13:10:54 martin Exp $
+.\"	$NetBSD: ess.4,v 1.15 2020/08/24 19:19:24 ryoon Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -24,7 +24,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 22, 2005
+.Dd August 25, 2020
 .Dt ESS 4
 .Os
 .Sh NAME
@@ -66,7 +66,7 @@ driver.
 .Xr joy 4 ,
 .Xr ofisa 4 ,
 .Xr opl 4 ,
-.Xr pnpbios 4
+.Xr i386/pnpbios 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:16:42 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man4/wss.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/wss.4
diff -u src/share/man/man4/wss.4:1.20 src/share/man/man4/wss.4:1.21
--- src/share/man/man4/wss.4:1.20	Sun Mar  6 17:39:05 2011
+++ src/share/man/man4/wss.4	Mon Aug 24 19:16:42 2020
@@ -1,4 +1,4 @@
-.\"   $NetBSD: wss.4,v 1.20 2011/03/06 17:39:05 wiz Exp $
+.\"   $NetBSD: wss.4,v 1.21 2020/08/24 19:16:42 ryoon Exp $
 .\"
 .\" Copyright (c) 1995 Michael Long.
 .\" All rights reserved.
@@ -25,7 +25,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd June 22, 2005
+.Dd August 25, 2020
 .Dt WSS 4
 .Os
 .Sh NAME
@@ -69,4 +69,4 @@ disables the joystick port on MAD16 hard
 .Xr isapnp 4 ,
 .Xr joy 4 ,
 .Xr opl 4 ,
-.Xr pnpbios 4
+.Xr i386/pnpbios 4



CVS commit: src/share/man/man4

2020-08-24 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Mon Aug 24 19:16:42 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/share/man/man4/wss.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

2020-08-23 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Aug 23 13:35:46 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man4/ym.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/ym.4
diff -u src/share/man/man4/ym.4:1.19 src/share/man/man4/ym.4:1.20
--- src/share/man/man4/ym.4:1.19	Mon Jul  3 21:30:58 2017
+++ src/share/man/man4/ym.4	Sun Aug 23 13:35:46 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: ym.4,v 1.19 2017/07/03 21:30:58 wiz Exp $
+.\" $NetBSD: ym.4,v 1.20 2020/08/23 13:35:46 ryoon Exp $
 .\"
 .\" Copyright (c) 1999 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd August 14, 2006
+.Dd August 23, 2020
 .Dt YM 4
 .Os
 .Sh NAME
@@ -182,7 +182,7 @@ On suspending, the device is put into po
 .Xr midi 4 ,
 .Xr mpu 4 ,
 .Xr opl 4 ,
-.Xr pnpbios 4
+.Xr i386/pnpbios 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4

2020-08-23 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sun Aug 23 13:35:46 UTC 2020

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

Log Message:
Link to i386/pnpbios(4) instead of pnpbios(4)

And bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/share/man/man4/ym.4

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



Re: CVS commit: src/sys

2020-08-14 Thread Ryo ONODERA
Hi,

"Chuck Silvers"  writes:

> Module Name:  src
> Committed By: chs
> Date: Fri Aug 14 09:06:15 UTC 2020
>
> Modified Files:
>   src/sys/miscfs/genfs: genfs_io.c
>   src/sys/uvm: uvm_extern.h uvm_object.c uvm_object.h uvm_page.c
>   uvm_page_status.c uvm_pager.c uvm_vnode.c
>
> Log Message:
> centralize calls from UVM to radixtree into a few functions.
> in those functions, assert that the object lock is held in
> the correct mode.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.99 -r1.100 src/sys/miscfs/genfs/genfs_io.c
> cvs rdiff -u -r1.230 -r1.231 src/sys/uvm/uvm_extern.h
> cvs rdiff -u -r1.23 -r1.24 src/sys/uvm/uvm_object.c
> cvs rdiff -u -r1.38 -r1.39 src/sys/uvm/uvm_object.h
> cvs rdiff -u -r1.244 -r1.245 src/sys/uvm/uvm_page.c
> cvs rdiff -u -r1.5 -r1.6 src/sys/uvm/uvm_page_status.c
> cvs rdiff -u -r1.128 -r1.129 src/sys/uvm/uvm_pager.c
> cvs rdiff -u -r1.115 -r1.116 src/sys/uvm/uvm_vnode.c

This change assets after every shutdown or sync command
invocation on my two amd64 laptops at least.
Both laptop uses mount -o log (WAPBL).

The backtrace is as follows.
This is result of LOCKDEBUG enabled kernel.
I can get same result from DIAGNOSTICS kernel too.
Could you take a look at my problem?

$ crash -N netbsd.33 -M netbsd.33.core
Crash version 9.99.70, image version 9.99.70.
System panicked: kernel diagnostic assertion "uvm_pagelookup(uobj, offset) == 
NULL || ((a->ar_flags & UVM_PAGE_ARRAY_FILL_DIRTY) != 0 && 
!uvm_obj_page_dirty_p(pg))" failed: file "/usr/src/sys/uvm/uvm_vnode.c", line 
321
Backtrace from time of crash is available.
crash> bt
_KERNEL_OPT_NARCNET() at 0
?() at 87814aa72cb0
sys_reboot() at sys_reboot
vpanic() at vpanic+0x15b
__x86_indirect_thunk_rax() at __x86_indirect_thunk_rax
uvn_findpage() at uvn_findpage+0xf9
uvn_findpages() at uvn_findpages+0xcd
genfs_do_putpages() at genfs_do_putpages+0xc17
VOP_PUTPAGES() at VOP_PUTPAGES+0x43
ffs_full_fsync() at ffs_full_fsync+0x1b4
ffs_fsync() at ffs_fsync+0xef
VOP_FSYNC() at VOP_FSYNC+0x47
sched_sync() at sched_sync+0x168
crash>

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/share/man/man4

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:10:21 UTC 2020

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

Log Message:
man4: Add Linux USB 3.0 debu port to ugensa.4


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man4/ugensa.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

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:10:21 UTC 2020

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

Log Message:
man4: Add Linux USB 3.0 debu port to ugensa.4


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/share/man/man4/ugensa.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/ugensa.4
diff -u src/share/man/man4/ugensa.4:1.10 src/share/man/man4/ugensa.4:1.11
--- src/share/man/man4/ugensa.4:1.10	Mon Dec 14 09:33:47 2009
+++ src/share/man/man4/ugensa.4	Sat Jul  4 08:10:21 2020
@@ -1,4 +1,4 @@
-.\" $NetBSD: ugensa.4,v 1.10 2009/12/14 09:33:47 wiz Exp $
+.\" $NetBSD: ugensa.4,v 1.11 2020/07/04 08:10:21 ryoon Exp $
 .\"
 .\" Copyright (c) 2001 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,7 +27,7 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd December 14, 2009
+.Dd July 4, 2020
 .Dt UGENSA 4
 .Os
 .Sh NAME
@@ -68,6 +68,7 @@ device):
 .It Dell/Novatel Wireless HDSPA modem
 .It Dell W5500 HDSPA modem [not tested]
 .It AnyDATA ADU-E500A [not tested]
+.It Linux's USB 3.0 debug port serial communication
 .El
 .Sh DESCRIPTION
 The



CVS commit: src/sys/dev/usb

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:07:02 UTC 2020

Modified Files:
src/sys/dev/usb: ugensa.c

Log Message:
usb/ugensa: Support Linux USB 3.0 debugging port serial communication


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/usb/ugensa.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/usb/ugensa.c
diff -u src/sys/dev/usb/ugensa.c:1.42 src/sys/dev/usb/ugensa.c:1.43
--- src/sys/dev/usb/ugensa.c:1.42	Fri Jun  5 08:01:49 2020
+++ src/sys/dev/usb/ugensa.c	Sat Jul  4 08:07:02 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: ugensa.c,v 1.42 2020/06/05 08:01:49 skrll Exp $	*/
+/*	$NetBSD: ugensa.c,v 1.43 2020/07/04 08:07:02 ryoon Exp $	*/
 
 /*
  * Copyright (c) 2004, 2005 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ugensa.c,v 1.42 2020/06/05 08:01:49 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugensa.c,v 1.43 2020/07/04 08:07:02 ryoon Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -95,6 +95,7 @@ static const struct ugensa_type ugensa_d
 	{{ USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_FLEXPACKGPS }, 0 },
 	{{ USB_VENDOR_QUALCOMM_K, USB_PRODUCT_QUALCOMM_K_CDMA_MSM_K }, 0 },
 	{{ USB_VENDOR_ZTE, USB_PRODUCT_ZTE_AC8700 }, 0 },
+	{{ USB_VENDOR_LINUXFOUNDATION, USB_PRODUCT_LINUXFOUNDATION_USB3DEBUG}, 0 },
 
 	/*
 	 * The following devices are untested, but they are purported to



CVS commit: src/sys/dev/usb

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:07:02 UTC 2020

Modified Files:
src/sys/dev/usb: ugensa.c

Log Message:
usb/ugensa: Support Linux USB 3.0 debugging port serial communication


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dev/usb/ugensa.c

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



CVS commit: src/sys/dev/usb

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:06:13 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs.h usbdevs_data.h

Log Message:
usbdevs: Regenerate


To generate a diff of this commit:
cvs rdiff -u -r1.773 -r1.774 src/sys/dev/usb/usbdevs.h \
src/sys/dev/usb/usbdevs_data.h

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



CVS commit: src/sys/dev/usb

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:05:26 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
usbdevs: Add Linux USB 3.0 debugging port serial device


To generate a diff of this commit:
cvs rdiff -u -r1.783 -r1.784 src/sys/dev/usb/usbdevs

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/usb/usbdevs
diff -u src/sys/dev/usb/usbdevs:1.783 src/sys/dev/usb/usbdevs:1.784
--- src/sys/dev/usb/usbdevs:1.783	Fri Jun 19 11:52:42 2020
+++ src/sys/dev/usb/usbdevs	Sat Jul  4 08:05:26 2020
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.783 2020/06/19 11:52:42 flxd Exp $
+$NetBSD: usbdevs,v 1.784 2020/07/04 08:05:26 ryoon Exp $
 
 /*-
  * Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -2141,6 +2141,7 @@ product LINKSYS4 WUSB600NV2	0x0079	WUSB6
 product LINUXFOUNDATION ROOT_HUB_11	0x0001	1.1 root hub
 product LINUXFOUNDATION ROOT_HUB_20	0x0002	2.0 root hub
 product LINUXFOUNDATION ROOT_HUB_30	0x0003	3.0 root hub
+product LINUXFOUNDATION USB3DEBUG	0x0010	USB 3.0 debug port
 
 /* Lite-On Technology */
 product LITEON AR9271		0x4605	AR9271



CVS commit: src/sys/dev/usb

2020-07-04 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Sat Jul  4 08:05:26 UTC 2020

Modified Files:
src/sys/dev/usb: usbdevs

Log Message:
usbdevs: Add Linux USB 3.0 debugging port serial device


To generate a diff of this commit:
cvs rdiff -u -r1.783 -r1.784 src/sys/dev/usb/usbdevs

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



Freeze or panic during boot was: Re: CVS commit: src/sys/dev/ata

2020-05-01 Thread Ryo ONODERA
Hi,

Have you missed this thread?

If the problem requires more time to investigate,
could you consider to revert ata change for a while?

Thank you.

Alexander Nasonov  writes:

> David Brownlee wrote:
>> Just another data point - seeing this same panic on a T480 with the
>> latest kernel from nyftp
>
> Same problem on T470.
>
> -- 
> Alex

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/dev/ata

2020-04-27 Thread Ryo ONODERA
Ryo ONODERA  writes:

> Hi,
>
> After this commit, NetBSD/amd64-current on my HP Spectre x360
> freezes after acpiacad0 detection (before ld0 detection).
> Reverting this commit in latest tree fixes my freeze problem.
>
> Could you take a look at my problem?
>
> Thank you.
>
> === === ===
> cpu7: CPU max freq 40 Hz
> cpu7: TSC freq 199200 Hz
> timecounter: Timecounter "TSC" frequency 199200 Hz quality 3000
> uhub0 at usb0: NetBSD (0x) xHCI root hub (0x), class 9/0, rev 
> 3.00/1.00,
>  addr 0
> uhub0: 6 ports with 6 removable, self powered
> uhub1 at usb1: NetBSD (0x) xHCI root hub (0x), class 9/0, rev 
> 2.00/1.00,
>  addr 0
> uhub1: 12 ports with 12 removable, self powered
> acpiacad0: AC adapter online.
>
> (With this commit, freeze here)
>
> ld0: GPT GUID: 3fda58df-424f-4b48-9fb9-b4c5c037379e
> dk0 at ld0: "EFI", 262144 blocks at 2048, type: ntfs
> dk1 at ld0: "ROOT", 66955885 blocks at 266240, type: ffs
> === === ===

With LOCKDEBUG option,
I have gotten the following panic messages:

panic: TAILQ_INSERT_TAIL 0xd305ab82ae0 
/usr/src/sys/dev/pckbport/pckbport.c:531
cpu0: Begin traceback...
vpanic() at netbsd:vpanic+0x178
snprintf() at netbsd:snprintf
pckbport_enqueue_cmd() at netbsd:pckbport_enqueue_cmd+0x3c0
pms_reset_thread() at netbsd:pms_reset_thread+0x94
cpu0: End traceback...

Thank you.

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/dev/ata

2020-04-27 Thread Ryo ONODERA
Hi,

After this commit, NetBSD/amd64-current on my HP Spectre x360
freezes after acpiacad0 detection (before ld0 detection).
Reverting this commit in latest tree fixes my freeze problem.

Could you take a look at my problem?

Thank you.

=== === ===
cpu7: CPU max freq 40 Hz
cpu7: TSC freq 199200 Hz
timecounter: Timecounter "TSC" frequency 199200 Hz quality 3000
uhub0 at usb0: NetBSD (0x) xHCI root hub (0x), class 9/0, rev 3.00/1.00,
 addr 0
uhub0: 6 ports with 6 removable, self powered
uhub1 at usb1: NetBSD (0x) xHCI root hub (0x), class 9/0, rev 2.00/1.00,
 addr 0
uhub1: 12 ports with 12 removable, self powered
acpiacad0: AC adapter online.

(With this commit, freeze here)

ld0: GPT GUID: 3fda58df-424f-4b48-9fb9-b4c5c037379e
dk0 at ld0: "EFI", 262144 blocks at 2048, type: ntfs
dk1 at ld0: "ROOT", 66955885 blocks at 266240, type: ffs
=== === ===

"Jason R Thorpe"  writes:

> Module Name:  src
> Committed By: thorpej
> Date: Sat Apr 25 00:07:27 UTC 2020
>
> Modified Files:
>   src/sys/dev/ata: ata.c ata_subr.c atavar.h
>
> Log Message:
> Rather than creating a kthread-per-channel, use a threadpool and a
> threadpool-job-per-channel for the in-thread-context work that needs
> to be done (which is rare).
>
> On one of my test systems, this results in the total number of LWPs
> after multi-user boot dropping from 116 to 78.
>
>
> To generate a diff of this commit:
> cvs rdiff -u -r1.155 -r1.156 src/sys/dev/ata/ata.c
> cvs rdiff -u -r1.9 -r1.10 src/sys/dev/ata/ata_subr.c
> cvs rdiff -u -r1.105 -r1.106 src/sys/dev/ata/atavar.h
>
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
>

-- 
Ryo ONODERA // r...@tetera.org
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


CVS commit: src/sys/dev/pckbport

2020-02-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Feb 25 21:41:38 UTC 2020

Modified Files:
src/sys/dev/pckbport: synaptics.c

Log Message:
Messages in pms_synaptics_input() should not start with "pms_input"

Use "pms_synaptics_input" instead for another 2 messages.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/pckbport/synaptics.c

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



CVS commit: src/sys/dev/pckbport

2020-02-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Feb 25 21:41:38 UTC 2020

Modified Files:
src/sys/dev/pckbport: synaptics.c

Log Message:
Messages in pms_synaptics_input() should not start with "pms_input"

Use "pms_synaptics_input" instead for another 2 messages.


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/pckbport/synaptics.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/pckbport/synaptics.c
diff -u src/sys/dev/pckbport/synaptics.c:1.53 src/sys/dev/pckbport/synaptics.c:1.54
--- src/sys/dev/pckbport/synaptics.c:1.53	Tue Feb 25 21:38:42 2020
+++ src/sys/dev/pckbport/synaptics.c	Tue Feb 25 21:41:38 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: synaptics.c,v 1.53 2020/02/25 21:38:42 ryoon Exp $	*/
+/*	$NetBSD: synaptics.c,v 1.54 2020/02/25 21:41:38 ryoon Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
 #include "opt_pms.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.53 2020/02/25 21:38:42 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.54 2020/02/25 21:41:38 ryoon Exp $");
 
 #include 
 #include 
@@ -1182,7 +1182,7 @@ pms_synaptics_input(void *vsc, int data)
 	case 0:
 		if ((data & 0xc8) != 0x80) {
 			aprint_debug_dev(psc->sc_dev,
-			"pms_input: 0x%02x out of sync\n", data);
+			"pms_synaptics_input: 0x%02x out of sync\n", data);
 			/* use negative counts to limit resync phase */
 			psc->inputstate--;
 			return;	/* not in sync yet, discard input */
@@ -1194,7 +1194,7 @@ pms_synaptics_input(void *vsc, int data)
 	case 3:
 		if ((data & 8) == 8) {
 			aprint_debug_dev(psc->sc_dev,
-			"pms_input: dropped in relative mode, reset\n");
+			"pms_synaptics_input: dropped in relative mode, reset\n");
 			psc->inputstate = 0;
 			psc->sc_enabled = 0;
 			wakeup(>sc_enabled);



CVS commit: src/sys/dev/pckbport

2020-02-25 Thread Ryo ONODERA
Module Name:src
Committed By:   ryoon
Date:   Tue Feb 25 21:38:42 UTC 2020

Modified Files:
src/sys/dev/pckbport: synaptics.c

Log Message:
Messages in pms_synaptics_input() should not start with "pms_input"

Use "pms_synaptics_input" instead.


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/sys/dev/pckbport/synaptics.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/pckbport/synaptics.c
diff -u src/sys/dev/pckbport/synaptics.c:1.52 src/sys/dev/pckbport/synaptics.c:1.53
--- src/sys/dev/pckbport/synaptics.c:1.52	Tue Feb 25 21:36:13 2020
+++ src/sys/dev/pckbport/synaptics.c	Tue Feb 25 21:38:42 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: synaptics.c,v 1.52 2020/02/25 21:36:13 ryoon Exp $	*/
+/*	$NetBSD: synaptics.c,v 1.53 2020/02/25 21:38:42 ryoon Exp $	*/
 
 /*
  * Copyright (c) 2005, Steve C. Woodford
@@ -48,7 +48,7 @@
 #include "opt_pms.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.52 2020/02/25 21:36:13 ryoon Exp $");
+__KERNEL_RCSID(0, "$NetBSD: synaptics.c,v 1.53 2020/02/25 21:38:42 ryoon Exp $");
 
 #include 
 #include 
@@ -1159,10 +1159,10 @@ pms_synaptics_input(void *vsc, int data)
 		timersub(>current, >last, );
 		if (diff.tv_sec > 0 || diff.tv_usec >= 4) {
 			aprint_debug_dev(psc->sc_dev,
-			"pms_input: unusual delay (%ld.%06ld s), "
+			"pms_synaptics_input: unusual delay (%ld.%06ld s), "
 			"scheduling reset\n",
 			(long)diff.tv_sec, (long)diff.tv_usec);
-			printf("pms_input: unusual delay (%ld.%06ld s), "
+			printf("pms_synaptics_input: unusual delay (%ld.%06ld s), "
 			"scheduling reset\n",
 			(long)diff.tv_sec, (long)diff.tv_usec);
 			psc->inputstate = 0;



  1   2   3   4   >