Re: autoloading compat43 on tty ioctls

2020-10-11 Thread David Holland
On Sat, Oct 10, 2020 at 03:54:32PM -, Christos Zoulas wrote: > Aside for the TIOCGSID bug which I am about to fix (it is in tty_43.c > and is used in libc tcgetsid(), all the compat tty ioctls are defined > in /usr/src/sys/sys/ioctl_compat.h... We can empty that file and try > to build the

Re: [PATCH 0/2] Delete CIRCLEQ

2020-10-11 Thread David Holland
On Mon, Oct 12, 2020 at 01:23:15PM +1100, matthew green wrote: > > Switch the last user (ypserv) from CIRCLEQ to TAILQ. > > This is inspired by analogous refactoring from OpenBSD: > >

re: [PATCH 0/2] Delete CIRCLEQ

2020-10-11 Thread matthew green
Kamil Rytarowski writes: > Switch the last user (ypserv) from CIRCLEQ to TAILQ. > This is inspired by analogous refactoring from OpenBSD: > https://github.com/openbsd/src/commit/d53c0cf4d32fdbd8b42debfba068f1b0efa423dc#diff-8d0a4fbb89658213ebf314ff188581d7 > > Remove the CIRCLEQ API completely

Re: [PATCH 2/2] Remove the CIRCLEQ API

2020-10-11 Thread Paul Goyette
On Sun, 11 Oct 2020, Kamil Rytarowski wrote: It was marked deprecated in NetBSD 7 and already removed from FreeBSD in 2000 and OpenBSD in 2015. --- share/man/man3/queue.3 | 10 +++ sys/sys/queue.h| 196 - 2 files changed, 10 insertions(+), 196

[PATCH 2/2] Remove the CIRCLEQ API

2020-10-11 Thread Kamil Rytarowski
It was marked deprecated in NetBSD 7 and already removed from FreeBSD in 2000 and OpenBSD in 2015. --- share/man/man3/queue.3 | 10 +++ sys/sys/queue.h| 196 - 2 files changed, 10 insertions(+), 196 deletions(-) diff --git a/share/man/man3/queue.3

[PATCH 1/2] Convert the CIRCLEQ (from sys/queue.h) usage to TAILQ

2020-10-11 Thread Kamil Rytarowski
The CIRCLEQ API from sys/queue.h is deprecated since NetBSD 7 and it will be removed soon. The CIRCLEQ API implementation is prone to a miscompilation due to the pointer aliasing and is discouraged. --- usr.sbin/ypserv/ypserv/ypserv_db.c | 14 +++--- 1 file changed, 7 insertions(+), 7

[PATCH 0/2] Delete CIRCLEQ

2020-10-11 Thread Kamil Rytarowski
Switch the last user (ypserv) from CIRCLEQ to TAILQ. This is inspired by analogous refactoring from OpenBSD: https://github.com/openbsd/src/commit/d53c0cf4d32fdbd8b42debfba068f1b0efa423dc#diff-8d0a4fbb89658213ebf314ff188581d7 Remove the CIRCLEQ API completely from the system headers and document

[PATCH] Fix s87_tw reconstruction to correctly indicate register states

2020-10-11 Thread Michał Górny
Fix the code reconstructing s87_tw (full tag word) from fx_sw (abridged tag word) to correctly represent all register states. The previous code only distinguished between empty/non-empty registers, and assigned 'regular value' to all non-empty registers. The new code explicitly distinguishes the

Re: Trying to write a kernel module for (un)mounting tmpfs

2020-10-11 Thread Bruno Melo
Hi, When I call the namei_simple_user function it always return errno 14. It calls the nameiat_simple_user who calls the pathbuf_copyin function. I set a bp in pathbuf_copyin and i compare what happens when I use mount command vs my module. basically it calls the pathbuf_create_raw() who does