CVS commit: src

2024-04-03 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 00:46:42 UTC 2024

Modified Files:
src/lib/libc/arch/i386/gen: setjmp.S sigsetjmp.S
src/tests/lib/libc/setjmp: t_sigstack.c

Log Message:
i386 longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Tidy the code a little bit.
- Sprinkle comments to explain what's going on.
- Use forward branches for statically predicted not-taken.
  => val==0 is unlikely in longjmp

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/arch/i386/gen/setjmp.S
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/arch/i386/gen/sigsetjmp.S
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/setjmp/t_sigstack.c

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



CVS commit: src

2024-04-03 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 00:46:42 UTC 2024

Modified Files:
src/lib/libc/arch/i386/gen: setjmp.S sigsetjmp.S
src/tests/lib/libc/setjmp: t_sigstack.c

Log Message:
i386 longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Tidy the code a little bit.
- Sprinkle comments to explain what's going on.
- Use forward branches for statically predicted not-taken.
  => val==0 is unlikely in longjmp

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libc/arch/i386/gen/setjmp.S
cvs rdiff -u -r1.18 -r1.19 src/lib/libc/arch/i386/gen/sigsetjmp.S
cvs rdiff -u -r1.8 -r1.9 src/tests/lib/libc/setjmp/t_sigstack.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/arch/i386/gen/setjmp.S
diff -u src/lib/libc/arch/i386/gen/setjmp.S:1.17 src/lib/libc/arch/i386/gen/setjmp.S:1.18
--- src/lib/libc/arch/i386/gen/setjmp.S:1.17	Fri May 23 03:05:56 2014
+++ src/lib/libc/arch/i386/gen/setjmp.S	Thu Apr  4 00:46:41 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: setjmp.S,v 1.17 2014/05/23 03:05:56 uebayasi Exp $	*/
+/*	$NetBSD: setjmp.S,v 1.18 2024/04/04 00:46:41 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -36,7 +36,7 @@
 
 #include 
 #if defined(LIBC_SCCS)
-	RCSID("$NetBSD: setjmp.S,v 1.17 2014/05/23 03:05:56 uebayasi Exp $")
+	RCSID("$NetBSD: setjmp.S,v 1.18 2024/04/04 00:46:41 riastradh Exp $")
 #endif
 
 /*
@@ -49,12 +49,24 @@
  * The previous signal state is restored.
  */
 
+/*
+ * setjmp(jmp_buf env@esp[4,8))
+ *
+ * ELF symbol: __setjmp14, because the size of jmp_buf changed on some
+ * platforms in 1.4.
+ */
 ENTRY(__setjmp14)
-	movl	4(%esp),%ecx
-	movl	0(%esp),%edx
-	movl	%edx, 0(%ecx)
-	movl	%ebx, 4(%ecx)
-	movl	%esp, 8(%ecx)
+	/*
+	 * Save the callee-saves registers: %ebp, %ebx, %edi, %esi,
+	 * plus %esp and the return address on the stack since it
+	 * will be overwritten if the caller makes any subroutine
+	 * calls before longjmp.
+	 */
+	movl	4(%esp),%ecx		/* ecx := env */
+	movl	0(%esp),%edx		/* edx := return address */
+	movl	%edx,0(%ecx)
+	movl	%ebx,4(%ecx)
+	movl	%esp,8(%ecx)
 	movl	%ebp,12(%ecx)
 	movl	%esi,16(%ecx)
 	movl	%edi,20(%ecx)
@@ -63,49 +75,65 @@ ENTRY(__setjmp14)
 	leal	24(%ecx),%edx
 
 	PIC_PROLOGUE
-	pushl	%edx
-	pushl	$0
-	pushl	$0
+	pushl	%edx			/* oset (signal mask saved to) */
+	pushl	$0			/* set := NULL */
+	pushl	$0			/* how := 0 (ignored) */
 #ifdef __PIC__
 	call	PIC_PLT(_C_LABEL(__sigprocmask14))
 #else
 	call	_C_LABEL(__sigprocmask14)
 #endif
-	addl	$12,%esp
+	addl	$12,%esp		/* pop sigprocmask args */
 	PIC_EPILOGUE
 
-	xorl	%eax,%eax
+	xorl	%eax,%eax		/* return 0 first time around */
 	ret
 END(__setjmp14)
 
+/*
+ * longjmp(jmp_buf env@esp[4,8), int val@[8,12))
+ *
+ * ELF symbol: __longjmp14, because the size of jmp_buf changed on some
+ * platforms in 1.4.
+ */
 ENTRY(__longjmp14)
+	/*
+	 * Restore the callee-saves registers: %ebp, %ebx, %edi, %esi,
+	 * plus %esp and the return address on the stack.
+	 */
+	movl	4(%esp),%edx		/* edx := env */
+	movl	8(%esp),%eax		/* eax := val */
+	movl	0(%edx),%ecx		/* ecx := return address */
+	movl	4(%edx),%ebx
+	movl	8(%edx),%esp
+	movl	12(%edx),%ebp
+	movl	16(%edx),%esi
+	movl	20(%edx),%edi
+	movl	%ecx,0(%esp)		/* restore return address */
+
 	/* Restore the signal mask. */
-	movl	4(%esp),%ecx
-	leal	24(%ecx),%edx
+	leal	24(%edx),%edx
+
+	pushl	%eax			/* save val@eax */
 
 	PIC_PROLOGUE
-	pushl	$0
-	pushl	%edx
-	pushl	$3			/* SIG_SETMASK */
+	pushl	$0			/* oset := NULL */
+	pushl	%edx			/* set (signal mask restored from) */
+	pushl	$3			/* how := SIG_SETMASK */
 #ifdef __PIC__
 	call	PIC_PLT(_C_LABEL(__sigprocmask14))
 #else
 	call	_C_LABEL(__sigprocmask14)
 #endif
-	addl	$12,%esp
+	addl	$12,%esp		/* pop sigprocmask args */
 	PIC_EPILOGUE
 
-	movl	4(%esp),%edx
-	movl	8(%esp),%eax
-	movl	0(%edx),%ecx
-	movl	4(%edx),%ebx
-	movl	8(%edx),%esp
-	movl	12(%edx),%ebp
-	movl	16(%edx),%esi
-	movl	20(%edx),%edi
-	testl	%eax,%eax
-	jnz	1f
-	incl	%eax
-1:	movl	%ecx,0(%esp)
-	ret
+	popl	%eax			/* restore val@eax */
+
+	testl	%eax,%eax		/* val == 0? */
+	jz	3f			/* jump if val == 0 */
+	ret/* return val@eax */
+
+3:	incl	%eax			/* val@eax := 1 */
+	ret/* return val@eax */
 END(__longjmp14)

Index: src/lib/libc/arch/i386/gen/sigsetjmp.S
diff -u src/lib/libc/arch/i386/gen/sigsetjmp.S:1.18 src/lib/libc/arch/i386/gen/sigsetjmp.S:1.19
--- src/lib/libc/arch/i386/gen/sigsetjmp.S:1.18	Fri May 23 02:34:19 2014
+++ src/lib/libc/arch/i386/gen/sigsetjmp.S	Thu Apr  4 00:46:41 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: sigsetjmp.S,v 1.18 2014/05/23 02:34:19 uebayasi Exp $	*/
+/*	$NetBSD: sigsetjmp.S,v 1.19 2024/04/04 00:46:41 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -36,76 +36,104 @@
 
 #i

CVS commit: src

2024-04-03 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 00:46:30 UTC 2024

Modified Files:
src/lib/libc/arch/x86_64/gen: __setjmp14.S __sigsetjmp14.S
src/tests/lib/libc/setjmp: t_sigstack.c

Log Message:
amd64 longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Tidy the code a little bit.
- Sprinkle comments to explain what's going on.
- Use `xorl %eXX,%eXX' instead of `xorq %rXX,%rXX'.
  => Same effect, one byte shorter, breaks dep chain on more uarches.
- Use forward branches for statically predicted not-taken.
  => val==0 is unlikely in longjmp

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/x86_64/gen/__setjmp14.S \
src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/setjmp/t_sigstack.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/arch/x86_64/gen/__setjmp14.S
diff -u src/lib/libc/arch/x86_64/gen/__setjmp14.S:1.3 src/lib/libc/arch/x86_64/gen/__setjmp14.S:1.4
--- src/lib/libc/arch/x86_64/gen/__setjmp14.S:1.3	Thu May 22 15:01:56 2014
+++ src/lib/libc/arch/x86_64/gen/__setjmp14.S	Thu Apr  4 00:46:30 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: __setjmp14.S,v 1.3 2014/05/22 15:01:56 uebayasi Exp $	*/
+/*	$NetBSD: __setjmp14.S,v 1.4 2024/04/04 00:46:30 riastradh Exp $	*/
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -40,7 +40,7 @@
 #include 
 
 #if defined(LIBC_SCCS)
-	RCSID("$NetBSD: __setjmp14.S,v 1.3 2014/05/22 15:01:56 uebayasi Exp $")
+	RCSID("$NetBSD: __setjmp14.S,v 1.4 2024/04/04 00:46:30 riastradh Exp $")
 #endif
 
 /*
@@ -53,7 +53,19 @@
  * The previous signal state is restored.
  */
 
+/*
+ * setjmp(jmp_buf env@rdi)
+ *
+ * ELF symbol: __setjmp14, because the size of jmp_buf changed on some
+ * platforms in 1.4.
+ */
 ENTRY(__setjmp14)
+	/*
+	 * Save the callee-saves registers: %rbx, %rbp, %r12-r15,
+	 * plus %rsp and the return address on the stack since it
+	 * will be overwritten if the caller makes any subroutine
+	 * calls before longjmp.
+	 */
 	movq	(%rsp),%r11
 	movq	%rbx,(_JB_RBX * 8)(%rdi)
 	movq	%rbp,(_JB_RBP * 8)(%rdi)
@@ -64,47 +76,62 @@ ENTRY(__setjmp14)
 	movq	%rsp,(_JB_RSP * 8)(%rdi)
 	movq	%r11,(_JB_PC  * 8)(%rdi)
 
-	leaq	(_JB_SIGMASK * 8)(%rdi),%rdx
-	xorl	%edi,%edi
-	xorq	%rsi,%rsi
+	leaq	(_JB_SIGMASK * 8)(%rdi),%rdx	/* oset@rdx */
+	xorl	%edi,%edi		/* how@edi := 0 (ignored) */
+	xorl	%esi,%esi		/* set@rsi := NULL */
 
 #ifdef __PIC__
 	call	PIC_PLT(_C_LABEL(__sigprocmask14))
 #else
 	call	_C_LABEL(__sigprocmask14)
 #endif
-2:	xorl	%eax,%eax
+	xorl	%eax,%eax
 	ret
 END(__setjmp14)
 
+/*
+ * longjmp(jmp_buf env@rdi, int val@esi)
+ *
+ * ELF symbol: __longjmp14, because the size of jmp_buf changed on some
+ * platforms in 1.4
+ */
 ENTRY(__longjmp14)
-	movq	%rdi,%r12
-	movl	%esi,%r8d
-
-	leaq	(_JB_SIGMASK * 8)(%rdi),%rsi
-	movl	$3,%edi		/* SIG_SETMASK */
-	xorq	%rdx,%rdx
+	/*
+	 * Restore the callee-saves registers: %rbx, %rbp, %r12-r15,
+	 * plus %rsp and the return address on the stack.
+	 */
+	movq	(_JB_RBX * 8)(%rdi),%rbx
+	movq	(_JB_RBP * 8)(%rdi),%rbp
+	movq	(_JB_R12 * 8)(%rdi),%r12
+	movq	(_JB_R13 * 8)(%rdi),%r13
+	movq	(_JB_R14 * 8)(%rdi),%r14
+	movq	(_JB_R15 * 8)(%rdi),%r15
+	movq	(_JB_RSP * 8)(%rdi),%rsp
+	movq	(_JB_PC  * 8)(%rdi),%r11
+	movq	%r11,0(%rsp)
+
+	/*
+	 * Use  pushq %rsi  instead of  pushl %esi  in order to keep
+	 * 16-byte stack alignment, even though we only care about the
+	 * 32-bit int in esi.
+	 */
+	pushq	%rsi		/* save val@esi */
+
+	leaq	(_JB_SIGMASK * 8)(%rdi),%rsi	/* set@rsi */
+	movl	$3,%edi		/* how@edi := SIG_SETMASK */
+	xorl	%edx,%edx	/* oset@rdx := NULL */
 
-	pushq	%r8
 #ifdef __PIC__
 	call	PIC_PLT(_C_LABEL(__sigprocmask14))
 #else
 	call	_C_LABEL(__sigprocmask14)
 #endif
-	popq	%r8
-	movq	(_JB_RBX * 8)(%r12),%rbx
-	movq	(_JB_RBP * 8)(%r12),%rbp
-	movq	(_JB_R13 * 8)(%r12),%r13
-	movq	(_JB_R14 * 8)(%r12),%r14
-	movq	(_JB_R15 * 8)(%r12),%r15
-	movq	(_JB_RSP * 8)(%r12),%rsp
-	movq	(_JB_PC  * 8)(%r12),%r11
-	movq	(_JB_R12 * 8)(%r12),%r12
-
-	movl	%r8d,%eax
-	testl	%eax,%eax
-	jnz	1f
-	incl	%eax
-1:	movq	%r11,0(%rsp)
-	ret
+
+	popq	%rax		/* restore val@eax */
+
+	testl	%eax,%eax	/* val@eax == 0? */
+	jz	1f		/* jump if val@eax == 0 */
+	ret			/* return val@eax */
+1:	incl	%eax		/* val@eax := 1 */
+	ret			/* return val@eax */
 END(__longjmp14)
Index: src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S
diff -u src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S:1.3 src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S:1.4
--- src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S:1.3	Thu May 22 15:01:56 2014
+++ src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S	Thu Apr  4 00:46:30 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: __sigsetjmp14.S,v 1.3 2014/05/22 15:01:56 uebayasi Exp $	*/
+/*	$NetBSD: __sigsetjmp14.S,v 1.4 2024/04/04 00:46:30 riastradh Exp $	*/
 
 /*
  * Copyri

CVS commit: src

2024-04-03 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu Apr  4 00:46:30 UTC 2024

Modified Files:
src/lib/libc/arch/x86_64/gen: __setjmp14.S __sigsetjmp14.S
src/tests/lib/libc/setjmp: t_sigstack.c

Log Message:
amd64 longjmp: Restore stack first, then signal mask.

Otherwise, a pending signal may be delivered on the wrong stack when
we restore the signal mask.

While here:

- Tidy the code a little bit.
- Sprinkle comments to explain what's going on.
- Use `xorl %eXX,%eXX' instead of `xorq %rXX,%rXX'.
  => Same effect, one byte shorter, breaks dep chain on more uarches.
- Use forward branches for statically predicted not-taken.
  => val==0 is unlikely in longjmp

PR lib/57946


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/x86_64/gen/__setjmp14.S \
src/lib/libc/arch/x86_64/gen/__sigsetjmp14.S
cvs rdiff -u -r1.7 -r1.8 src/tests/lib/libc/setjmp/t_sigstack.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

2024-04-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr  3 18:53:42 UTC 2024

Modified Files:
src/lib/libm/ld80: b_tgammal.c e_lgammal_r.c s_cexpl.c s_cospil.c
s_erfl.c s_exp2l.c s_expl.c s_logl.c s_sinpil.c s_tanpil.c
src/lib/libm/src: e_acoshl.c e_atanhl.c e_coshl.c e_sinhl.c s_asinhl.c
s_cbrtl.c s_clogl.c s_cosl.c s_sincosl.c s_sinl.c s_tanhl.c
s_tanl.c

Log Message:
remove #include  for i386 now that it is included in math_private.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/ld80/b_tgammal.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/ld80/e_lgammal_r.c \
src/lib/libm/ld80/s_cexpl.c src/lib/libm/ld80/s_cospil.c \
src/lib/libm/ld80/s_erfl.c src/lib/libm/ld80/s_exp2l.c \
src/lib/libm/ld80/s_expl.c src/lib/libm/ld80/s_logl.c \
src/lib/libm/ld80/s_sinpil.c src/lib/libm/ld80/s_tanpil.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/e_acoshl.c \
src/lib/libm/src/e_atanhl.c src/lib/libm/src/s_asinhl.c \
src/lib/libm/src/s_cbrtl.c src/lib/libm/src/s_sincosl.c \
src/lib/libm/src/s_tanhl.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/e_coshl.c src/lib/libm/src/s_sinl.c \
src/lib/libm/src/s_tanl.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_sinhl.c \
src/lib/libm/src/s_clogl.c src/lib/libm/src/s_cosl.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/ld80/b_tgammal.c
diff -u src/lib/libm/ld80/b_tgammal.c:1.2 src/lib/libm/ld80/b_tgammal.c:1.3
--- src/lib/libm/ld80/b_tgammal.c:1.2	Mon Jan 22 07:15:19 2024
+++ src/lib/libm/ld80/b_tgammal.c	Wed Apr  3 14:53:41 2024
@@ -53,10 +53,6 @@
 #error "Unsupported long double format"
 #endif
 
-#ifdef __i386__
-#include 
-#endif
-
 #include "math.h"
 #include "math_private.h"
 

Index: src/lib/libm/ld80/e_lgammal_r.c
diff -u src/lib/libm/ld80/e_lgammal_r.c:1.1 src/lib/libm/ld80/e_lgammal_r.c:1.2
--- src/lib/libm/ld80/e_lgammal_r.c:1.1	Sun Jan 21 13:53:16 2024
+++ src/lib/libm/ld80/e_lgammal_r.c	Wed Apr  3 14:53:41 2024
@@ -17,10 +17,6 @@
  * Converted to long double by Steven G. Kargl.
  */
 
-#ifdef __i386__
-#include 
-#endif
-
 #include "math.h"
 #include "math_private.h"
 
Index: src/lib/libm/ld80/s_cexpl.c
diff -u src/lib/libm/ld80/s_cexpl.c:1.1 src/lib/libm/ld80/s_cexpl.c:1.2
--- src/lib/libm/ld80/s_cexpl.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_cexpl.c	Wed Apr  3 14:53:41 2024
@@ -31,9 +31,6 @@
 #include 
 #include 
 #include 
-#ifdef __i386__
-#include 
-#endif
 
 #include "fpmath.h"
 #include "math.h"
Index: src/lib/libm/ld80/s_cospil.c
diff -u src/lib/libm/ld80/s_cospil.c:1.1 src/lib/libm/ld80/s_cospil.c:1.2
--- src/lib/libm/ld80/s_cospil.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_cospil.c	Wed Apr  3 14:53:41 2024
@@ -28,9 +28,6 @@
  * See ../src/s_cospi.c for implementation details.
  */
 
-#ifdef __i386__
-#include 
-#endif
 #include 
 
 #include "math.h"
Index: src/lib/libm/ld80/s_erfl.c
diff -u src/lib/libm/ld80/s_erfl.c:1.1 src/lib/libm/ld80/s_erfl.c:1.2
--- src/lib/libm/ld80/s_erfl.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_erfl.c	Wed Apr  3 14:53:41 2024
@@ -17,9 +17,6 @@
  * Converted to long double by Steven G. Kargl.
  */
 #include 
-#ifdef __i386__
-#include 
-#endif
 
 #include "math.h"
 #include "math_private.h"
Index: src/lib/libm/ld80/s_exp2l.c
diff -u src/lib/libm/ld80/s_exp2l.c:1.1 src/lib/libm/ld80/s_exp2l.c:1.2
--- src/lib/libm/ld80/s_exp2l.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_exp2l.c	Wed Apr  3 14:53:41 2024
@@ -30,10 +30,6 @@
 #include 
 #include 
 
-#ifdef __i386__
-#include 
-#endif
-
 #ifdef __FreeBSD__
 #include "fpmath.h"
 #endif
Index: src/lib/libm/ld80/s_expl.c
diff -u src/lib/libm/ld80/s_expl.c:1.1 src/lib/libm/ld80/s_expl.c:1.2
--- src/lib/libm/ld80/s_expl.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_expl.c	Wed Apr  3 14:53:41 2024
@@ -41,10 +41,6 @@
 
 #include 
 
-#ifdef __i386__
-#include 
-#endif
-
 #ifdef __FreeBSD__
 #include "fpmath.h"
 #endif
Index: src/lib/libm/ld80/s_logl.c
diff -u src/lib/libm/ld80/s_logl.c:1.1 src/lib/libm/ld80/s_logl.c:1.2
--- src/lib/libm/ld80/s_logl.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_logl.c	Wed Apr  3 14:53:41 2024
@@ -78,10 +78,6 @@
 #include 
 #endif
 
-#ifdef __i386__
-#include 
-#endif
-
 #ifdef __FreeBSD__
 #include "fpmath.h"
 #endif
Index: src/lib/libm/ld80/s_sinpil.c
diff -u src/lib/libm/ld80/s_sinpil.c:1.1 src/lib/libm/ld80/s_sinpil.c:1.2
--- src/lib/libm/ld80/s_sinpil.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_sinpil.c	Wed Apr  3 14:53:41 2024
@@ -28,9 +28,6 @@
  * See ../src/s_sinpi.c for implementation details.
  */
 
-#ifdef __i386__
-#include 
-#endif
 #include 
 
 #include "math.h"
Index: src/lib/libm/ld80/s_tanpil.c
diff -u src/lib/libm/ld80/s_tanpil.c:1.1 src/lib/libm/ld80/s_tanpil.c:1.2
--- src/lib/libm/ld80/s_tanpil.c:1.1	Sun Jan 21 13:53:17 2024
+++ src/lib/libm/ld80/s_tanpi

CVS commit: src/lib/libm

2024-04-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr  3 18:53:42 UTC 2024

Modified Files:
src/lib/libm/ld80: b_tgammal.c e_lgammal_r.c s_cexpl.c s_cospil.c
s_erfl.c s_exp2l.c s_expl.c s_logl.c s_sinpil.c s_tanpil.c
src/lib/libm/src: e_acoshl.c e_atanhl.c e_coshl.c e_sinhl.c s_asinhl.c
s_cbrtl.c s_clogl.c s_cosl.c s_sincosl.c s_sinl.c s_tanhl.c
s_tanl.c

Log Message:
remove #include  for i386 now that it is included in math_private.h


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/ld80/b_tgammal.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/ld80/e_lgammal_r.c \
src/lib/libm/ld80/s_cexpl.c src/lib/libm/ld80/s_cospil.c \
src/lib/libm/ld80/s_erfl.c src/lib/libm/ld80/s_exp2l.c \
src/lib/libm/ld80/s_expl.c src/lib/libm/ld80/s_logl.c \
src/lib/libm/ld80/s_sinpil.c src/lib/libm/ld80/s_tanpil.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/src/e_acoshl.c \
src/lib/libm/src/e_atanhl.c src/lib/libm/src/s_asinhl.c \
src/lib/libm/src/s_cbrtl.c src/lib/libm/src/s_sincosl.c \
src/lib/libm/src/s_tanhl.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/e_coshl.c src/lib/libm/src/s_sinl.c \
src/lib/libm/src/s_tanl.c
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/src/e_sinhl.c \
src/lib/libm/src/s_clogl.c src/lib/libm/src/s_cosl.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-04-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr  3 14:54:51 UTC 2024

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

Log Message:
need  for i386.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_cbrtl.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_cbrtl.c
diff -u src/lib/libm/src/s_cbrtl.c:1.2 src/lib/libm/src/s_cbrtl.c:1.3
--- src/lib/libm/src/s_cbrtl.c:1.2	Tue Apr  2 21:51:01 2024
+++ src/lib/libm/src/s_cbrtl.c	Wed Apr  3 10:54:50 2024
@@ -14,10 +14,11 @@
  * and David A. Schultz.
  */
 #include 
-__RCSID("$NetBSD: s_cbrtl.c,v 1.2 2024/04/03 01:51:01 christos Exp $");
+__RCSID("$NetBSD: s_cbrtl.c,v 1.3 2024/04/03 14:54:50 christos Exp $");
 
 
 #include "namespace.h"
+#include 
 #include 
 #include 
 



CVS commit: src/lib/libm/src

2024-04-03 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Apr  3 14:54:51 UTC 2024

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

Log Message:
need  for i386.


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

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



CVS commit: src/sbin/mount

2024-04-03 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Apr  3 07:00:06 UTC 2024

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

Log Message:
new sentence, new line


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sbin/mount/mount.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/mount/mount.8
diff -u src/sbin/mount/mount.8:1.91 src/sbin/mount/mount.8:1.92
--- src/sbin/mount/mount.8:1.91	Wed Apr  3 03:54:53 2024
+++ src/sbin/mount/mount.8	Wed Apr  3 07:00:06 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: mount.8,v 1.91 2024/04/03 03:54:53 charlotte Exp $
+.\"	$NetBSD: mount.8,v 1.92 2024/04/03 07:00:06 wiz Exp $
 .\"
 .\" Copyright (c) 1980, 1989, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -137,7 +137,8 @@ or at sign
 .Pq Ql \&@ ,
 then the
 .Li nfs
-type is inferred. Otherwise, a 
+type is inferred.
+Otherwise, a
 .Xr dk 4
 wedge may be referred to by its name with a
 .Ar special



CVS commit: src/sbin/mount

2024-04-03 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Wed Apr  3 07:00:06 UTC 2024

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

Log Message:
new sentence, new line


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/sbin/mount/mount.8

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