CVS commit: src/lib/libc/arch/riscv

2024-05-30 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Thu May 30 15:56:43 UTC 2024

Modified Files:
src/lib/libc/arch/riscv: genassym.cf
src/lib/libc/arch/riscv/sys: __sigtramp2.S

Log Message:
Annotate the RISC-V signal trampoline with CFI attributes.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/genassym.cf
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/arch/riscv/sys/__sigtramp2.S

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



CVS commit: src/lib

2024-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 13:35:12 UTC 2024

Modified Files:
src/lib: checkoldver

Log Message:
Improve robustness (from kre@)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/checkoldver

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



CVS commit: src/lib

2024-05-29 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed May 29 13:35:12 UTC 2024

Modified Files:
src/lib: checkoldver

Log Message:
Improve robustness (from kre@)


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/checkoldver

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

Modified files:

Index: src/lib/checkoldver
diff -u src/lib/checkoldver:1.4 src/lib/checkoldver:1.5
--- src/lib/checkoldver:1.4	Tue May 28 12:20:34 2024
+++ src/lib/checkoldver	Wed May 29 09:35:12 2024
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: checkoldver,v 1.4 2024/05/28 16:20:34 christos Exp $
+#	$NetBSD: checkoldver,v 1.5 2024/05/29 13:35:12 christos Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -47,16 +47,14 @@ delete() {
 	then
 		obsol="$obsol.$4"
 	fi
-	echo $PWD/$obsol
+	printf "${PWD}/${obsol}\n"
 }
 
 comparelib() {
 	local name="${1%.so.*}"
-	local version=${1#*.so.}
-	OIFS="$IFS"
-	IFS="$IFS."
+	local version="${1#"${name}"*.so.}"
+	local IFS=.
 	set -- $version
-	IFS="$OIFS"
 
 	if [ -z "$libmajor" ]
 	then



CVS commit: src/lib

2024-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 28 16:20:34 UTC 2024

Modified Files:
src/lib: checkoldver

Log Message:
handle library names that contain a period.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/checkoldver

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



CVS commit: src/lib

2024-05-28 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue May 28 16:20:34 UTC 2024

Modified Files:
src/lib: checkoldver

Log Message:
handle library names that contain a period.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/checkoldver

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

Modified files:

Index: src/lib/checkoldver
diff -u src/lib/checkoldver:1.3 src/lib/checkoldver:1.4
--- src/lib/checkoldver:1.3	Wed Apr 30 09:10:50 2008
+++ src/lib/checkoldver	Tue May 28 12:20:34 2024
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: checkoldver,v 1.3 2008/04/30 13:10:50 martin Exp $
+#	$NetBSD: checkoldver,v 1.4 2024/05/28 16:20:34 christos Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -51,33 +51,31 @@ delete() {
 }
 
 comparelib() {
+	local name="${1%.so.*}"
+	local version=${1#*.so.}
 	OIFS="$IFS"
 	IFS="$IFS."
-	set -- $1
+	set -- $version
 	IFS="$OIFS"
-	if [ "$3" = "[0-9]*" ]
-	then
-		return
-	fi
 
 	if [ -z "$libmajor" ]
 	then
-		libname="$1"
-		libmajor="$3"
-		libminor="$4"
-		libtiny="$5"
+		libname="$name"
+		libmajor="$1"
+		libminor="$2"
+		libtiny="$3"
 		return
 	fi
-	if [ "$libmajor" -lt "$3" ]
+	if [ "$libmajor" -lt "$1" ]
 	then
 		delete "$libname" "$libmajor" "$libminor" "$libtiny"
-		libmajor="$3"
-		libminor="$4"
-		libtiny="$5"
+		libmajor="$1"
+		libminor="$2"
+		libtiny="$3"
 		return
-	elif [ "$3" -lt "$libmajor" ]
+	elif [ "$1" -lt "$libmajor" ]
 	then
-		delete "$libname" "$3" "$4" "$5"
+		delete "$libname" "$1" "$2" "$3"
 		return
 	fi
 
@@ -85,16 +83,16 @@ comparelib() {
 	then
 		return
 	fi
-	if [ "$libminor" -lt "$4" ]
+	if [ "$libminor" -lt "$2" ]
 	then
 		delete "$libname" "$libmajor" "$libminor" "$libtiny"
-		libmajor="$3"
-		libminor="$4"
-		libtiny="$5"
+		libmajor="$1"
+		libminor="$2"
+		libtiny="$3"
 		return
-	elif [ "$4" -lt "$libminor" ]
+	elif [ "$2" -lt "$libminor" ]
 	then
-		delete "$libname" "$3" "$4" "$5"
+		delete "$libname" "$1" "$2" "$3"
 		return
 	fi
 
@@ -102,16 +100,16 @@ comparelib() {
 	then
 		return
 	fi
-	if [ "$libtiny" -lt "$5" ]
+	if [ "$libtiny" -lt "$3" ]
 	then
 		delete "$libname" "$libmajor" "$libminor" "$libtiny"
-		libmajor="$3"
-		libminor="$4"
-		libtiny="$5"
+		libmajor="$1"
+		libminor="$2"
+		libtiny="$3"
 		return
 	elif [ "$5" -lt "$libminor" ]
 	then
-		delete "$libname" "$3" "$4" "$5"
+		delete "$libname" "$1" "$2" "$3"
 		return
 	fi
 }



CVS commit: src/lib/libc/arch/riscv/sys

2024-05-28 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue May 28 06:57:17 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/sys: __sigtramp2.S

Log Message:
Change MIPS to RISC-V.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/sys/__sigtramp2.S

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/riscv/sys/__sigtramp2.S
diff -u src/lib/libc/arch/riscv/sys/__sigtramp2.S:1.3 src/lib/libc/arch/riscv/sys/__sigtramp2.S:1.4
--- src/lib/libc/arch/riscv/sys/__sigtramp2.S:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/sys/__sigtramp2.S	Tue May 28 06:57:17 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: __sigtramp2.S,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: __sigtramp2.S,v 1.4 2024/05/28 06:57:17 skrll Exp $	*/
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -33,12 +33,12 @@
 #include "assym.h"
 
 #if defined(SYSLIBC_SCCS) && !defined(lint)
-	RCSID("$NetBSD: __sigtramp2.S,v 1.3 2023/05/07 12:41:47 skrll Exp $")
+	RCSID("$NetBSD: __sigtramp2.S,v 1.4 2024/05/28 06:57:17 skrll Exp $")
 #endif /* SYSLIBC_SCCS and not lint */
 
 
 /*
- * The MIPS signal trampoline is invoked only to return from
+ * The RISC-V signal trampoline is invoked only to return from
  * the signal; the kernel calls the signal handler directly.
  *
  * On entry, stack looks like:



CVS commit: src/lib/libc/arch/riscv/sys

2024-05-28 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Tue May 28 06:57:17 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/sys: __sigtramp2.S

Log Message:
Change MIPS to RISC-V.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/sys/__sigtramp2.S

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



CVS commit: src/lib/libcurses

2024-05-27 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon May 27 14:30:43 UTC 2024

Modified Files:
src/lib/libcurses: screen.c

Log Message:
curses: init old_mode to 1 (normal visible cursor)

PR bin/58090: Ctrl-Z, fg makes blinking cursor in vi
ok blymn@


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libcurses/screen.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/screen.c
diff -u src/lib/libcurses/screen.c:1.38 src/lib/libcurses/screen.c:1.39
--- src/lib/libcurses/screen.c:1.38	Fri May 17 23:32:50 2024
+++ src/lib/libcurses/screen.c	Mon May 27 14:30:43 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: screen.c,v 1.38 2024/05/17 23:32:50 uwe Exp $	*/
+/*	$NetBSD: screen.c,v 1.39 2024/05/27 14:30:43 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)screen.c	8.2 (blymn) 11/27/2001";
 #else
-__RCSID("$NetBSD: screen.c,v 1.38 2024/05/17 23:32:50 uwe Exp $");
+__RCSID("$NetBSD: screen.c,v 1.39 2024/05/27 14:30:43 uwe Exp $");
 #endif
 #endif	/* not lint */
 
@@ -156,7 +156,7 @@ newterm(const char *type, FILE *outfd, F
 	new_screen->nca = A_NORMAL;
 	new_screen->color_type = COLOR_NONE;
 	new_screen->COLOR_PAIRS = 0;
-	new_screen->old_mode = 2;
+	new_screen->old_mode = 1;
 	new_screen->stdbuf = NULL;
 	new_screen->stdscr = NULL;
 	new_screen->curscr = NULL;



CVS commit: src/lib/libcurses

2024-05-27 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon May 27 14:30:43 UTC 2024

Modified Files:
src/lib/libcurses: screen.c

Log Message:
curses: init old_mode to 1 (normal visible cursor)

PR bin/58090: Ctrl-Z, fg makes blinking cursor in vi
ok blymn@


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/lib/libcurses/screen.c

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



CVS commit: src/lib/libterminfo

2024-05-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon May 20 09:48:42 UTC 2024

Modified Files:
src/lib/libterminfo: Makefile

Log Message:
Use double quotes to include the local ./Makefile.hash


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libterminfo/Makefile

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

Modified files:

Index: src/lib/libterminfo/Makefile
diff -u src/lib/libterminfo/Makefile:1.23 src/lib/libterminfo/Makefile:1.24
--- src/lib/libterminfo/Makefile:1.23	Sun Apr  5 12:31:02 2020
+++ src/lib/libterminfo/Makefile	Mon May 20 09:48:42 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.23 2020/04/05 12:31:02 roy Exp $
+#	$NetBSD: Makefile,v 1.24 2024/05/20 09:48:42 martin Exp $
 
 .include 
 
@@ -47,7 +47,7 @@ MLINKS+=	termcap.3 tgetent.3 termcap.3 t
 
 CPPFLAGS+=	-I${.OBJDIR}
 
-.include 
+.include "Makefile.hash"
 
 # Generate our man pages
 terminfo.5: genman terminfo.5.in term.h termcap_map.c



CVS commit: src/lib/libterminfo

2024-05-20 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Mon May 20 09:48:42 UTC 2024

Modified Files:
src/lib/libterminfo: Makefile

Log Message:
Use double quotes to include the local ./Makefile.hash


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libterminfo/Makefile

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



CVS commit: src/lib/libc/compat

2024-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 20 01:33:40 UTC 2024

Modified Files:
src/lib/libc/compat/include: unistd.h
src/lib/libc/compat/sys: compat_dup3.c

Log Message:
finish renaming __dup3110 to __dup3100


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/unistd.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/compat/sys/compat_dup3.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/compat/include/unistd.h
diff -u src/lib/libc/compat/include/unistd.h:1.4 src/lib/libc/compat/include/unistd.h:1.5
--- src/lib/libc/compat/include/unistd.h:1.4	Sun May 19 18:25:47 2024
+++ src/lib/libc/compat/include/unistd.h	Sun May 19 21:33:39 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: unistd.h,v 1.4 2024/05/19 22:25:47 christos Exp $	*/
+/*	$NetBSD: unistd.h,v 1.5 2024/05/20 01:33:39 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998, 1999 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@ __BEGIN_DECLS
 pid_t	vfork(void) __returns_twice;
 pid_t	__vfork14(void) __returns_twice;
 int	dup3(int, int, int);
-int	__dup3110(int, int, int);
+int	__dup3100(int, int, int);
 
 __END_DECLS
 

Index: src/lib/libc/compat/sys/compat_dup3.c
diff -u src/lib/libc/compat/sys/compat_dup3.c:1.1 src/lib/libc/compat/sys/compat_dup3.c:1.2
--- src/lib/libc/compat/sys/compat_dup3.c:1.1	Sun May 19 18:25:48 2024
+++ src/lib/libc/compat/sys/compat_dup3.c	Sun May 19 21:33:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $ */
+/*	$NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $ */
 
 /*-
  * Copyright (c) 2024 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: compat_dup3.c,v 1.1 2024/05/19 22:25:48 christos Exp $");
+__RCSID("$NetBSD: compat_dup3.c,v 1.2 2024/05/20 01:33:40 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -45,7 +45,7 @@ int
 dup3(int oldfd, int newfd, int flags)
 {
 	if (oldfd != newfd) {
-		return __dup3110(oldfd, newfd, flags);
+		return __dup3100(oldfd, newfd, flags);
 	}
 	if (flags & (O_NONBLOCK|O_NOSIGPIPE)) {
 		int e = fcntl(newfd, F_GETFL, 0);



CVS commit: src/lib/libc/compat

2024-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon May 20 01:33:40 UTC 2024

Modified Files:
src/lib/libc/compat/include: unistd.h
src/lib/libc/compat/sys: compat_dup3.c

Log Message:
finish renaming __dup3110 to __dup3100


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/compat/include/unistd.h
cvs rdiff -u -r1.1 -r1.2 src/lib/libc/compat/sys/compat_dup3.c

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



CVS commit: src/lib/libc/sys

2024-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 19 16:04:46 UTC 2024

Modified Files:
src/lib/libc/sys: dup.2

Log Message:
Amend for oldfd == newfd returning EINVAL in dup3


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/sys/dup.2

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/sys/dup.2
diff -u src/lib/libc/sys/dup.2:1.33 src/lib/libc/sys/dup.2:1.34
--- src/lib/libc/sys/dup.2:1.33	Mon Jul  3 17:32:50 2017
+++ src/lib/libc/sys/dup.2	Sun May 19 12:04:46 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: dup.2,v 1.33 2017/07/03 21:32:50 wiz Exp $
+.\"	$NetBSD: dup.2,v 1.34 2024/05/19 16:04:46 christos Exp $
 .\"
 .\" Copyright (c) 1980, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -29,7 +29,7 @@
 .\"
 .\" @(#)dup.2	8.1 (Berkeley) 6/4/93
 .\"
-.Dd December 24, 2013
+.Dd May 19, 2024
 .Dt DUP 2
 .Os
 .Sh NAME
@@ -117,7 +117,14 @@ and can to some extent be adjusted with
 .Pp
 The
 .Fn dup3
-call includes an additional
+call fails and returns 
+.Er EINVAL
+if the numeric value in the
+.Ar oldfd 
+argument is equal to the one in the
+.Ar newfd
+argument.
+It also includes an additional
 .Fa flags
 argument supporting a subset of the
 .Xr open 2
@@ -207,11 +214,15 @@ and
 .Fa newfd
 is not in the range of valid file descriptors.
 .It Bq Er EINVAL
-.Fa flags
-contained an invalid value.
-Only
+In the
 .Fn dup3
-can generate this error.
+call either the
+.Fa flags
+argument contained an invalid value or the
+.Ar oldfd
+argument is equal to the
+.Ar newfd
+argument.
 .It Bq Er EMFILE
 Too many descriptors are active.
 Only



CVS commit: src/lib/libc/sys

2024-05-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun May 19 16:04:46 UTC 2024

Modified Files:
src/lib/libc/sys: dup.2

Log Message:
Amend for oldfd == newfd returning EINVAL in dup3


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libc/sys/dup.2

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



CVS commit: src/lib/libcurses

2024-05-17 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri May 17 23:32:51 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_private.h curses_screen.3 screen.c
setterm.c

Log Message:
curses: constify newterm() and setterm() arguments

newterm() argument is const in the spec, so this fixes our
conformance.

setterm() is not in the spec, but it's natural and in ncurses its
argument is const too, so follow suit.

Doesn't change the ABI, so no bump required.

ok blymn@


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/lib/libcurses/curses.h
cvs rdiff -u -r1.80 -r1.81 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/curses_screen.3
cvs rdiff -u -r1.37 -r1.38 src/lib/libcurses/screen.c
cvs rdiff -u -r1.71 -r1.72 src/lib/libcurses/setterm.c

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



CVS commit: src/lib/libcurses

2024-05-17 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri May 17 23:32:51 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_private.h curses_screen.3 screen.c
setterm.c

Log Message:
curses: constify newterm() and setterm() arguments

newterm() argument is const in the spec, so this fixes our
conformance.

setterm() is not in the spec, but it's natural and in ncurses its
argument is const too, so follow suit.

Doesn't change the ABI, so no bump required.

ok blymn@


To generate a diff of this commit:
cvs rdiff -u -r1.131 -r1.132 src/lib/libcurses/curses.h
cvs rdiff -u -r1.80 -r1.81 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/curses_screen.3
cvs rdiff -u -r1.37 -r1.38 src/lib/libcurses/screen.c
cvs rdiff -u -r1.71 -r1.72 src/lib/libcurses/setterm.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/curses.h
diff -u src/lib/libcurses/curses.h:1.131 src/lib/libcurses/curses.h:1.132
--- src/lib/libcurses/curses.h:1.131	Tue May 14 10:22:48 2024
+++ src/lib/libcurses/curses.h	Fri May 17 23:32:50 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses.h,v 1.131 2024/05/14 10:22:48 uwe Exp $	*/
+/*	$NetBSD: curses.h,v 1.132 2024/05/17 23:32:50 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -719,7 +719,7 @@ int	 mvwprintw(WINDOW *, int, int, const
 int	 mvwscanw(WINDOW *, int, int, const char *, ...) __scanflike(4, 5);
 int	 napms(int);
 WINDOW	*newpad(int, int);
-SCREEN  *newterm(char *, FILE *, FILE *);
+SCREEN  *newterm(const char *, FILE *, FILE *);
 WINDOW	*newwin(int, int, int, int);
 int	 nl(void);
 attr_t	 no_color_attributes(void);
@@ -751,7 +751,7 @@ int	 savetty(void);
 int	 scanw(const char *, ...) __scanflike(1, 2);
 int	 scroll(WINDOW *);
 int	 scrollok(WINDOW *, bool);
-int	 setterm(char *);
+int	 setterm(const char *);
 int	 set_escdelay(int);
 int	 set_tabsize(int);
 SCREEN  *set_term(SCREEN *);

Index: src/lib/libcurses/curses_private.h
diff -u src/lib/libcurses/curses_private.h:1.80 src/lib/libcurses/curses_private.h:1.81
--- src/lib/libcurses/curses_private.h:1.80	Tue May  3 07:25:34 2022
+++ src/lib/libcurses/curses_private.h	Fri May 17 23:32:50 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses_private.h,v 1.80 2022/05/03 07:25:34 blymn Exp $	*/
+/*	$NetBSD: curses_private.h,v 1.81 2024/05/17 23:32:50 uwe Exp $	*/
 
 /*-
  * Copyright (c) 1998-2000 Brett Lymn
@@ -355,7 +355,7 @@ int	_cursesi_waddbytes(WINDOW *, const c
 void _cursesi_reset_wacs(SCREEN *);
 #endif /* HAVE_WCHAR */
 void _cursesi_resetterm(SCREEN *);
-int  _cursesi_setterm(char *, SCREEN *);
+int  _cursesi_setterm(const char *, SCREEN *);
 int	 __delay(void);
 unsigned int	 __hash_more(const void *, size_t, unsigned int);
 unsigned int	 __hash_line(const __LDATA *, int);

Index: src/lib/libcurses/curses_screen.3
diff -u src/lib/libcurses/curses_screen.3:1.28 src/lib/libcurses/curses_screen.3:1.29
--- src/lib/libcurses/curses_screen.3:1.28	Sun Feb  7 23:00:57 2021
+++ src/lib/libcurses/curses_screen.3	Fri May 17 23:32:50 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_screen.3,v 1.28 2021/02/07 23:00:57 rillig Exp $
+.\"	$NetBSD: curses_screen.3,v 1.29 2024/05/17 23:32:50 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"
-.Dd March 12, 2020
+.Dd May 16, 2024
 .Dt CURSES_SCREEN 3
 .Os
 .Sh NAME
@@ -61,7 +61,7 @@
 .Ft void
 .Fn use_env "bool value"
 .Ft SCREEN *
-.Fn newterm "char *type" "FILE *outfd" "FILE *infd"
+.Fn newterm "const char *type" "FILE *outfd" "FILE *infd"
 .Ft SCREEN *
 .Fn set_term "SCREEN *screen"
 .Ft void
@@ -79,7 +79,7 @@
 .Ft int
 .Fn resizeterm "int lines" "int cols"
 .Ft int
-.Fn setterm "char *name"
+.Fn setterm "const char *name"
 .Ft int
 .Fn set_tabsize "int value"
 .Pp
@@ -99,7 +99,9 @@ argument points to a
 .Xr terminfo 5
 entry, or it may be
 .Dv NULL
-in which case the TERM environment variable is used.
+in which case the
+.Ev TERM
+environment variable is used.
 The
 .Fa outfd
 and

Index: src/lib/libcurses/screen.c
diff -u src/lib/libcurses/screen.c:1.37 src/lib/libcurses/screen.c:1.38
--- src/lib/libcurses/screen.c:1.37	Fri Apr  8 10:17:52 2022
+++ src/lib/libcurses/screen.c	Fri May 17 23:32:50 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: screen.c,v 1.37 2022/04/08 10:17:52 andvar Exp $	*/
+/*	$NetBSD: screen.c,v 1.38 2024/05/17 23:32:50 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)screen.c	8.2 (blymn) 11/27/2001";
 #else
-__RCSID("$NetBSD: screen.c,v 1.37 2022/04/08 10:17:52 andvar Exp $");
+__RCSID("$NetBSD: screen.c,v 1.38 2024/05/17 23:32:50 uwe Exp $");
 #endif
 #endif	/* not lint */
 
@@ -124,10 +124,10 @@ set_term(SCREEN *new)
  *
  */
 SCREEN *
-newterm(char *type, FILE *outfd, FILE *infd)
+newterm(const char *type, FILE *outfd, FILE *infd)
 {
 	SCREEN *new_screen;
-	char 

CVS commit: src/lib/libedit

2024-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 17 02:59:09 UTC 2024

Modified Files:
src/lib/libedit: el.h eln.c

Log Message:
When calling el_line make sure that we call the resizing function
callback because el_line updates the legacy LineInfo structure and
we need to notify that the cached copy of the the buffer has changed.
Of course the resizing function can call el_line itself to update
the buffer, so prevent recursion. Bug found by Peter Rufer at Arista.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/el.h
cvs rdiff -u -r1.37 -r1.38 src/lib/libedit/eln.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/libedit/el.h
diff -u src/lib/libedit/el.h:1.46 src/lib/libedit/el.h:1.47
--- src/lib/libedit/el.h:1.46	Sun Aug 15 06:08:41 2021
+++ src/lib/libedit/el.h	Thu May 16 22:59:08 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: el.h,v 1.46 2021/08/15 10:08:41 christos Exp $	*/
+/*	$NetBSD: el.h,v 1.47 2024/05/17 02:59:08 christos Exp $	*/
 
 /*-
  * Copyright (c) 1992, 1993
@@ -58,6 +58,7 @@
 #define	NARROW_HISTORY	0x040
 #define	NO_RESET	0x080
 #define	FIXIO		0x100
+#define	FROM_ELLINE	0x200
 
 typedef unsigned char el_action_t;	/* Index to command array	*/
 

Index: src/lib/libedit/eln.c
diff -u src/lib/libedit/eln.c:1.37 src/lib/libedit/eln.c:1.38
--- src/lib/libedit/eln.c:1.37	Tue Jan 11 13:30:15 2022
+++ src/lib/libedit/eln.c	Thu May 16 22:59:08 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: eln.c,v 1.37 2022/01/11 18:30:15 christos Exp $	*/
+/*	$NetBSD: eln.c,v 1.38 2024/05/17 02:59:08 christos Exp $	*/
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: eln.c,v 1.37 2022/01/11 18:30:15 christos Exp $");
+__RCSID("$NetBSD: eln.c,v 1.38 2024/05/17 02:59:08 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include 
@@ -365,6 +365,10 @@ el_line(EditLine *el)
 	size_t offset;
 	const wchar_t *p;
 
+	if (el->el_flags & FROM_ELLINE)
+		return info;
+
+	el->el_flags |= FROM_ELLINE;
 	info->buffer   = ct_encode_string(winfo->buffer, >el_lgcyconv);
 
 	offset = 0;
@@ -377,6 +381,10 @@ el_line(EditLine *el)
 		offset += ct_enc_width(*p);
 	info->lastchar = info->buffer + offset;
 
+	if (el->el_chared.c_resizefun)  
+		(*el->el_chared.c_resizefun)(el, el->el_chared.c_resizearg);
+	el->el_flags &= ~FROM_ELLINE;
+
 	return info;
 }
 



CVS commit: src/lib/libedit

2024-05-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Fri May 17 02:59:09 UTC 2024

Modified Files:
src/lib/libedit: el.h eln.c

Log Message:
When calling el_line make sure that we call the resizing function
callback because el_line updates the legacy LineInfo structure and
we need to notify that the cached copy of the the buffer has changed.
Of course the resizing function can call el_line itself to update
the buffer, so prevent recursion. Bug found by Peter Rufer at Arista.


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/lib/libedit/el.h
cvs rdiff -u -r1.37 -r1.38 src/lib/libedit/eln.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/arch/riscv

2024-05-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri May 17 02:11:07 UTC 2024

Modified Files:
src/lib/libm/arch/riscv: fenv.c

Log Message:
riscv: Make feraiseexcept actually raise the given exceptions.

Doing

fexcept_t ex = 0;
fesetexceptflag(, excepts);

has the effect of _clearing_ all the exceptions in excepts.  Using
fesetexceptflag doesn't make this easier, because we would have to
record which exceptions were already raised.  So just set the fflags
bits in the fcsr register directly.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/riscv/fenv.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/arch/riscv/fenv.c
diff -u src/lib/libm/arch/riscv/fenv.c:1.4 src/lib/libm/arch/riscv/fenv.c:1.5
--- src/lib/libm/arch/riscv/fenv.c:1.4	Sun May  7 12:41:47 2023
+++ src/lib/libm/arch/riscv/fenv.c	Fri May 17 02:11:07 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: fenv.c,v 1.4 2023/05/07 12:41:47 skrll Exp $ */
+/* $NetBSD: fenv.c,v 1.5 2024/05/17 02:11:07 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: fenv.c,v 1.4 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fenv.c,v 1.5 2024/05/17 02:11:07 riastradh Exp $");
 
 #include "namespace.h"
 
@@ -114,19 +114,15 @@ fegetexceptflag(fexcept_t *flagp, int ex
  * The standard explicitly allows us to execute an instruction that has the
  * exception as a side effect, but we choose to manipulate the status register
  * directly.
- *
- * The validation of input is being deferred to fesetexceptflag().
  */
 int
 feraiseexcept(int excepts)
 {
-	fexcept_t ex = 0;
 
 	_DIAGASSERT((excepts & ~FE_ALL_EXCEPT) == 0);
 
 	excepts &= FE_ALL_EXCEPT;
-	fesetexceptflag(, excepts);
-	/* XXX exception magic XXX */
+	fcsr_fflags_write(fcsr_fflags_read() | excepts);
 
 	/* Success */
 	return 0;



CVS commit: src/lib/libm/arch/riscv

2024-05-16 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Fri May 17 02:11:07 UTC 2024

Modified Files:
src/lib/libm/arch/riscv: fenv.c

Log Message:
riscv: Make feraiseexcept actually raise the given exceptions.

Doing

fexcept_t ex = 0;
fesetexceptflag(, excepts);

has the effect of _clearing_ all the exceptions in excepts.  Using
fesetexceptflag doesn't make this easier, because we would have to
record which exceptions were already raised.  So just set the fflags
bits in the fcsr register directly.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/riscv/fenv.c

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



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 01:02:35 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetsticky.c fpsetsticky.c

Log Message:
riscv: More shiftiness reduction around FCSR in libc.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetsticky.c \
src/lib/libc/arch/riscv/gen/fpsetsticky.c

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



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 01:02:35 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetsticky.c fpsetsticky.c

Log Message:
riscv: More shiftiness reduction around FCSR in libc.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetsticky.c \
src/lib/libc/arch/riscv/gen/fpsetsticky.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/riscv/gen/fpgetsticky.c
diff -u src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.3 src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.4
--- src/lib/libc/arch/riscv/gen/fpgetsticky.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpgetsticky.c	Thu May 16 01:02:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpgetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpgetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpgetsticky,_fpgetsticky)
 fp_except
 fpgetsticky(void)
 {
-	return __SHIFTOUT(fcsr_read(), FCSR_FFLAGS);
+	return fcsr_fflags_read();
 }
Index: src/lib/libc/arch/riscv/gen/fpsetsticky.c
diff -u src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.3 src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetsticky.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetsticky.c	Thu May 16 01:02:35 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.4 2024/05/16 01:02:35 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -48,5 +48,5 @@ __weak_alias(fpsetsticky,_fpsetsticky)
 fp_except
 fpsetsticky(fp_except mask)
 {
-	return __SHIFTOUT(fcsr_fflags_write(__SHIFTIN(mask, FCSR_FFLAGS)), FCSR_FFLAGS);
+	return fcsr_fflags_write(mask);
 }



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 00:56:11 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetround.c fpsetround.c

Log Message:
riscv: Nix shifting around FRRM and FSRM in libc too.

These read and write the floating-point rounding mode directly, not
the whole floating-point control and status register.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetround.c \
src/lib/libc/arch/riscv/gen/fpsetround.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/riscv/gen/fpgetround.c
diff -u src/lib/libc/arch/riscv/gen/fpgetround.c:1.3 src/lib/libc/arch/riscv/gen/fpgetround.c:1.4
--- src/lib/libc/arch/riscv/gen/fpgetround.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpgetround.c	Thu May 16 00:56:11 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpgetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpgetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpgetround,_fpgetround)
 fp_rnd
 fpgetround(void)
 {
-	return __SHIFTOUT(fcsr_read(), FCSR_FRM);
+	return fcsr_frm_read();
 }
Index: src/lib/libc/arch/riscv/gen/fpsetround.c
diff -u src/lib/libc/arch/riscv/gen/fpsetround.c:1.3 src/lib/libc/arch/riscv/gen/fpsetround.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetround.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetround.c	Thu May 16 00:56:11 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.4 2024/05/16 00:56:11 riastradh Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,5 +47,5 @@ __weak_alias(fpsetround,_fpsetround)
 fp_rnd
 fpsetround(fp_rnd rnd_dir)
 {
-	return __SHIFTOUT(fcsr_frm_write(__SHIFTIN(rnd_dir, FCSR_FRM)), FCSR_FRM);
+	return fcsr_frm_write(rnd_dir);
 }



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May 16 00:56:11 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpgetround.c fpsetround.c

Log Message:
riscv: Nix shifting around FRRM and FSRM in libc too.

These read and write the floating-point rounding mode directly, not
the whole floating-point control and status register.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpgetround.c \
src/lib/libc/arch/riscv/gen/fpsetround.c

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



CVS commit: src/lib/libc/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May 15 13:12:04 UTC 2024

Modified Files:
src/lib/libc/gen: usleep.3

Log Message:
usleep(3): Note the historical rake that was stepped upon.

PR 58184


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/usleep.3

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/gen/usleep.3
diff -u src/lib/libc/gen/usleep.3:1.21 src/lib/libc/gen/usleep.3:1.22
--- src/lib/libc/gen/usleep.3:1.21	Mon Apr 22 21:25:29 2024
+++ src/lib/libc/gen/usleep.3	Wed May 15 13:12:04 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: usleep.3,v 1.21 2024/04/22 21:25:29 jdolecek Exp $
+.\"	$NetBSD: usleep.3,v 1.22 2024/05/15 13:12:04 riastradh Exp $
 .\"
 .\" Copyright (c) 1986, 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
@@ -99,3 +99,17 @@ The
 .Fn usleep
 function appeared in
 .Bx 4.3 .
+.Sh CAVEATS
+In
+.St -p1003.1-2004 ,
+.Nm
+was limited to values of
+.Fa microseconds
+less than one million.
+Some implementations, including
+.Nx
+before 10.1, fail immediately with
+.Er EINVAL
+\(em and don't sleep at all \(em if
+.Fa microseconds
+is one million or greater.



CVS commit: src/lib/libc/gen

2024-05-15 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May 15 13:12:04 UTC 2024

Modified Files:
src/lib/libc/gen: usleep.3

Log Message:
usleep(3): Note the historical rake that was stepped upon.

PR 58184


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/usleep.3

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-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May 14 14:34:35 UTC 2024

Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm: m.powerpc64.expsym

Log Message:
libm: Fix powerpc64 build.

- Include fenv.c and fma(3) symbols (which just use the FMADD
  instruction).
- Note the .FN symbols in libm for the asm functions.  The FN symbols
  point at the function _descriptors_; the .FN symbols point at the
  first instruction of the function.

XXX Unclear why we have the .FN symbols for asm functions but not for
C functions.  I'm not sure we should be exporting them.


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.powerpc64.expsym

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/Makefile
diff -u src/lib/libm/Makefile:1.234 src/lib/libm/Makefile:1.235
--- src/lib/libm/Makefile:1.234	Thu May  9 14:42:09 2024
+++ src/lib/libm/Makefile	Tue May 14 14:34:35 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.234 2024/05/09 14:42:09 riastradh Exp $
+#  $NetBSD: Makefile,v 1.235 2024/05/14 14:34:35 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -194,7 +194,7 @@ ARCH_SRCS += s_fmax.S s_fmaxf.S
 ARCH_SRCS += s_fmin.S s_fminf.S
 .endif
 
-.elif (${LIBC_MACHINE_ARCH} == "powerpc")
+.elif (${LIBC_MACHINE_CPU} == "powerpc")
 .PATH:	${.CURDIR}/arch/powerpc
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c

Added files:

Index: src/lib/libm/m.powerpc64.expsym
diff -u /dev/null src/lib/libm/m.powerpc64.expsym:1.1
--- /dev/null	Tue May 14 14:34:35 2024
+++ src/lib/libm/m.powerpc64.expsym	Tue May 14 14:34:35 2024
@@ -0,0 +1,479 @@
+._fini
+._init
+.fma
+.fmaf
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divtc3
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__multc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_finite
+_finitef
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sin
+_sincos
+_sincosf
+_sincosl
+_sinf
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tan
+_tanf
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept

CVS commit: src/lib/libm

2024-05-14 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May 14 14:34:35 UTC 2024

Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm: m.powerpc64.expsym

Log Message:
libm: Fix powerpc64 build.

- Include fenv.c and fma(3) symbols (which just use the FMADD
  instruction).
- Note the .FN symbols in libm for the asm functions.  The FN symbols
  point at the function _descriptors_; the .FN symbols point at the
  first instruction of the function.

XXX Unclear why we have the .FN symbols for asm functions but not for
C functions.  I'm not sure we should be exporting them.


To generate a diff of this commit:
cvs rdiff -u -r1.234 -r1.235 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.powerpc64.expsym

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



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:40:41 UTC 2024

Modified Files:
src/lib/libcurses: curses_input.3

Log Message:
curses_input(3): bump date for define_key() change


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/curses_input.3

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/curses_input.3
diff -u src/lib/libcurses/curses_input.3:1.31 src/lib/libcurses/curses_input.3:1.32
--- src/lib/libcurses/curses_input.3:1.31	Tue May 14 10:22:48 2024
+++ src/lib/libcurses/curses_input.3	Tue May 14 10:40:41 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_input.3,v 1.31 2024/05/14 10:22:48 uwe Exp $
+.\"	$NetBSD: curses_input.3,v 1.32 2024/05/14 10:40:41 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"
-.Dd May 16, 2022
+.Dd May 14, 2024
 .Dt CURSES_INPUT 3
 .Os
 .Sh NAME



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:40:41 UTC 2024

Modified Files:
src/lib/libcurses: curses_input.3

Log Message:
curses_input(3): bump date for define_key() change


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/curses_input.3

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



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:38:16 UTC 2024

Modified Files:
src/lib/libcurses: curses_termcap.3

Log Message:
curses_termcap(3): fullname() termbuf argument is const


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/curses_termcap.3

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/curses_termcap.3
diff -u src/lib/libcurses/curses_termcap.3:1.6 src/lib/libcurses/curses_termcap.3:1.7
--- src/lib/libcurses/curses_termcap.3:1.6	Sat Apr 21 12:27:28 2012
+++ src/lib/libcurses/curses_termcap.3	Tue May 14 10:38:16 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_termcap.3,v 1.6 2012/04/21 12:27:28 roy Exp $
+.\"	$NetBSD: curses_termcap.3,v 1.7 2024/05/14 10:38:16 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -30,7 +30,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\"
-.Dd October 4, 2011
+.Dd May 14, 2024
 .Dt CURSES_TERMCAP 3
 .Os
 .Sh NAME
@@ -42,7 +42,7 @@
 .Sh SYNOPSIS
 .In curses.h
 .Ft char *
-.Fn fullname "char *termbuf" "char *name"
+.Fn fullname "const char *termbuf" "char *name"
 .Sh DESCRIPTION
 The
 .Fn fullname



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:38:16 UTC 2024

Modified Files:
src/lib/libcurses: curses_termcap.3

Log Message:
curses_termcap(3): fullname() termbuf argument is const


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/curses_termcap.3

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



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:22:48 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_input.3 getch.c

Log Message:
curse: constify define_key() argument

define_key() is ncurses extension and ncurses defines its first
argument as "const char *".  Follow suit.

PR lib/58254


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/lib/libcurses/curses.h
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/curses_input.3
cvs rdiff -u -r1.78 -r1.79 src/lib/libcurses/getch.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/curses.h
diff -u src/lib/libcurses/curses.h:1.130 src/lib/libcurses/curses.h:1.131
--- src/lib/libcurses/curses.h:1.130	Sat Feb 13 10:37:00 2021
+++ src/lib/libcurses/curses.h	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses.h,v 1.130 2021/02/13 10:37:00 rillig Exp $	*/
+/*	$NetBSD: curses.h,v 1.131 2024/05/14 10:22:48 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -652,7 +652,7 @@ int	 copywin(const WINDOW *, WINDOW *, i
 int	 curs_set(int);
 int	 def_prog_mode(void);
 int	 def_shell_mode(void);
-int  define_key(char *, int);
+int  define_key(const char *, int);
 int	 delay_output(int);
 void delscreen(SCREEN *);
 int	 delwin(WINDOW *);

Index: src/lib/libcurses/curses_input.3
diff -u src/lib/libcurses/curses_input.3:1.30 src/lib/libcurses/curses_input.3:1.31
--- src/lib/libcurses/curses_input.3:1.30	Sat May 21 12:34:44 2022
+++ src/lib/libcurses/curses_input.3	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: curses_input.3,v 1.30 2022/05/21 12:34:44 uwe Exp $
+.\"	$NetBSD: curses_input.3,v 1.31 2024/05/14 10:22:48 uwe Exp $
 .\"
 .\" Copyright (c) 2002
 .\"	Brett Lymn (bl...@netbsd.org, brett_l...@yahoo.com.au)
@@ -76,7 +76,7 @@
 .Ft int
 .Fn has_key "int key_symbol"
 .Ft int
-.Fn define_key "char *sequence" "int key_symbol"
+.Fn define_key "const char *sequence" "int key_symbol"
 .Ft int
 .Fn getnstr "char *str" "int limit"
 .Ft int

Index: src/lib/libcurses/getch.c
diff -u src/lib/libcurses/getch.c:1.78 src/lib/libcurses/getch.c:1.79
--- src/lib/libcurses/getch.c:1.78	Tue Oct 19 06:37:29 2021
+++ src/lib/libcurses/getch.c	Tue May 14 10:22:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: getch.c,v 1.78 2021/10/19 06:37:29 blymn Exp $	*/
+/*	$NetBSD: getch.c,v 1.79 2024/05/14 10:22:48 uwe Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.78 2021/10/19 06:37:29 blymn Exp $");
+__RCSID("$NetBSD: getch.c,v 1.79 2024/05/14 10:22:48 uwe Exp $");
 #endif
 #endif	/* not lint */
 
@@ -211,7 +211,7 @@ static wchar_t	inbuf[INBUF_SZ];
 static int	start, end, working; /* pointers for manipulating inbuf data */
 
 /* prototypes for private functions */
-static void add_key_sequence(SCREEN *screen, char *sequence, int key_type);
+static void add_key_sequence(SCREEN *screen, const char *sequence, int key_type);
 static key_entry_t *add_new_key(keymap_t *current, char ch, int key_type,
 int symbol);
 static void delete_key_sequence(keymap_t *current, int key_type);
@@ -370,7 +370,7 @@ delete_key_sequence(keymap_t *current, i
  * for the given key symbol.
  */
 static void
-add_key_sequence(SCREEN *screen, char *sequence, int key_type)
+add_key_sequence(SCREEN *screen, const char *sequence, int key_type)
 {
 	key_entry_t *tmp_key;
 	keymap_t *current;
@@ -762,7 +762,7 @@ do_keyok(keymap_t *current, int key_type
  *
  */
 int
-define_key(char *sequence, int symbol)
+define_key(const char *sequence, int symbol)
 {
 
 	if (symbol <= 0 || _cursesi_screen == NULL)



CVS commit: src/lib/libcurses

2024-05-14 Thread Valery Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue May 14 10:22:48 UTC 2024

Modified Files:
src/lib/libcurses: curses.h curses_input.3 getch.c

Log Message:
curse: constify define_key() argument

define_key() is ncurses extension and ncurses defines its first
argument as "const char *".  Follow suit.

PR lib/58254


To generate a diff of this commit:
cvs rdiff -u -r1.130 -r1.131 src/lib/libcurses/curses.h
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/curses_input.3
cvs rdiff -u -r1.78 -r1.79 src/lib/libcurses/getch.c

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



CVS commit: src/lib/libc/gdtoa

2024-05-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon May 13 21:17:24 UTC 2024

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

Log Message:
libc/hdtoa: suppress lint warning about possible accuracy loss

on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long'
to 'char' may lose accuracy [132]


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gdtoa/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/gdtoa/Makefile.inc
diff -u src/lib/libc/gdtoa/Makefile.inc:1.13 src/lib/libc/gdtoa/Makefile.inc:1.14
--- src/lib/libc/gdtoa/Makefile.inc:1.13	Sat Oct  7 12:15:53 2023
+++ src/lib/libc/gdtoa/Makefile.inc	Mon May 13 21:17:24 2024
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.inc,v 1.13 2023/10/07 12:15:53 rin Exp $
+#	$NetBSD: Makefile.inc,v 1.14 2024/05/13 21:17:24 rillig Exp $
 
 # gdtoa sources
 .PATH: ${.CURDIR}/gdtoa
@@ -44,3 +44,5 @@ SRCS+=	dmisc.c \
 .if ${MACHINE_ARCH} != "vax"
 SRCS+=	strtord.c
 .endif
+
+LINTFLAGS.hdtoa.c+=	-X 132	# conversion may lose accuracy



CVS commit: src/lib/libc/gdtoa

2024-05-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Mon May 13 21:17:24 UTC 2024

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

Log Message:
libc/hdtoa: suppress lint warning about possible accuracy loss

on sparc64: hdtoa.c(340): warning: conversion from 'unsigned long'
to 'char' may lose accuracy [132]


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/gdtoa/Makefile.inc

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



CVS commit: src/lib/libc/inet

2024-05-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun May 12 23:58:18 UTC 2024

Modified Files:
src/lib/libc/inet: inet_net_pton.c

Log Message:
s/Firey/Fiery/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/inet/inet_net_pton.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/inet/inet_net_pton.c
diff -u src/lib/libc/inet/inet_net_pton.c:1.6 src/lib/libc/inet/inet_net_pton.c:1.7
--- src/lib/libc/inet/inet_net_pton.c:1.6	Mon Feb  5 21:46:05 2024
+++ src/lib/libc/inet/inet_net_pton.c	Sun May 12 23:58:18 2024
@@ -20,7 +20,7 @@
 #if 0
 static const char rcsid[] = "Id: inet_net_pton.c,v 1.4.2.1 2002/08/02 02:17:21 marka Exp ";
 #else
-__RCSID("$NetBSD: inet_net_pton.c,v 1.6 2024/02/05 21:46:05 andvar Exp $");
+__RCSID("$NetBSD: inet_net_pton.c,v 1.7 2024/05/12 23:58:18 msaitoh Exp $");
 #endif
 #endif
 
@@ -150,7 +150,7 @@ inet_net_pton_ipv4(const char *src, u_ch
 			goto enoent;
 	}
 
-	/* Firey death and destruction unless we prefetched EOS. */
+	/* Fiery death and destruction unless we prefetched EOS. */
 	if (ch != '\0')
 		goto enoent;
 



CVS commit: src/lib/libc/inet

2024-05-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Sun May 12 23:58:18 UTC 2024

Modified Files:
src/lib/libc/inet: inet_net_pton.c

Log Message:
s/Firey/Fiery/ in comment.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libc/inet/inet_net_pton.c

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



CVS commit: src/lib/libc/gen

2024-05-12 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun May 12 10:58:58 UTC 2024

Modified Files:
src/lib/libc/gen: pwcache.c

Log Message:
libc/pwcache.c: remove stray semicolon from do-while-0 macro


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/pwcache.c

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



CVS commit: src/lib/libc/gen

2024-05-12 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun May 12 10:58:58 UTC 2024

Modified Files:
src/lib/libc/gen: pwcache.c

Log Message:
libc/pwcache.c: remove stray semicolon from do-while-0 macro


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libc/gen/pwcache.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/gen/pwcache.c
diff -u src/lib/libc/gen/pwcache.c:1.34 src/lib/libc/gen/pwcache.c:1.35
--- src/lib/libc/gen/pwcache.c:1.34	Tue Apr 19 20:32:15 2022
+++ src/lib/libc/gen/pwcache.c	Sun May 12 10:58:58 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: pwcache.c,v 1.34 2022/04/19 20:32:15 rillig Exp $	*/
+/*	$NetBSD: pwcache.c,v 1.35 2024/05/12 10:58:58 rillig Exp $	*/
 
 /*-
  * Copyright (c) 1992 Keith Muller.
@@ -74,7 +74,7 @@
 #if 0
 static char sccsid[] = "@(#)cache.c	8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pwcache.c,v 1.34 2022/04/19 20:32:15 rillig Exp $");
+__RCSID("$NetBSD: pwcache.c,v 1.35 2024/05/12 10:58:58 rillig Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -524,7 +524,7 @@ gid_from_group(const char *name, gid_t *
 			arr = NULL;			\
 		}	\
 		fail = 0;\
-	} while (0);
+	} while (0)
 
 int
 pwcache_userdb(



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat May 11 07:40:18 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpsetmask.c

Log Message:
Do the '#if FCSR_FMASK == 0' thing that fpgetmask.c does for consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpsetmask.c

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



CVS commit: src/lib/libc/arch/riscv/gen

2024-05-11 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sat May 11 07:40:18 UTC 2024

Modified Files:
src/lib/libc/arch/riscv/gen: fpsetmask.c

Log Message:
Do the '#if FCSR_FMASK == 0' thing that fpgetmask.c does for consistency.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libc/arch/riscv/gen/fpsetmask.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/riscv/gen/fpsetmask.c
diff -u src/lib/libc/arch/riscv/gen/fpsetmask.c:1.3 src/lib/libc/arch/riscv/gen/fpsetmask.c:1.4
--- src/lib/libc/arch/riscv/gen/fpsetmask.c:1.3	Sun May  7 12:41:47 2023
+++ src/lib/libc/arch/riscv/gen/fpsetmask.c	Sat May 11 07:40:18 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: fpsetmask.c,v 1.3 2023/05/07 12:41:47 skrll Exp $	*/
+/*	$NetBSD: fpsetmask.c,v 1.4 2024/05/11 07:40:18 skrll Exp $	*/
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.3 2023/05/07 12:41:47 skrll Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.4 2024/05/11 07:40:18 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
@@ -47,9 +47,9 @@ __weak_alias(fpsetmask,_fpsetmask)
 fp_except
 fpsetmask(fp_except mask)
 {
-#if 0
-	return __SHIFTOUT(fcsr_fmask_write(__SHIFTIN(mask, FCSR_MASK)), FCSR_FMASK);
-#else
+#if FCSR_FMASK == 0
 	return 0;
+#else
+	return __SHIFTOUT(fcsr_fmask_write(__SHIFTIN(mask, FCSR_MASK)), FCSR_FMASK);
 #endif
 }



CVS commit: src/lib/libc/net

2024-05-09 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Thu May  9 21:28:00 UTC 2024

Modified Files:
src/lib/libc/net: getaddrinfo.3

Log Message:
Document that freeaddrinfo(NULL) dumps core.

A source code comment already said this, but it's easier to
find in a man page.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libc/net/getaddrinfo.3

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



CVS commit: src/lib/libm/compiler_rt

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 19:54:38 UTC 2024

Modified Files:
src/lib/libm/compiler_rt: Makefile.inc

Log Message:
libm: No divtc3.c or multc3.c in sparc64's compat sparc library.

compat/sparc64/sparc/bsd.sparc.mk doesn't define LIBC_MACHINE_CPU,
only LIBC_MACHINE_ARCH, so when the compat build gets to this
conditional, LIBC_MACHINE_CPU is just MACHINE_CPU, i.e., sparc64.

Since there's no `sparc64el' or `sparc64hf-el' that we need to
canonicalize by MACHINE_ARCH -> MACHINE_CPU, just use
LIBC_MACHINE_ARCH here.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/compiler_rt/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/libm/compiler_rt/Makefile.inc
diff -u src/lib/libm/compiler_rt/Makefile.inc:1.11 src/lib/libm/compiler_rt/Makefile.inc:1.12
--- src/lib/libm/compiler_rt/Makefile.inc:1.11	Wed Jun 16 05:21:08 2021
+++ src/lib/libm/compiler_rt/Makefile.inc	Thu May  9 19:54:38 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.inc,v 1.11 2021/06/16 05:21:08 rin Exp $
+# $NetBSD: Makefile.inc,v 1.12 2024/05/09 19:54:38 riastradh Exp $
 
 COMPILER_RT_DIR=	${NETBSDSRCDIR}/sys/external/bsd/compiler_rt
 COMPILER_RT_SRCDIR=	${COMPILER_RT_DIR}/dist
@@ -24,7 +24,7 @@ GENERIC_SRCS+= \
 	divsc3.c \
 	divxc3.c
 
-.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_CPU:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
+.if ${MACHINE_CPU} == "powerpc" || ${LIBC_MACHINE_ARCH:U} == "sparc64" || ${LIBC_MACHINE_CPU:U} == "aarch64"
 GENERIC_SRCS+= \
 	divtc3.c \
 	multc3.c



CVS commit: src/lib/libm/compiler_rt

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 19:54:38 UTC 2024

Modified Files:
src/lib/libm/compiler_rt: Makefile.inc

Log Message:
libm: No divtc3.c or multc3.c in sparc64's compat sparc library.

compat/sparc64/sparc/bsd.sparc.mk doesn't define LIBC_MACHINE_CPU,
only LIBC_MACHINE_ARCH, so when the compat build gets to this
conditional, LIBC_MACHINE_CPU is just MACHINE_CPU, i.e., sparc64.

Since there's no `sparc64el' or `sparc64hf-el' that we need to
canonicalize by MACHINE_ARCH -> MACHINE_CPU, just use
LIBC_MACHINE_ARCH here.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/compiler_rt/Makefile.inc

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-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 14:42:10 UTC 2024

Modified Files:
src/lib/libm: Makefile m.vax.expsym
Added Files:
src/lib/libm/noieee_src: n_frexpf.c n_frexpl.c

Log Message:
libm: Add frexpf and frexpl on VAX.

These are trivial subroutines, not symbol aliases, for separate
reasons:

- frexpf has a different ABI from frexp (float vs double argument)

- frexp is defined in libc, not libm, so although long double is the
  same as double, frexpl can't be an alias in libm of a symbol
  defined in libc


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.vax.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/noieee_src/n_frexpf.c \
src/lib/libm/noieee_src/n_frexpl.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/Makefile
diff -u src/lib/libm/Makefile:1.233 src/lib/libm/Makefile:1.234
--- src/lib/libm/Makefile:1.233	Thu May  9 00:04:23 2024
+++ src/lib/libm/Makefile	Thu May  9 14:42:09 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.233 2024/05/09 00:04:23 riastradh Exp $
+#  $NetBSD: Makefile,v 1.234 2024/05/09 14:42:09 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -359,8 +359,9 @@ COPTS.compat_cabsf.c=	${${ACTIVE_CC} == 
 # math routines for non-IEEE architectures.
 NOIEEE_SRCS = n_asincos.c n_acosh.c n_asinh.c n_atan.c n_atanh.c n_atanhf.c \
 	n_cosh.c \
-	n_erf.c n_exp.c n_exp2.c n_exp2f.c n_exp__E.c n_expm1.c n_floor.c \
-	n_fmod.c n_gamma.c n_ilogb.c \
+	n_erf.c n_exp.c n_exp2.c n_exp2f.c n_exp__E.c n_expm1.c \
+	n_floor.c n_fmod.c n_frexpf.c n_frexpl.c \
+	n_gamma.c n_ilogb.c \
 	n_lgamma.c n_j0.c n_j1.c n_jn.c n_log.c n_log10.c n_log1p.c \
 	n_log2.c n_log__L.c n_pow.c n_sinh.c n_tanh.c \
 	n_sincos.c n_sincos1.c n_tan.c \

Index: src/lib/libm/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.3 src/lib/libm/m.vax.expsym:1.4
--- src/lib/libm/m.vax.expsym:1.3	Wed May  8 02:08:11 2024
+++ src/lib/libm/m.vax.expsym	Thu May  9 14:42:09 2024
@@ -188,6 +188,8 @@ fminf
 fmod
 fmodf
 fmodl
+frexpf
+frexpl
 gamma
 hypot
 hypotf

Added files:

Index: src/lib/libm/noieee_src/n_frexpf.c
diff -u /dev/null src/lib/libm/noieee_src/n_frexpf.c:1.1
--- /dev/null	Thu May  9 14:42:10 2024
+++ src/lib/libm/noieee_src/n_frexpf.c	Thu May  9 14:42:10 2024
@@ -0,0 +1,52 @@
+/*	$NetBSD: n_frexpf.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $	*/
+
+/*-
+ * Copyright (c) 2024 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *notice, this list of conditions and the following disclaimer in the
+ *documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+ * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ * POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include 
+__RCSID("$NetBSD: n_frexpf.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $");
+
+#include "namespace.h"
+
+#include 
+
+float
+frexpf(float x, int *e)
+{
+
+	/*
+	 * We assume every value representable by float is also
+	 * representable by double.  The normalized result of frexp
+	 * differs only by the exponent, which is set to -1 (result
+	 * lies in [1/2, 1) or is zero), so it is also still
+	 * representable by float.
+	 *
+	 * This can't simply be a symbol alias, however, because the
+	 * ABI of float frexpf(float, int *) is different from the ABI
+	 * of double frexp(double, int *).
+	 */
+	return frexp(x, e);
+}
Index: src/lib/libm/noieee_src/n_frexpl.c
diff -u /dev/null src/lib/libm/noieee_src/n_frexpl.c:1.1
--- /dev/null	Thu May  9 14:42:10 2024
+++ src/lib/libm/noieee_src/n_frexpl.c	Thu May  9 14:42:10 2024
@@ -0,0 +1,50 @@
+/*	$NetBSD: n_frexpl.c,v 1.1 2024/05/09 14:42:10 riastradh Exp $	*/
+
+/*-
+ * Copyright (c) 2024 The NetBSD Foundation, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or 

CVS commit: src/lib/libm

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 14:42:10 UTC 2024

Modified Files:
src/lib/libm: Makefile m.vax.expsym
Added Files:
src/lib/libm/noieee_src: n_frexpf.c n_frexpl.c

Log Message:
libm: Add frexpf and frexpl on VAX.

These are trivial subroutines, not symbol aliases, for separate
reasons:

- frexpf has a different ABI from frexp (float vs double argument)

- frexp is defined in libc, not libm, so although long double is the
  same as double, frexpl can't be an alias in libm of a symbol
  defined in libc


To generate a diff of this commit:
cvs rdiff -u -r1.233 -r1.234 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.vax.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/noieee_src/n_frexpf.c \
src/lib/libm/noieee_src/n_frexpl.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/noieee_src

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 12:18:48 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_ilogb.c

Log Message:
libm: Define ilogbl as alias for ilogb on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_ilogb.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/noieee_src

2024-05-09 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 12:18:48 UTC 2024

Modified Files:
src/lib/libm/noieee_src: n_ilogb.c

Log Message:
libm: Define ilogbl as alias for ilogb on vax.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/noieee_src/n_ilogb.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/noieee_src/n_ilogb.c
diff -u src/lib/libm/noieee_src/n_ilogb.c:1.1 src/lib/libm/noieee_src/n_ilogb.c:1.2
--- src/lib/libm/noieee_src/n_ilogb.c:1.1	Wed Aug 24 09:08:50 2016
+++ src/lib/libm/noieee_src/n_ilogb.c	Thu May  9 12:18:48 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_ilogb.c,v 1.1 2016/08/24 09:08:50 christos Exp $	*/
+/*	$NetBSD: n_ilogb.c,v 1.2 2024/05/09 12:18:48 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -30,11 +30,15 @@
  */
 #include 
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: n_ilogb.c,v 1.1 2016/08/24 09:08:50 christos Exp $");
+__RCSID("$NetBSD: n_ilogb.c,v 1.2 2024/05/09 12:18:48 riastradh Exp $");
 #endif
 
 #include "math.h"
 
+#ifndef __HAVE_LONG_DOUBLE
+__strong_alias(ilogbl,ilogb)
+#endif
+
 int
 ilogb(double x)
 {



CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 00:04:23 UTC 2024

Modified Files:
src/lib/libm: Makefile m.mips.expsym
Added Files:
src/lib/libm: m.mips64.expsym

Log Message:
libm: Split expected symbols in mips further by 32-bit vs 64-bit.

32-bit has binary64 long double, same as double; 64-bit has binary128
long double, which is implemented with a few more symbols in libm
(which should maybe be hidden internal symbols, but let's get this
diagnostic measure in the build working before we think about
possibly deleting private symbols).


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.mips64.expsym

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-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Thu May  9 00:04:23 UTC 2024

Modified Files:
src/lib/libm: Makefile m.mips.expsym
Added Files:
src/lib/libm: m.mips64.expsym

Log Message:
libm: Split expected symbols in mips further by 32-bit vs 64-bit.

32-bit has binary64 long double, same as double; 64-bit has binary128
long double, which is implemented with a few more symbols in libm
(which should maybe be hidden internal symbols, but let's get this
diagnostic measure in the build working before we think about
possibly deleting private symbols).


To generate a diff of this commit:
cvs rdiff -u -r1.232 -r1.233 src/lib/libm/Makefile
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.mips64.expsym

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/Makefile
diff -u src/lib/libm/Makefile:1.232 src/lib/libm/Makefile:1.233
--- src/lib/libm/Makefile:1.232	Wed May  8 23:28:07 2024
+++ src/lib/libm/Makefile	Thu May  9 00:04:23 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.232 2024/05/08 23:28:07 riastradh Exp $
+#  $NetBSD: Makefile,v 1.233 2024/05/09 00:04:23 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -206,7 +206,6 @@ ARCH_SRCS += s_fma.S s_fmaf.S
 .PATH:	${.CURDIR}/arch/mips
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
-LIB_EXPSYM=	${LIB}.mipshf.expsym
 .endif
 .if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
 COMMON_SRCS+= s_nexttoward.c
@@ -214,6 +213,20 @@ COMMON_SRCS+= s_rintl.c
 .endif
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 
+.  if ${MKSOFTFLOAT} == "no"
+.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
+LIB_EXPSYM=	m.mips64hf.expsym
+.else
+LIB_EXPSYM=	m.mipshf.expsym
+.endif
+.  else
+.if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
+LIB_EXPSYM=	m.mips64.expsym
+.else
+LIB_EXPSYM=	m.mips.expsym
+.endif
+.  endif
+
 .elif (${LIBC_MACHINE_CPU} == "sh3")
 .PATH:	${.CURDIR}/arch/sh3
 .if ${MKSOFTFLOAT} == "no"

Index: src/lib/libm/m.mips.expsym
diff -u src/lib/libm/m.mips.expsym:1.3 src/lib/libm/m.mips.expsym:1.4
--- src/lib/libm/m.mips.expsym:1.3	Wed May  8 23:28:07 2024
+++ src/lib/libm/m.mips.expsym	Thu May  9 00:04:23 2024
@@ -1,26 +1,3 @@
-_ItL_aT
-_ItL_atanhi
-_ItL_atanlo
-_ItL_pS0
-_ItL_pS1
-_ItL_pS2
-_ItL_pS3
-_ItL_pS4
-_ItL_pS5
-_ItL_pS6
-_ItL_pS7
-_ItL_pS8
-_ItL_pS9
-_ItL_pi_lo
-_ItL_qS1
-_ItL_qS2
-_ItL_qS3
-_ItL_qS4
-_ItL_qS5
-_ItL_qS6
-_ItL_qS7
-_ItL_qS8
-_ItL_qS9
 __c99_cabs
 __c99_cabsf
 __c99_cabsl
@@ -73,7 +50,6 @@ __ieee754_sinh
 __ieee754_sinhf
 __ieee754_sqrt
 __ieee754_sqrtf
-__ieee754_sqrtl
 __ieee754_y0
 __ieee754_y0f
 __ieee754_y1
@@ -82,16 +58,13 @@ __ieee754_yn
 __ieee754_ynf
 __kernel_cos
 __kernel_cosf
-__kernel_cosl
 __kernel_rem_pio2
 __kernel_rem_pio2f
 __kernel_sin
 __kernel_sinf
-__kernel_sinl
 __kernel_standard
 __kernel_tan
 __kernel_tanf
-__kernel_tanl
 __log__D
 __muldc3
 __mulsc3
@@ -330,7 +303,6 @@ expm1
 expm1f
 expm1l
 fabsf
-fabsl
 fdim
 fdimf
 fdiml
@@ -378,7 +350,6 @@ hypotl
 ilogb
 ilogbf
 ilogbl
-imprecise_tgammal
 isinff
 isnanf
 j0

Added files:

Index: src/lib/libm/m.mips64.expsym
diff -u /dev/null src/lib/libm/m.mips64.expsym:1.1
--- /dev/null	Thu May  9 00:04:23 2024
+++ src/lib/libm/m.mips64.expsym	Thu May  9 00:04:23 2024
@@ -0,0 +1,503 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf

CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:31 UTC 2024

Added Files:
src/lib/libm: m.sh3.expsym

Log Message:
libm: Record expected symbols for sh3.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.sh3.expsym

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

Added files:

Index: src/lib/libm/m.sh3.expsym
diff -u /dev/null src/lib/libm/m.sh3.expsym:1.1
--- /dev/null	Wed May  8 23:28:31 2024
+++ src/lib/libm/m.sh3.expsym	Wed May  8 23:28:31 2024
@@ -0,0 +1,478 @@
+___ctors
+___ctors_end
+___dtors
+___dtors_end
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_finite
+_finitef
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sin
+_sincos
+_sincosf
+_sincosl
+_sinf
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tan
+_tanf
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv
+fesetexceptflag
+fesetround
+fetestexcept
+feupdateenv
+finite
+finitef
+floor
+floorf
+floorl
+fma
+fmaf
+fmal
+fmax
+fmaxf
+fmaxl
+fmin
+fminf
+fminl
+fmod
+fmodf
+fmodl
+frexp
+frexpf
+frexpl
+gamma
+gamma_r
+gammaf
+gammaf_r
+hypot
+hypotf
+hypotl
+ilogb
+ilogbf
+ilogbl
+isinff
+isnanf
+j0
+j0f
+j1
+j1f
+jn
+jnf
+ldexp
+ldexpf
+ldexpl
+lgamma
+lgamma_r
+lgammaf
+lgammaf_r
+lgammal
+lgammal_r
+llrint
+llrintf
+llrintl
+llround
+llroundf
+llroundl
+log
+log10
+log10f
+log10l
+log1p
+log1pf
+log1pl
+log2
+log2f
+log2l
+logb
+logbf
+logbl
+logf
+logl
+lrint
+lrintf
+lrintl
+lround
+lroundf
+lroundl
+matherr
+modf
+modff
+modfl
+nan
+nanf
+nanl
+nearbyint
+nearbyintf
+nearbyintl
+nextafter
+nextafterf
+nextafterl
+nexttoward
+nexttowardf
+nexttowardl
+pow
+powf
+powl
+remainder
+remainderf
+remainderl
+remquo
+remquof
+remquol
+rint
+rintf
+rintl
+round
+roundf
+roundl
+scalb
+scalbf
+scalbln
+scalblnf
+scalblnl
+scalbn
+scalbnf
+scalbnl
+signgam
+significand
+significandf
+sin
+sincos
+sincosf
+sincosl
+sinf
+sinh
+sinhf
+sinhl
+sinl
+sinpi
+sinpif
+sinpil
+sqrt
+sqrtf
+sqrtl
+tan
+tanf
+tanh
+tanhf
+tanhl
+tanl
+tanpi
+tanpif
+tanpil

CVS commit: src/lib/libm

2024-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:31 UTC 2024

Added Files:
src/lib/libm: m.sh3.expsym

Log Message:
libm: Record expected symbols for sh3.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.sh3.expsym

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-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:07 UTC 2024

Modified Files:
src/lib/libm: Makefile m.arm.expsym m.mips.expsym
Added Files:
src/lib/libm: m.armhf.expsym m.mipshf.expsym

Log Message:
libm: Split expected symbols on arm and mips by hard/soft float.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.arm.expsym src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.armhf.expsym \
src/lib/libm/m.mipshf.expsym

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-05-08 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 23:28:07 UTC 2024

Modified Files:
src/lib/libm: Makefile m.arm.expsym m.mips.expsym
Added Files:
src/lib/libm: m.armhf.expsym m.mipshf.expsym

Log Message:
libm: Split expected symbols on arm and mips by hard/soft float.


To generate a diff of this commit:
cvs rdiff -u -r1.231 -r1.232 src/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.arm.expsym src/lib/libm/m.mips.expsym
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.armhf.expsym \
src/lib/libm/m.mipshf.expsym

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/Makefile
diff -u src/lib/libm/Makefile:1.231 src/lib/libm/Makefile:1.232
--- src/lib/libm/Makefile:1.231	Sun May  5 22:52:19 2024
+++ src/lib/libm/Makefile	Wed May  8 23:28:07 2024
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.231 2024/05/05 22:52:19 riastradh Exp $
+#  $NetBSD: Makefile,v 1.232 2024/05/08 23:28:07 riastradh Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -81,6 +81,7 @@ COPTS+=	-mfloat-ieee -mieee-with-inexact
 .PATH.c: ${.CURDIR}/arch/arm
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS+= fenv.c
+LIB_EXPSYM=	${LIB}.armhf.expsym
 .endif
 .for f in fenv.c lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S
 COPTS.$f +=	-mfpu=vfp
@@ -205,6 +206,7 @@ ARCH_SRCS += s_fma.S s_fmaf.S
 .PATH:	${.CURDIR}/arch/mips
 .if ${MKSOFTFLOAT} == "no"
 COMMON_SRCS += fenv.c
+LIB_EXPSYM=	${LIB}.mipshf.expsym
 .endif
 .if ${MACHINE_MIPS64} && (!defined(CPUFLAGS) || empty(CPUFLAGS:M-mabi=32))
 COMMON_SRCS+= s_nexttoward.c

Index: src/lib/libm/m.arm.expsym
diff -u src/lib/libm/m.arm.expsym:1.2 src/lib/libm/m.arm.expsym:1.3
--- src/lib/libm/m.arm.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.arm.expsym	Wed May  8 23:28:07 2024
@@ -5,7 +5,6 @@ __divdc3
 __divsc3
 __divxc3
 __exp__D
-__fe_dfl_env
 __ieee754_acos
 __ieee754_acosf
 __ieee754_acosh
@@ -131,9 +130,6 @@ _feupdateenv
 _finite
 _finitef
 _floorl
-_fma
-_fmaf
-_fmal
 _fmodl
 _hypot
 _hypotf
Index: src/lib/libm/m.mips.expsym
diff -u src/lib/libm/m.mips.expsym:1.2 src/lib/libm/m.mips.expsym:1.3
--- src/lib/libm/m.mips.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.mips.expsym	Wed May  8 23:28:07 2024
@@ -1,3 +1,26 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
 __c99_cabs
 __c99_cabsf
 __c99_cabsl
@@ -5,7 +28,6 @@ __divdc3
 __divsc3
 __divxc3
 __exp__D
-__fe_dfl_env
 __ieee754_acos
 __ieee754_acosf
 __ieee754_acosh
@@ -51,6 +73,7 @@ __ieee754_sinh
 __ieee754_sinhf
 __ieee754_sqrt
 __ieee754_sqrtf
+__ieee754_sqrtl
 __ieee754_y0
 __ieee754_y0f
 __ieee754_y1
@@ -59,13 +82,16 @@ __ieee754_yn
 __ieee754_ynf
 __kernel_cos
 __kernel_cosf
+__kernel_cosl
 __kernel_rem_pio2
 __kernel_rem_pio2f
 __kernel_sin
 __kernel_sinf
+__kernel_sinl
 __kernel_standard
 __kernel_tan
 __kernel_tanf
+__kernel_tanl
 __log__D
 __muldc3
 __mulsc3
@@ -304,6 +330,7 @@ expm1
 expm1f
 expm1l
 fabsf
+fabsl
 fdim
 fdimf
 fdiml
@@ -351,6 +378,7 @@ hypotl
 ilogb
 ilogbf
 ilogbl
+imprecise_tgammal
 isinff
 isnanf
 j0

Added files:

Index: src/lib/libm/m.armhf.expsym
diff -u /dev/null src/lib/libm/m.armhf.expsym:1.1
--- /dev/null	Wed May  8 23:28:07 2024
+++ src/lib/libm/m.armhf.expsym	Wed May  8 23:28:07 2024
@@ -0,0 +1,476 @@
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cos
+_cosf
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 02:08:11 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/noieee_src: n_floor.c

Log Message:
libm: Add rintl, rintf to non-IEEE754 architectures.

While here, delete #ifdef to handle ns32k -- I don't think that's
gonna be relevant any time soon; in case you hadn't noticed, the
world has moved on from ns32k to vax by now.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/noieee_src/n_floor.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/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.2 src/lib/libm/m.vax.expsym:1.3
--- src/lib/libm/m.vax.expsym:1.2	Wed May  8 01:04:24 2024
+++ src/lib/libm/m.vax.expsym	Wed May  8 02:08:11 2024
@@ -229,6 +229,8 @@ pow
 powf
 powl
 rint
+rintf
+rintl
 round
 roundf
 roundl

Index: src/lib/libm/noieee_src/n_floor.c
diff -u src/lib/libm/noieee_src/n_floor.c:1.8 src/lib/libm/noieee_src/n_floor.c:1.9
--- src/lib/libm/noieee_src/n_floor.c:1.8	Sun Mar 16 09:51:39 2014
+++ src/lib/libm/noieee_src/n_floor.c	Wed May  8 02:08:11 2024
@@ -1,4 +1,4 @@
-/*  $NetBSD: n_floor.c,v 1.8 2014/03/16 09:51:39 martin Exp $ */
+/*  $NetBSD: n_floor.c,v 1.9 2024/05/08 02:08:11 riastradh Exp $ */
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -45,11 +45,10 @@ ic(L, 4503599627370496.0E0, 52, 1.0)			 
 #define	L	vccast(L)
 #endif
 
-#ifdef __weak_alias
-__weak_alias(ceill, ceil);
-__weak_alias(floorl, floor);
-__weak_alias(truncl, trunc);
-#endif
+__weak_alias(ceill, ceil)
+__weak_alias(floorl, floor)
+__weak_alias(truncl, trunc)
+__weak_alias(rintl, rint)
 
 /*
  * floor(x) := the largest integer no larger than x;
@@ -110,7 +109,6 @@ ceilf(float x)
 	return ceil((double)x);
 }
 
-#ifndef ns32000			/* rint() is in ./NATIONAL/support.s */
 /*
  * algorithm for rint(x) in pseudo-pascal form ...
  *
@@ -149,7 +147,12 @@ rint(double x)
 	t = x + s;/* x+s rounded to integer */
 	return (t - s);
 }
-#endif	/* not national */
+
+float
+rintf(float x)
+{
+	return rint((double)x);
+}
 
 long
 lrint(double x)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 02:08:11 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/noieee_src: n_floor.c

Log Message:
libm: Add rintl, rintf to non-IEEE754 architectures.

While here, delete #ifdef to handle ns32k -- I don't think that's
gonna be relevant any time soon; in case you hadn't noticed, the
world has moved on from ns32k to vax by now.

PR 57881


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/noieee_src/n_floor.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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:58:52 UTC 2024

Removed Files:
src/lib/libm/src: ldbl_dummy.c

Log Message:
libm: ldbl_dummy.c is no longer needed -- nix it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/lib/libm/src/ldbl_dummy.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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:58:52 UTC 2024

Removed Files:
src/lib/libm/src: ldbl_dummy.c

Log Message:
libm: ldbl_dummy.c is no longer needed -- nix it.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r0 src/lib/libm/src/ldbl_dummy.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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:42:23 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.riscv.expsym m.sparc64.expsym
src/lib/libm/src: s_cosl.c

Log Message:
libm: Don't export symbol `pio4' from s_cosl.c.

This appears to have been added unintentionally in the recent FreeBSD
long double update, and never went out in a release.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 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/m.aarch64.expsym
diff -u src/lib/libm/m.aarch64.expsym:1.2 src/lib/libm/m.aarch64.expsym:1.3
--- src/lib/libm/m.aarch64.expsym:1.2	Wed May  8 01:40:26 2024
+++ src/lib/libm/m.aarch64.expsym	Wed May  8 01:42:23 2024
@@ -450,7 +450,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl
Index: src/lib/libm/m.riscv.expsym
diff -u src/lib/libm/m.riscv.expsym:1.2 src/lib/libm/m.riscv.expsym:1.3
--- src/lib/libm/m.riscv.expsym:1.2	Wed May  8 01:40:27 2024
+++ src/lib/libm/m.riscv.expsym	Wed May  8 01:42:23 2024
@@ -435,7 +435,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl
Index: src/lib/libm/m.sparc64.expsym
diff -u src/lib/libm/m.sparc64.expsym:1.2 src/lib/libm/m.sparc64.expsym:1.3
--- src/lib/libm/m.sparc64.expsym:1.2	Wed May  8 01:40:27 2024
+++ src/lib/libm/m.sparc64.expsym	Wed May  8 01:42:23 2024
@@ -441,7 +441,6 @@ nextafterl
 nexttoward
 nexttowardf
 nexttowardl
-pio4
 pow
 powf
 powl

Index: src/lib/libm/src/s_cosl.c
diff -u src/lib/libm/src/s_cosl.c:1.2 src/lib/libm/src/s_cosl.c:1.3
--- src/lib/libm/src/s_cosl.c:1.2	Wed Apr  3 18:53:42 2024
+++ src/lib/libm/src/s_cosl.c	Wed May  8 01:42:23 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_cosl.c,v 1.2 2024/04/03 18:53:42 christos Exp $	*/
+/*	$NetBSD: s_cosl.c,v 1.3 2024/05/08 01:42:23 riastradh Exp $	*/
 
 /*-
  * SPDX-License-Identifier: BSD-2-Clause
@@ -29,7 +29,7 @@
  */
 
 #include 
-__RCSID("$NetBSD: s_cosl.c,v 1.2 2024/04/03 18:53:42 christos Exp $");
+__RCSID("$NetBSD: s_cosl.c,v 1.3 2024/05/08 01:42:23 riastradh Exp $");
 
 /*
  * Limited testing on pseudorandom numbers drawn within [-2e8:4e8] shows
@@ -62,7 +62,7 @@ pio4u = LD80C(0xc90fdaa22168c235, -1
 #elif LDBL_MANT_DIG == 113
 #include "../ld128/e_rem_pio2l.h"
 #include "../ld128/k_cosl.c"
-long double pio4 =  7.85398163397448309615660845819875721e-1L;
+static long double pio4 =  7.85398163397448309615660845819875721e-1L;
 #else
 #error "Unsupported long double format"
 #endif



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:42:23 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.riscv.expsym m.sparc64.expsym
src/lib/libm/src: s_cosl.c

Log Message:
libm: Don't export symbol `pio4' from s_cosl.c.

This appears to have been added unintentionally in the recent FreeBSD
long double update, and never went out in a release.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 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

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:40:27 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.m68k.expsym
m.mips.expsym m.powerpc.expsym m.riscv.expsym m.sparc.expsym
m.sparc64.expsym m.x86_64.expsym
src/lib/libm/noieee_src: n_sincos.c
src/lib/libm/src: namespace.h s_cos.c s_cosf.c s_finite.c s_finitef.c
s_sin.c s_sinf.c s_tan.c s_tanf.c

Log Message:
libm: Do the weak alias dance for sin/cos/tan/finite{,f}.

tan isn't used internally, but it's confusing for it to be treated
differently from sin and cos, and there's no harm in doing the dance
unnecessarily.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.ia64.expsym \
src/lib/libm/m.mips.expsym src/lib/libm/m.powerpc.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc.expsym \
src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/noieee_src/n_sincos.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libm/src/namespace.h
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_cos.c src/lib/libm/src/s_sin.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_cosf.c
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_finite.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/s_finitef.c \
src/lib/libm/src/s_sinf.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_tan.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_tanf.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/m.aarch64.expsym
diff -u src/lib/libm/m.aarch64.expsym:1.1 src/lib/libm/m.aarch64.expsym:1.2
--- src/lib/libm/m.aarch64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.aarch64.expsym	Wed May  8 01:40:26 2024
@@ -126,6 +126,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -159,6 +161,8 @@ _fesetexceptflag
 _fesetround
 _fetestexcept
 _feupdateenv
+_finite
+_finitef
 _floorl
 _fma
 _fmaf
@@ -193,9 +197,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -204,6 +210,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.alpha.expsym
diff -u src/lib/libm/m.alpha.expsym:1.1 src/lib/libm/m.alpha.expsym:1.2
--- src/lib/libm/m.alpha.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.alpha.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -120,6 +122,8 @@ _feholdexcept
 _fesetenv
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -149,9 +153,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -160,6 +166,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.arm.expsym
diff -u src/lib/libm/m.arm.expsym:1.1 src/lib/libm/m.arm.expsym:1.2
--- src/lib/libm/m.arm.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.arm.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -126,6 +128,8 @@ _fesetexceptflag
 _fesetround
 _fetestexcept
 _feupdateenv
+_finite
+_finitef
 _floorl
 _fma
 _fmaf
@@ -157,9 +161,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -168,6 +174,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.hppa.expsym
diff -u src/lib/libm/m.hppa.expsym:1.1 src/lib/libm/m.hppa.expsym:1.2
--- src/lib/libm/m.hppa.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.hppa.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -127,6 +129,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -156,9 +160,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 _sinhf
 _sinhl
@@ -167,6 +173,8 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
+_tanf
 _tanhl
 _tanl
 _tanpi
Index: src/lib/libm/m.ia64.expsym
diff -u src/lib/libm/m.ia64.expsym:1.1 src/lib/libm/m.ia64.expsym:1.2
--- src/lib/libm/m.ia64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.ia64.expsym	Wed May  8 01:40:26 2024
@@ -93,6 +93,8 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
+_cosf
 _cosh
 _coshf
 _coshl
@@ -127,6 +129,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
@@ -156,9 +160,11 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
+_sinf
 _sinh
 

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:40:27 UTC 2024

Modified Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.m68k.expsym
m.mips.expsym m.powerpc.expsym m.riscv.expsym m.sparc.expsym
m.sparc64.expsym m.x86_64.expsym
src/lib/libm/noieee_src: n_sincos.c
src/lib/libm/src: namespace.h s_cos.c s_cosf.c s_finite.c s_finitef.c
s_sin.c s_sinf.c s_tan.c s_tanf.c

Log Message:
libm: Do the weak alias dance for sin/cos/tan/finite{,f}.

tan isn't used internally, but it's confusing for it to be treated
differently from sin and cos, and there's no harm in doing the dance
unnecessarily.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.ia64.expsym \
src/lib/libm/m.mips.expsym src/lib/libm/m.powerpc.expsym \
src/lib/libm/m.riscv.expsym src/lib/libm/m.sparc.expsym \
src/lib/libm/m.sparc64.expsym
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.3 -r1.4 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/noieee_src/n_sincos.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libm/src/namespace.h
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/src/s_cos.c src/lib/libm/src/s_sin.c
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/src/s_cosf.c
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/src/s_finite.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/src/s_finitef.c \
src/lib/libm/src/s_sinf.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/src/s_tan.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/src/s_tanf.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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:05:25 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/m68k: s_finite.S

Log Message:
libm/arch/m68k: Do the weak alias dance for finite.

This is used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68k/s_finite.S

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/m.m68k.expsym
diff -u src/lib/libm/m.m68k.expsym:1.2 src/lib/libm/m.m68k.expsym:1.3
--- src/lib/libm/m.m68k.expsym:1.2	Wed May  8 01:04:40 2024
+++ src/lib/libm/m.m68k.expsym	Wed May  8 01:05:25 2024
@@ -147,6 +147,7 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
 _floorl
 _fmodl
 _hypot

Index: src/lib/libm/arch/m68k/s_finite.S
diff -u src/lib/libm/arch/m68k/s_finite.S:1.7 src/lib/libm/arch/m68k/s_finite.S:1.8
--- src/lib/libm/arch/m68k/s_finite.S:1.7	Thu Aug  7 16:44:41 2003
+++ src/lib/libm/arch/m68k/s_finite.S	Wed May  8 01:05:25 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_finite.S,v 1.7 2003/08/07 16:44:41 agc Exp $	*/
+/*	$NetBSD: s_finite.S,v 1.8 2024/05/08 01:05:25 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,11 +38,12 @@
 ;_sccsid:
 ;.asciz	"from: @(#)support.s	5.2 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_finite.S,v 1.7 2003/08/07 16:44:41 agc Exp $")
+RCSID("$NetBSD: s_finite.S,v 1.8 2024/05/08 01:05:25 riastradh Exp $")
 
 | finite(x)
 | returns the value TRUE if -INF < x < +INF and returns FALSE otherwise.
-ENTRY(finite)
+WEAK_ALIAS(finite, _finite)
+ENTRY(_finite)
 	movw	%sp@(4),%d0
 	movw	#0x7FF0,%d1
 	andw	%d1,%d0
@@ -51,3 +52,4 @@ ENTRY(finite)
 	extbl	%d0
 	negl	%d0
 	rts
+END(_finite)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:05:25 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/m68k: s_finite.S

Log Message:
libm/arch/m68k: Do the weak alias dance for finite.

This is used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68k/s_finite.S

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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:41 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/mc68881: s_cos.S s_sin.S s_tan.S

Log Message:
libm/arch/mc68881: Do the weak alias dance for sin, cos, tan.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/mc68881/s_cos.S \
src/lib/libm/arch/mc68881/s_sin.S src/lib/libm/arch/mc68881/s_tan.S

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/m.m68k.expsym
diff -u src/lib/libm/m.m68k.expsym:1.1 src/lib/libm/m.m68k.expsym:1.2
--- src/lib/libm/m.m68k.expsym:1.1	Tue May  7 23:13:32 2024
+++ src/lib/libm/m.m68k.expsym	Wed May  8 01:04:40 2024
@@ -112,6 +112,7 @@ _cchshf
 _cchshl
 _ceill
 _copysignl
+_cos
 _cosh
 _coshf
 _coshl
@@ -175,6 +176,7 @@ _scalblnl
 _scalbn
 _scalbnf
 _scalbnl
+_sin
 _sincos
 _sincosf
 _sincosl
@@ -186,6 +188,7 @@ _sinpi
 _sinpif
 _sinpil
 _sqrtl
+_tan
 _tanhl
 _tanl
 _tanpi

Index: src/lib/libm/arch/mc68881/s_cos.S
diff -u src/lib/libm/arch/mc68881/s_cos.S:1.6 src/lib/libm/arch/mc68881/s_cos.S:1.7
--- src/lib/libm/arch/mc68881/s_cos.S:1.6	Thu Aug  7 16:44:43 2003
+++ src/lib/libm/arch/mc68881/s_cos.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_cos.S,v 1.6 2003/08/07 16:44:43 agc Exp $	*/
+/*	$NetBSD: s_cos.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)sincos.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_cos.S,v 1.6 2003/08/07 16:44:43 agc Exp $")
+RCSID("$NetBSD: s_cos.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(cos)
+WEAK_ALIAS(cos, _cos)
+
+ENTRY(_cos)
 	fcosd	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(cos)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_cos)
Index: src/lib/libm/arch/mc68881/s_sin.S
diff -u src/lib/libm/arch/mc68881/s_sin.S:1.6 src/lib/libm/arch/mc68881/s_sin.S:1.7
--- src/lib/libm/arch/mc68881/s_sin.S:1.6	Thu Aug  7 16:44:43 2003
+++ src/lib/libm/arch/mc68881/s_sin.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_sin.S,v 1.6 2003/08/07 16:44:43 agc Exp $	*/
+/*	$NetBSD: s_sin.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)sincos.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_sin.S,v 1.6 2003/08/07 16:44:43 agc Exp $")
+RCSID("$NetBSD: s_sin.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(sin)
+WEAK_ALIAS(sin, _sin)
+
+ENTRY(_sin)
 	fsind	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(sin)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_sin)
Index: src/lib/libm/arch/mc68881/s_tan.S
diff -u src/lib/libm/arch/mc68881/s_tan.S:1.6 src/lib/libm/arch/mc68881/s_tan.S:1.7
--- src/lib/libm/arch/mc68881/s_tan.S:1.6	Thu Aug  7 16:44:44 2003
+++ src/lib/libm/arch/mc68881/s_tan.S	Wed May  8 01:04:40 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_tan.S,v 1.6 2003/08/07 16:44:44 agc Exp $	*/
+/*	$NetBSD: s_tan.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $	*/
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -38,9 +38,11 @@
 ;_sccsid:
 ;.asciz	"from: @(#)tan.s	5.1 (Berkeley) 5/17/90"
 
-RCSID("$NetBSD: s_tan.S,v 1.6 2003/08/07 16:44:44 agc Exp $")
+RCSID("$NetBSD: s_tan.S,v 1.7 2024/05/08 01:04:40 riastradh Exp $")
 
-ENTRY(tan)
+WEAK_ALIAS(tan, _tan)
+
+ENTRY(_tan)
 	ftand	%sp@(4),%fp0
 #ifndef __SVR4_ABI__
 	fmoved	%fp0,%sp@-
@@ -48,3 +50,4 @@ ENTRY(tan)
 	movel	%sp@+,%d1
 #endif
 	rts
+END(_tan)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:41 UTC 2024

Modified Files:
src/lib/libm: m.m68k.expsym
src/lib/libm/arch/mc68881: s_cos.S s_sin.S s_tan.S

Log Message:
libm/arch/mc68881: Do the weak alias dance for sin, cos, tan.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.m68k.expsym
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/mc68881/s_cos.S \
src/lib/libm/arch/mc68881/s_sin.S src/lib/libm/arch/mc68881/s_tan.S

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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:24 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/arch/vax: n_support.S

Log Message:
libm/arch/vax: Do the weak alias dance for finite, finitef.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_support.S

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/m.vax.expsym
diff -u src/lib/libm/m.vax.expsym:1.1 src/lib/libm/m.vax.expsym:1.2
--- src/lib/libm/m.vax.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.vax.expsym	Wed May  8 01:04:24 2024
@@ -42,6 +42,8 @@ _exp
 _expf
 _expl
 _fini
+_finite
+_finitef
 _hypot
 _hypotf
 _hypotl

Index: src/lib/libm/arch/vax/n_support.S
diff -u src/lib/libm/arch/vax/n_support.S:1.11 src/lib/libm/arch/vax/n_support.S:1.12
--- src/lib/libm/arch/vax/n_support.S:1.11	Tue May  7 15:15:10 2024
+++ src/lib/libm/arch/vax/n_support.S	Wed May  8 01:04:24 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_support.S,v 1.11 2024/05/07 15:15:10 riastradh Exp $	*/
+/*	$NetBSD: n_support.S,v 1.12 2024/05/08 01:04:24 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -103,10 +103,11 @@ END(logb)
  * long finite(double x);
  */
 #ifndef __GFLOAT__
-	.globl finitef
-finitef = finite
+WEAK_ALIAS(finitef, _finitef)
+STRONG_ALIAS(_finitef, _finite)
 #endif
-ENTRY(finite, 0)
+WEAK_ALIAS(finite, _finite)
+ENTRY(_finite, 0)
 	bicw3	$0x7f,4(%ap),%r0	# mask off the mantissa
 	cmpw	%r0,$0x8000		# to see if x is the reserved op
 	beql	1f			# if so, return FALSE (0)
@@ -114,7 +115,7 @@ ENTRY(finite, 0)
 	ret
 1:	clrl	%r0
 	ret
-END(finite)
+END(_finite)
 
 /* int isnan(double x);
  */



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:24 UTC 2024

Modified Files:
src/lib/libm: m.vax.expsym
src/lib/libm/arch/vax: n_support.S

Log Message:
libm/arch/vax: Do the weak alias dance for finite, finitef.

These are used internally.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.vax.expsym
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/vax/n_support.S

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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:03 UTC 2024

Modified Files:
src/lib/libm: m.i386.expsym m.x86_64.expsym
src/lib/libm/arch/i387: s_finite.S s_finitef.S

Log Message:
libm/arch/i387: Do the weak alias dance for finite and finitef.

These are used internally by some things.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/i387/s_finite.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/i387/s_finitef.S

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/m.i386.expsym
diff -u src/lib/libm/m.i386.expsym:1.1 src/lib/libm/m.i386.expsym:1.2
--- src/lib/libm/m.i386.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.i386.expsym	Wed May  8 01:04:03 2024
@@ -147,6 +147,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot
Index: src/lib/libm/m.x86_64.expsym
diff -u src/lib/libm/m.x86_64.expsym:1.1 src/lib/libm/m.x86_64.expsym:1.2
--- src/lib/libm/m.x86_64.expsym:1.1	Tue May  7 20:58:33 2024
+++ src/lib/libm/m.x86_64.expsym	Wed May  8 01:04:03 2024
@@ -147,6 +147,8 @@ _fesetround
 _fetestexcept
 _feupdateenv
 _fini
+_finite
+_finitef
 _floorl
 _fmodl
 _hypot

Index: src/lib/libm/arch/i387/s_finite.S
diff -u src/lib/libm/arch/i387/s_finite.S:1.7 src/lib/libm/arch/i387/s_finite.S:1.8
--- src/lib/libm/arch/i387/s_finite.S:1.7	Sat Jul 26 19:25:01 2003
+++ src/lib/libm/arch/i387/s_finite.S	Wed May  8 01:04:03 2024
@@ -5,9 +5,11 @@
 
 #include 
 
-RCSID("$NetBSD: s_finite.S,v 1.7 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_finite.S,v 1.8 2024/05/08 01:04:03 riastradh Exp $")
 
-ENTRY(finite)
+WEAK_ALIAS(finite, _finite)
+
+ENTRY(_finite)
 #ifdef __i386__
 	movl	8(%esp),%eax
 	andl	$0x7ff0, %eax
@@ -24,3 +26,4 @@ ENTRY(finite)
 	setne	%al
 #endif
 	ret
+END(_finite)

Index: src/lib/libm/arch/i387/s_finitef.S
diff -u src/lib/libm/arch/i387/s_finitef.S:1.6 src/lib/libm/arch/i387/s_finitef.S:1.7
--- src/lib/libm/arch/i387/s_finitef.S:1.6	Sat Jul 26 19:25:01 2003
+++ src/lib/libm/arch/i387/s_finitef.S	Wed May  8 01:04:03 2024
@@ -5,9 +5,11 @@
 
 #include 
 
-RCSID("$NetBSD: s_finitef.S,v 1.6 2003/07/26 19:25:01 salo Exp $")
+RCSID("$NetBSD: s_finitef.S,v 1.7 2024/05/08 01:04:03 riastradh Exp $")
 
-ENTRY(finitef)
+WEAK_ALIAS(finitef, _finitef)
+
+ENTRY(_finitef)
 #ifdef __i386__
 	movl	4(%esp),%eax
 	andl	$0x7f80, %eax
@@ -23,3 +25,4 @@ ENTRY(finitef)
 	setne	%al
 #endif
 	ret
+END(_finitef)



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Wed May  8 01:04:03 UTC 2024

Modified Files:
src/lib/libm: m.i386.expsym m.x86_64.expsym
src/lib/libm/arch/i387: s_finite.S s_finitef.S

Log Message:
libm/arch/i387: Do the weak alias dance for finite and finitef.

These are used internally by some things.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libm/m.i386.expsym \
src/lib/libm/m.x86_64.expsym
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/i387/s_finite.S
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/i387/s_finitef.S

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-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 23:13:33 UTC 2024

Added Files:
src/lib/libm: m.m68k.expsym

Log Message:
libm: Add expected symbols for m68k.

Not sure if this'll work for all ports -- we might need to split it
up finer-grained by different m68k flavours -- but let's give it a
try and see what breaks.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.m68k.expsym

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

Added files:

Index: src/lib/libm/m.m68k.expsym
diff -u /dev/null src/lib/libm/m.m68k.expsym:1.1
--- /dev/null	Tue May  7 23:13:33 2024
+++ src/lib/libm/m.m68k.expsym	Tue May  7 23:13:32 2024
@@ -0,0 +1,487 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divxc3
+__exp__D
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_fini
+_floorl
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_init
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sincos
+_sincosf
+_sincosl
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fabsl
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv
+fesetexceptflag
+fesetround
+fetestexcept
+feupdateenv
+finite
+finitef
+floor
+floorf
+floorl
+fma
+fmaf
+fmal
+fmax
+fmaxf
+fmaxl
+fmin
+fminf
+fminl
+fmod
+fmodf
+fmodl
+frexp
+frexpf
+frexpl
+gamma
+gamma_r
+gammaf
+gammaf_r
+hypot
+hypotf
+hypotl
+ilogb
+ilogbf
+ilogbl
+isinff
+isnanf
+j0
+j0f
+j1
+j1f
+jn
+jnf
+ldexp
+ldexpf
+ldexpl
+lgamma
+lgamma_r
+lgammaf
+lgammaf_r
+lgammal
+lgammal_r
+llrint
+llrintf
+llrintl
+llround
+llroundf
+llroundl
+log
+log10
+log10f
+log10l
+log1p
+log1pf
+log1pl
+log2
+log2f
+log2l
+logb
+logbf
+logbl
+logf
+logl
+lrint
+lrintf
+lrintl
+lround
+lroundf
+lroundl
+matherr
+modf
+modff
+modfl
+nan
+nanf
+nanl
+nearbyint
+nearbyintf
+nearbyintl
+nextafter
+nextafterf
+nextafterl
+nexttoward
+nexttowardf
+nexttowardl
+pow
+powf
+powl
+remainder
+remainderf
+remainderl
+remquo
+remquof
+remquol
+rint
+rintf
+rintl

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 23:13:33 UTC 2024

Added Files:
src/lib/libm: m.m68k.expsym

Log Message:
libm: Add expected symbols for m68k.

Not sure if this'll work for all ports -- we might need to split it
up finer-grained by different m68k flavours -- but let's give it a
try and see what breaks.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.m68k.expsym

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:51:20 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/fplsp_wrap.S

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/arch/m68060/Makefile.list
diff -u src/lib/libm/arch/m68060/Makefile.list:1.7 src/lib/libm/arch/m68060/Makefile.list:1.8
--- src/lib/libm/arch/m68060/Makefile.list:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/Makefile.list	Tue May  7 22:51:19 2024
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile.list,v 1.7 2024/05/07 21:18:47 riastradh Exp $
+# $NetBSD: Makefile.list,v 1.8 2024/05/07 22:51:19 riastradh Exp $
 
 #
 # list of M68060 architecture dependent files for libm.
 #
 # Created by:
 #
-#	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+#	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
 #
 # Do not edit manually!
 #
Index: src/lib/libm/arch/m68060/e_acos.S
diff -u src/lib/libm/arch/m68060/e_acos.S:1.7 src/lib/libm/arch/m68060/e_acos.S:1.8
--- src/lib/libm/arch/m68060/e_acos.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_acos.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_acos.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_acos.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acos
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+ *	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
  */
 
 #include 
@@ -21,3 +21,4 @@ ENTRY(__ieee754_acos)
 	movel %sp@+,%d1
 	rts
 #endif
+END(__ieee754_acos)
Index: src/lib/libm/arch/m68060/e_acosf.S
diff -u src/lib/libm/arch/m68060/e_acosf.S:1.7 src/lib/libm/arch/m68060/e_acosf.S:1.8
--- src/lib/libm/arch/m68060/e_acosf.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_acosf.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_acosf.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_acosf.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acosf
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+ *	NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp
  */
 
 #include 
@@ -19,3 +19,4 @@ ENTRY(__ieee754_acosf)
 	movel %sp@+,%d0
 	rts
 #endif
+END(__ieee754_acosf)
Index: src/lib/libm/arch/m68060/e_asin.S
diff -u src/lib/libm/arch/m68060/e_asin.S:1.7 src/lib/libm/arch/m68060/e_asin.S:1.8
--- src/lib/libm/arch/m68060/e_asin.S:1.7	Tue May  7 21:18:47 2024
+++ src/lib/libm/arch/m68060/e_asin.S	Tue May  7 22:51:19 2024
@@ -1,10 +1,10 @@
-/* $NetBSD: e_asin.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
+/* $NetBSD: e_asin.S,v 1.8 2024/05/07 22:51:19 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_asin
  * DO NOT EDIT - this file is automatically generated by:
  *
- *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:51:20 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/fplsp_wrap.S

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:30:17 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Delimit symbols with END.

This way we get symbol sizes in the ELF output.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:30:17 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Delimit symbols with END.

This way we get symbol sizes in the ELF output.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.15 src/lib/libm/arch/m68060/makeas.sh:1.16
--- src/lib/libm/arch/m68060/makeas.sh:1.15	Tue May  7 22:29:53 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:30:16 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -27,7 +27,7 @@
 
 set -eu
 
-RCSID='$NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.16 2024/05/07 22:30:16 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -102,6 +102,7 @@ ENTRY($NAME)
 	movel %sp@+,%d1
 	rts
 #endif
+END($NAME)
 EOJ
 	dummy "$@"
 }
@@ -146,6 +147,7 @@ ENTRY($NAME)
 	movel %sp@+,%d0
 	rts
 #endif
+END($NAME)
 EOJ
 	dummy "$@"
 }



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:29:53 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Create public weak aliases.

Use _foo for internal names, and weak alias foo when it's public like
sin/cos/tan.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.14 src/lib/libm/arch/m68060/makeas.sh:1.15
--- src/lib/libm/arch/m68060/makeas.sh:1.14	Tue May  7 22:19:42 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:29:53 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -27,7 +27,7 @@
 
 set -eu
 
-RCSID='$NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.15 2024/05/07 22:29:53 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -61,19 +61,20 @@ linebreak () {
 }
 
 mk () {
-	local NAME OFFS THESRC
+	local NAME ALIAS OFFS THESRC
 
 	NAME=$1
-	OFFS=$2
-	THESRC=$3.S
-	shift; shift; shift
+	ALIAS=$2
+	OFFS=$3
+	THESRC=$4.S
+	shift; shift; shift; shift
 
 	echo -n " " ${THESRC} >> $FILELIST
 	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
- * FPLSP wrapper for $NAME
+ * FPLSP wrapper for ${ALIAS:-$NAME}
  * DO NOT EDIT - this file is automatically generated by:
  *
  *	$RCSID
@@ -81,6 +82,14 @@ mk () {
 
 #include 
 
+EOJ
+	if [ -n "$ALIAS" ]; then
+		/bin/cat >> ${THESRC} << EOJ
+WEAK_ALIAS($ALIAS, $NAME)
+
+EOJ
+	fi
+	/bin/cat >> ${THESRC} << EOJ
 ENTRY($NAME)
 #ifdef __SVR4_ABI__
 	bral PIC_PLT(_C_LABEL(__fplsp060_$OFFS))
@@ -98,19 +107,20 @@ EOJ
 }
 
 mks () {
-	local NAME OFFS THESRC
+	local NAME ALIAS OFFS THESRC
 
 	NAME=$1
-	OFFS=$2
-	THESRC=$3.S
-	shift; shift; shift
+	ALIAS=$2
+	OFFS=$3
+	THESRC=$4.S
+	shift; shift; shift; shift
 
 	echo -n " " ${THESRC} >> $FILELIST
 	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
- * FPLSP wrapper for $NAME
+ * FPLSP wrapper for ${ALIAS:-$NAME}
  * DO NOT EDIT - this file is automatically generated by:
  *
  *	$RCSID
@@ -118,6 +128,14 @@ mks () {
 
 #include 
 
+EOJ
+	if [ -n "$ALIAS" ]; then
+		/bin/cat >> ${THESRC} << EOJ
+WEAK_ALIAS($ALIAS, $NAME)
+
+EOJ
+	fi
+	/bin/cat >> ${THESRC} << EOJ
 ENTRY($NAME)
 #ifdef __SVR4_ABI__
 	bral PIC_PLT(_C_LABEL(__fplsp060_$OFFS))
@@ -164,48 +182,48 @@ EOJ
 
 echo -n ARCH_SRCS = >> $FILELIST
 
-mks	__ieee754_acosf			e_acosf
-mk	__ieee754_acos		0008	e_acos
-mks	__ieee754_asinf		0018	e_asinf
-mk	__ieee754_asin		0020	e_asin
-linebreak
-mks	atanf			0030	s_atanf
-mk	atan			0038	s_atan
-mks	__ieee754_atanhf	0048	e_atanhf
-mk	__ieee754_atanh		0050	e_atanh
-linebreak
-mks	cosf			0060	s_cosf
-mk	cos			0068	s_cos
-mks	__ieee754_coshf		0078	e_coshf
-mk	__ieee754_cosh		0080	e_cosh
-linebreak
-mks	__ieee754_expf		0090	e_expf
-mk	__ieee754_exp		0098	e_exp
-mks	expm1f			00a8	s_expm1f
-mk	expm1			00b0	s_expm1
-linebreak
-mks	__ieee754_log10f	00f0	e_log10f
-mk	__ieee754_log10		00f8	e_log10
-mks	logbf			0108	s_logbf
-mk	logb			0110	s_logb
-linebreak
-mks	__ieee754_logf		0120	e_logf
-mk	__ieee754_log		0128	e_log
-mks	log1pf			0138	s_log1pf
-mk	log1p			0140	s_log1p
-linebreak
-mks	sinf			0198	s_sinf
-mk	sin			01a0	s_sin
-mks	__ieee754_sinhf		01c8	e_sinhf
-mk	__ieee754_sinh		01d0	e_sinh
-linebreak
-mks	tanf			01e0	s_tanf k_tanf
-mk	tan			01e8	s_tan k_tan
-mks	tanhf			01f8	s_tanhf
-mk	tanh			0200	s_tanh
+mks	__ieee754_acosf	''		e_acosf
+mk	__ieee754_acos	''	0008	e_acos
+mks	__ieee754_asinf	''	0018	e_asinf
+mk	__ieee754_asin	''	0020	e_asin
+linebreak
+mks	_atanf		atanf	0030	s_atanf
+mk	_atan		atan	0038	s_atan
+mks	__ieee754_atanhf ''	0048	e_atanhf
+mk	__ieee754_atanh	''	0050	e_atanh
+linebreak
+mks	_cosf		cosf	0060	s_cosf
+mk	_cos		cos	0068	s_cos
+mks	__ieee754_coshf	''	0078	e_coshf
+mk	__ieee754_cosh	''	0080	e_cosh
+linebreak
+mks	__ieee754_expf	''	0090	e_expf
+mk	__ieee754_exp	''	0098	e_exp
+mks	_expm1f		expm1f	00a8	s_expm1f
+mk	_expm1		expm1	00b0	s_expm1
+linebreak
+mks	__ieee754_log10f ''	00f0	e_log10f
+mk	__ieee754_log10	''	00f8	e_log10
+mks	_logbf		logbf	0108	s_logbf
+mk	_logb		logb	0110	s_logb
+linebreak
+mks	__ieee754_logf	''	0120	e_logf
+mk	__ieee754_log	''	0128	e_log
+mks	_log1pf		log1pf	0138	s_log1pf
+mk	_log1p		log1p	0140	s_log1p
+linebreak
+mks	_sinf		sinf	0198	s_sinf
+mk	_sin		sin	01a0	s_sin
+mks	__ieee754_sinhf	''	01c8	e_sinhf
+mk	__ieee754_sinh	''	01d0	e_sinh
+linebreak
+mks	_tanf		tanf	01e0	s_tanf k_tanf
+mk	_tan		tan	01e8	s_tan k_tan
+mks	_tanhf		tanhf	01f8	s_tanhf
+mk	_tanh		tanh	0200	s_tanh
 linebreak
-mks	__ieee754_sqrtf		02e8	e_sqrtf
-mk	__ieee754_sqrt		02f0	e_sqrt
+mks	__ieee754_sqrtf	''	02e8	e_sqrtf
+mk	

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:29:53 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Create public weak aliases.

Use _foo for internal names, and weak alias foo when it's public like
sin/cos/tan.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:19:42 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use `set -eu' to detect script mistakes.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.13 src/lib/libm/arch/m68060/makeas.sh:1.14
--- src/lib/libm/arch/m68060/makeas.sh:1.13	Tue May  7 22:18:19 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:19:42 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,9 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $'
+set -eu
+
+RCSID='$NetBSD: makeas.sh,v 1.14 2024/05/07 22:19:42 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:19:42 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use `set -eu' to detect script mistakes.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:18:19 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Pass arguments to dummy more idiomatically.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.12 src/lib/libm/arch/m68060/makeas.sh:1.13
--- src/lib/libm/arch/m68060/makeas.sh:1.12	Tue May  7 22:17:24 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:18:19 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # 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.
 
-RCSID='$NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.13 2024/05/07 22:18:19 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -34,8 +34,10 @@ REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
 
 dummy () {
-	while [ X$1 != X ]; do
-		/bin/cat > $1.S << EOM
+	local F
+
+	for F; do
+		/bin/cat > $F.S << EOM
 /* \$NetBSD\$ */
 
 /*
@@ -47,8 +49,7 @@ dummy () {
  *
  */
 EOM
-		echo -n " " $1.S >> $FILELIST
-		shift
+		echo -n " " $F.S >> $FILELIST
 	done
 }
 
@@ -91,7 +92,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-	dummy $*
+	dummy "$@"
 }
 
 mks () {
@@ -126,7 +127,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-	dummy $*
+	dummy "$@"
 }
 
 /bin/cat > ${REALCODE} << EOJ



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:18:19 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Pass arguments to dummy more idiomatically.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use local for shell functions.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.11 src/lib/libm/arch/m68060/makeas.sh:1.12
--- src/lib/libm/arch/m68060/makeas.sh:1.11	Tue May  7 22:17:08 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:17:24 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # 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.
 
-RCSID='$NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.12 2024/05/07 22:17:24 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -58,6 +58,8 @@ linebreak () {
 }
 
 mk () {
+	local NAME OFFS THESRC
+
 	NAME=$1
 	OFFS=$2
 	THESRC=$3.S
@@ -93,6 +95,8 @@ EOJ
 }
 
 mks () {
+	local NAME OFFS THESRC
+
 	NAME=$1
 	OFFS=$2
 	THESRC=$3.S



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/m68060/makeas.sh: Use local for shell functions.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:08 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Indent sh blocks.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 22:17:08 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Indent sh blocks.

No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.10 src/lib/libm/arch/m68060/makeas.sh:1.11
--- src/lib/libm/arch/m68060/makeas.sh:1.10	Tue May  7 21:14:12 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 22:17:08 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # 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.
 
-RCSID='$NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.11 2024/05/07 22:17:08 riastradh Exp $'
 
 RCSID=${RCSID#\$}
 RCSID=${RCSID% \$}
@@ -34,8 +34,8 @@ REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
 
 dummy () {
-while [ X$1 != X ]; do
-/bin/cat > $1.S << EOM
+	while [ X$1 != X ]; do
+		/bin/cat > $1.S << EOM
 /* \$NetBSD\$ */
 
 /*
@@ -47,9 +47,9 @@ while [ X$1 != X ]; do
  *
  */
 EOM
-echo -n " " $1.S >> $FILELIST
-shift
-done
+		echo -n " " $1.S >> $FILELIST
+		shift
+	done
 }
 
 linebreak () {
@@ -58,13 +58,13 @@ linebreak () {
 }
 
 mk () {
-NAME=$1
-OFFS=$2
-THESRC=$3.S
-shift; shift; shift
+	NAME=$1
+	OFFS=$2
+	THESRC=$3.S
+	shift; shift; shift
 
-echo -n " " ${THESRC} >> $FILELIST
-/bin/cat > ${THESRC} << EOJ
+	echo -n " " ${THESRC} >> $FILELIST
+	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
@@ -89,17 +89,17 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-dummy $*
+	dummy $*
 }
 
 mks () {
-NAME=$1
-OFFS=$2
-THESRC=$3.S
-shift; shift; shift
+	NAME=$1
+	OFFS=$2
+	THESRC=$3.S
+	shift; shift; shift
 
-echo -n " " ${THESRC} >> $FILELIST
-/bin/cat > ${THESRC} << EOJ
+	echo -n " " ${THESRC} >> $FILELIST
+	/bin/cat > ${THESRC} << EOJ
 /* \$NetBSD\$ */
 
 /*
@@ -122,7 +122,7 @@ ENTRY($NAME)
 	rts
 #endif
 EOJ
-dummy $*
+	dummy $*
 }
 
 /bin/cat > ${REALCODE} << EOJ



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:18:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/fplsp_wrap.S

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/arch/m68060/Makefile.list
diff -u src/lib/libm/arch/m68060/Makefile.list:1.6 src/lib/libm/arch/m68060/Makefile.list:1.7
--- src/lib/libm/arch/m68060/Makefile.list:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/Makefile.list	Tue May  7 21:18:47 2024
@@ -1,9 +1,13 @@
-# $NetBSD: Makefile.list,v 1.6 2010/01/06 14:11:53 phx Exp $
+# $NetBSD: Makefile.list,v 1.7 2024/05/07 21:18:47 riastradh Exp $
 
 #
 # list of M68060 architecture dependent files for libm.
 #
-# Created by a script. Do not edit manually!
+# Created by:
+#
+#	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
+#
+# Do not edit manually!
 #
 
 ARCH_SRCS =  e_acosf.S  e_acos.S  e_asinf.S  e_asin.S \
Index: src/lib/libm/arch/m68060/e_acos.S
diff -u src/lib/libm/arch/m68060/e_acos.S:1.6 src/lib/libm/arch/m68060/e_acos.S:1.7
--- src/lib/libm/arch/m68060/e_acos.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_acos.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_acos.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_acos.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acos
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_acosf.S
diff -u src/lib/libm/arch/m68060/e_acosf.S:1.6 src/lib/libm/arch/m68060/e_acosf.S:1.7
--- src/lib/libm/arch/m68060/e_acosf.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_acosf.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_acosf.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_acosf.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_acosf
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_asin.S
diff -u src/lib/libm/arch/m68060/e_asin.S:1.6 src/lib/libm/arch/m68060/e_asin.S:1.7
--- src/lib/libm/arch/m68060/e_asin.S:1.6	Wed Jan  6 14:11:53 2010
+++ src/lib/libm/arch/m68060/e_asin.S	Tue May  7 21:18:47 2024
@@ -1,8 +1,10 @@
-/* $NetBSD: e_asin.S,v 1.6 2010/01/06 14:11:53 phx Exp $ */
+/* $NetBSD: e_asin.S,v 1.7 2024/05/07 21:18:47 riastradh Exp $ */
 
 /*
  * FPLSP wrapper for __ieee754_asin
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp
  */
 
 #include 
Index: src/lib/libm/arch/m68060/e_asinf.S
diff -u src/lib/libm/arch/m68060/e_asinf.S:1.6 

CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:18:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile.list e_acos.S e_acosf.S e_asin.S
e_asinf.S e_atanh.S e_atanhf.S e_cosh.S e_coshf.S e_exp.S e_expf.S
e_log.S e_log10.S e_log10f.S e_logf.S e_sinh.S e_sinhf.S e_sqrt.S
e_sqrtf.S fplsp_wrap.S k_tan.S k_tanf.S s_atan.S s_atanf.S s_cos.S
s_cosf.S s_expm1.S s_expm1f.S s_log1p.S s_log1pf.S s_logb.S
s_logbf.S s_sin.S s_sinf.S s_tan.S s_tanf.S s_tanh.S s_tanhf.S

Log Message:
lib/libm/arch/m68060: regen


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libm/arch/m68060/Makefile.list \
src/lib/libm/arch/m68060/e_acos.S src/lib/libm/arch/m68060/e_acosf.S \
src/lib/libm/arch/m68060/e_asin.S src/lib/libm/arch/m68060/e_asinf.S \
src/lib/libm/arch/m68060/e_atanh.S src/lib/libm/arch/m68060/e_atanhf.S \
src/lib/libm/arch/m68060/e_cosh.S src/lib/libm/arch/m68060/e_coshf.S \
src/lib/libm/arch/m68060/e_exp.S src/lib/libm/arch/m68060/e_expf.S \
src/lib/libm/arch/m68060/e_log.S src/lib/libm/arch/m68060/e_log10.S \
src/lib/libm/arch/m68060/e_log10f.S src/lib/libm/arch/m68060/e_logf.S \
src/lib/libm/arch/m68060/e_sinh.S src/lib/libm/arch/m68060/e_sinhf.S \
src/lib/libm/arch/m68060/e_sqrt.S src/lib/libm/arch/m68060/e_sqrtf.S \
src/lib/libm/arch/m68060/k_tan.S src/lib/libm/arch/m68060/k_tanf.S \
src/lib/libm/arch/m68060/s_atan.S src/lib/libm/arch/m68060/s_atanf.S \
src/lib/libm/arch/m68060/s_cos.S src/lib/libm/arch/m68060/s_cosf.S \
src/lib/libm/arch/m68060/s_expm1.S src/lib/libm/arch/m68060/s_expm1f.S \
src/lib/libm/arch/m68060/s_log1p.S src/lib/libm/arch/m68060/s_log1pf.S \
src/lib/libm/arch/m68060/s_logb.S src/lib/libm/arch/m68060/s_logbf.S \
src/lib/libm/arch/m68060/s_sin.S src/lib/libm/arch/m68060/s_sinf.S \
src/lib/libm/arch/m68060/s_tan.S src/lib/libm/arch/m68060/s_tanf.S \
src/lib/libm/arch/m68060/s_tanh.S src/lib/libm/arch/m68060/s_tanhf.S
cvs rdiff -u -r1.7 -r1.8 src/lib/libm/arch/m68060/fplsp_wrap.S

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:14:12 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Strip the $ when emitting RCS id.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.9 src/lib/libm/arch/m68060/makeas.sh:1.10
--- src/lib/libm/arch/m68060/makeas.sh:1.9	Tue May  7 21:05:47 2024
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 21:14:12 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $
+# $NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # All rights reserved.
@@ -25,7 +25,10 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
-RCSID='$NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $'
+RCSID='$NetBSD: makeas.sh,v 1.10 2024/05/07 21:14:12 riastradh Exp $'
+
+RCSID=${RCSID#\$}
+RCSID=${RCSID% \$}
 
 REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:14:12 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
lib/libm/arch/m68060/makeas.sh: Strip the $ when emitting RCS id.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:11:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile

Log Message:
libm/arch/m68060/Makefile: bsd.sys.mk -> bsd.host.mk

Somewhat belatedly, after bsd.sys.mk was forbidden to use directly
from Makefiles back in 2014.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/m68060/Makefile

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/arch/m68060/Makefile
diff -u src/lib/libm/arch/m68060/Makefile:1.4 src/lib/libm/arch/m68060/Makefile:1.5
--- src/lib/libm/arch/m68060/Makefile:1.4	Sun Oct 26 07:25:34 2003
+++ src/lib/libm/arch/m68060/Makefile	Tue May  7 21:11:24 2024
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.4 2003/10/26 07:25:34 lukem Exp $
+# $NetBSD: Makefile,v 1.5 2024/05/07 21:11:24 riastradh Exp $
 
 .include 
-.include 		# for HOST_SH
+.include 		# for HOST_SH
 
 M060SP=		${NETBSDSRCDIR}/sys/arch/m68k/060sp
 ASM2GAS=	${M060SP}/asm2gas



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:11:24 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: Makefile

Log Message:
libm/arch/m68060/Makefile: bsd.sys.mk -> bsd.host.mk

Somewhat belatedly, after bsd.sys.mk was forbidden to use directly
from Makefiles back in 2014.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libm/arch/m68060/Makefile

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:05:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
libm/arch/m68060/makeas.sh: Tag output with makeas.sh RCS id.

No functional change intended to the output -- only changes are to
comments.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/makeas.sh

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



CVS commit: src/lib/libm/arch/m68060

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 21:05:47 UTC 2024

Modified Files:
src/lib/libm/arch/m68060: makeas.sh

Log Message:
libm/arch/m68060/makeas.sh: Tag output with makeas.sh RCS id.

No functional change intended to the output -- only changes are to
comments.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libm/arch/m68060/makeas.sh

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/arch/m68060/makeas.sh
diff -u src/lib/libm/arch/m68060/makeas.sh:1.8 src/lib/libm/arch/m68060/makeas.sh:1.9
--- src/lib/libm/arch/m68060/makeas.sh:1.8	Wed Jan  6 14:10:57 2010
+++ src/lib/libm/arch/m68060/makeas.sh	Tue May  7 21:05:47 2024
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-# $NetBSD: makeas.sh,v 1.8 2010/01/06 14:10:57 phx Exp $
+# $NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $
 
 # Copyright (c) 1999, 2000 Ignatios Souvatzis
 # 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.
 
-
+RCSID='$NetBSD: makeas.sh,v 1.9 2024/05/07 21:05:47 riastradh Exp $'
 
 REALCODE=fplsp_wrap.S
 FILELIST=Makefile.list
@@ -38,7 +38,9 @@ while [ X$1 != X ]; do
 /*
  * Dummy file. Real code is elsewhere.
  *
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by;
+ *
+ *	$RCSID
  *
  */
 EOM
@@ -64,7 +66,9 @@ echo -n " " ${THESRC} >> $FILELIST
 
 /*
  * FPLSP wrapper for $NAME
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -97,7 +101,9 @@ echo -n " " ${THESRC} >> $FILELIST
 
 /*
  * FPLSP wrapper for $NAME
- * DO NOT EDIT - this file is automatically generated.
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -122,7 +128,9 @@ dummy $*
 /*
  * FPLSP wrapper.
  *
- * DO NOT EDIT - this file is automatically generated!
+ * DO NOT EDIT - this file is automatically generated by:
+ *
+ *	$RCSID
  */
 
 #include 
@@ -135,7 +143,11 @@ EOJ
 #
 # list of M68060 architecture dependent files for libm.
 #
-# Created by a script. Do not edit manually!
+# Created by:
+#
+#	$RCSID
+#
+# Do not edit manually!
 #
 
 EOJ



CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 20:58:34 UTC 2024

Added Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.mips.expsym
m.powerpc.expsym m.riscv.expsym m.sparc.expsym m.sparc64.expsym
m.vax.expsym m.x86_64.expsym

Log Message:
libm: Memorialize expected symbols on various architectures.

This will reduce the risk of accidentally adding or deleting the
wrong symbols while fixing the aliases.

(This is all the architectures I have a build tree for handy; can add
other architectures like m68k later.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.i386.expsym \
src/lib/libm/m.ia64.expsym src/lib/libm/m.mips.expsym \
src/lib/libm/m.powerpc.expsym src/lib/libm/m.riscv.expsym \
src/lib/libm/m.sparc.expsym src/lib/libm/m.sparc64.expsym \
src/lib/libm/m.vax.expsym src/lib/libm/m.x86_64.expsym

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

Added files:

Index: src/lib/libm/m.aarch64.expsym
diff -u /dev/null src/lib/libm/m.aarch64.expsym:1.1
--- /dev/null	Tue May  7 20:58:34 2024
+++ src/lib/libm/m.aarch64.expsym	Tue May  7 20:58:33 2024
@@ -0,0 +1,507 @@
+_ItL_aT
+_ItL_atanhi
+_ItL_atanlo
+_ItL_pS0
+_ItL_pS1
+_ItL_pS2
+_ItL_pS3
+_ItL_pS4
+_ItL_pS5
+_ItL_pS6
+_ItL_pS7
+_ItL_pS8
+_ItL_pS9
+_ItL_pi_lo
+_ItL_qS1
+_ItL_qS2
+_ItL_qS3
+_ItL_qS4
+_ItL_qS5
+_ItL_qS6
+_ItL_qS7
+_ItL_qS8
+_ItL_qS9
+__bss_end__
+__bss_start__
+__c99_cabs
+__c99_cabsf
+__c99_cabsl
+__divdc3
+__divsc3
+__divtc3
+__divxc3
+__end__
+__exp__D
+__fe_dfl_env
+__ieee754_acos
+__ieee754_acosf
+__ieee754_acosh
+__ieee754_acoshf
+__ieee754_asin
+__ieee754_asinf
+__ieee754_atan2
+__ieee754_atan2f
+__ieee754_atanh
+__ieee754_atanhf
+__ieee754_cosh
+__ieee754_coshf
+__ieee754_exp
+__ieee754_expf
+__ieee754_fmod
+__ieee754_fmodf
+__ieee754_fmodl
+__ieee754_hypot
+__ieee754_hypotf
+__ieee754_j0
+__ieee754_j0f
+__ieee754_j1
+__ieee754_j1f
+__ieee754_jn
+__ieee754_jnf
+__ieee754_lgamma_r
+__ieee754_lgammaf_r
+__ieee754_log
+__ieee754_log10
+__ieee754_log10f
+__ieee754_log2
+__ieee754_log2f
+__ieee754_logf
+__ieee754_pow
+__ieee754_powf
+__ieee754_rem_pio2
+__ieee754_rem_pio2f
+__ieee754_remainder
+__ieee754_remainderf
+__ieee754_scalb
+__ieee754_scalbf
+__ieee754_sinh
+__ieee754_sinhf
+__ieee754_sqrt
+__ieee754_sqrtf
+__ieee754_sqrtl
+__ieee754_y0
+__ieee754_y0f
+__ieee754_y1
+__ieee754_y1f
+__ieee754_yn
+__ieee754_ynf
+__kernel_cos
+__kernel_cosf
+__kernel_cosl
+__kernel_rem_pio2
+__kernel_rem_pio2f
+__kernel_sin
+__kernel_sinf
+__kernel_sinl
+__kernel_standard
+__kernel_tan
+__kernel_tanf
+__kernel_tanl
+__log__D
+__muldc3
+__mulsc3
+__multc3
+__mulxc3
+_acoshl
+_acosl
+_asin
+_asinf
+_asinhl
+_asinl
+_atan2
+_atan2f
+_atan2l
+_atanhl
+_atanl
+_bss_end__
+_casin
+_casinf
+_casinl
+_catan
+_catanf
+_catanl
+_cbrtl
+_cchsh
+_cchshf
+_cchshl
+_ceill
+_copysignl
+_cosh
+_coshf
+_coshl
+_cosl
+_cospi
+_cospif
+_cospil
+_ctans
+_ctansf
+_ctansl
+_end
+_erfcl
+_erfl
+_exp
+_exp2l
+_expf
+_expl
+_expm1l
+_fdlib_version
+_feclearexcept
+_fedisableexcept
+_feenableexcept
+_fegetenv
+_fegetexcept
+_fegetexceptflag
+_fegetround
+_feholdexcept
+_feraiseexcept
+_fesetenv
+_fesetexceptflag
+_fesetround
+_fetestexcept
+_feupdateenv
+_floorl
+_fma
+_fmaf
+_fmax
+_fmaxf
+_fmin
+_fminf
+_fmodl
+_hypot
+_hypotf
+_hypotl
+_lgammal
+_lgammal_r
+_log
+_log10l
+_log1pl
+_log2l
+_logf
+_logl
+_modfl
+_powl
+_redupi
+_redupif
+_redupil
+_remquo
+_remquof
+_remquol
+_roundl
+_scalbln
+_scalblnf
+_scalblnl
+_scalbn
+_scalbnf
+_scalbnl
+_sincos
+_sincosf
+_sincosl
+_sinh
+_sinhf
+_sinhl
+_sinl
+_sinpi
+_sinpif
+_sinpil
+_sqrtl
+_tanhl
+_tanl
+_tanpi
+_tanpif
+_tanpil
+_tgammal
+_truncl
+acos
+acosf
+acosh
+acoshf
+acoshl
+acosl
+asin
+asinf
+asinh
+asinhf
+asinhl
+asinl
+atan
+atan2
+atan2f
+atan2l
+atanf
+atanh
+atanhf
+atanhl
+atanl
+cabs
+cabsf
+cacos
+cacosf
+cacosh
+cacoshf
+cacoshl
+cacosl
+carg
+cargf
+cargl
+casin
+casinf
+casinh
+casinhf
+casinhl
+casinl
+catan
+catanf
+catanh
+catanhf
+catanhl
+catanl
+cbrt
+cbrtf
+cbrtl
+ccos
+ccosf
+ccosh
+ccoshf
+ccoshl
+ccosl
+ceil
+ceilf
+ceill
+cexp
+cexpf
+cexpl
+cimag
+cimagf
+cimagl
+clog
+clogf
+clogl
+conj
+conjf
+conjl
+copysign
+copysignf
+copysignl
+cos
+cosf
+cosh
+coshf
+coshl
+cosl
+cospi
+cospif
+cospil
+cpow
+cpowf
+cpowl
+cproj
+cprojf
+cprojl
+creal
+crealf
+creall
+csin
+csinf
+csinh
+csinhf
+csinhl
+csinl
+csqrt
+csqrtf
+csqrtl
+ctan
+ctanf
+ctanh
+ctanhf
+ctanhl
+ctanl
+drem
+dremf
+erf
+erfc
+erfcf
+erfcl
+erff
+erfl
+exp
+exp2
+exp2f
+exp2l
+expf
+expl
+expm1
+expm1f
+expm1l
+fabsf
+fabsl
+fdim
+fdimf
+fdiml
+feclearexcept
+fedisableexcept
+feenableexcept
+fegetenv
+fegetexcept
+fegetexceptflag
+fegetround
+feholdexcept
+feraiseexcept
+fesetenv

CVS commit: src/lib/libm

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 20:58:34 UTC 2024

Added Files:
src/lib/libm: m.aarch64.expsym m.alpha.expsym m.arm.expsym
m.hppa.expsym m.i386.expsym m.ia64.expsym m.mips.expsym
m.powerpc.expsym m.riscv.expsym m.sparc.expsym m.sparc64.expsym
m.vax.expsym m.x86_64.expsym

Log Message:
libm: Memorialize expected symbols on various architectures.

This will reduce the risk of accidentally adding or deleting the
wrong symbols while fixing the aliases.

(This is all the architectures I have a build tree for handy; can add
other architectures like m68k later.)


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libm/m.aarch64.expsym \
src/lib/libm/m.alpha.expsym src/lib/libm/m.arm.expsym \
src/lib/libm/m.hppa.expsym src/lib/libm/m.i386.expsym \
src/lib/libm/m.ia64.expsym src/lib/libm/m.mips.expsym \
src/lib/libm/m.powerpc.expsym src/lib/libm/m.riscv.expsym \
src/lib/libm/m.sparc.expsym src/lib/libm/m.sparc64.expsym \
src/lib/libm/m.vax.expsym src/lib/libm/m.x86_64.expsym

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



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:33 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_atan2.S

Log Message:
libm/arch/vax: Expose atan2l.

PR port-vax/57881: vax libm is missing various symbols


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_atan2.S

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/arch/vax/n_atan2.S
diff -u src/lib/libm/arch/vax/n_atan2.S:1.10 src/lib/libm/arch/vax/n_atan2.S:1.11
--- src/lib/libm/arch/vax/n_atan2.S:1.10	Tue May  7 15:15:09 2024
+++ src/lib/libm/arch/vax/n_atan2.S	Tue May  7 15:49:33 2024
@@ -1,4 +1,4 @@
-/*	$NetBSD: n_atan2.S,v 1.10 2024/05/07 15:15:09 riastradh Exp $	*/
+/*	$NetBSD: n_atan2.S,v 1.11 2024/05/07 15:49:33 riastradh Exp $	*/
 /*
  * Copyright (c) 1985, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -72,9 +72,7 @@
  *	atan2(y,x) returns the exact ARG(x+iy) nearly rounded.
  */
 
-#ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2f, _atan2f)
-#endif
 
 ENTRY(_atan2f, 0)
 	cvtfd	4(%ap),-(%sp)
@@ -83,11 +81,10 @@ ENTRY(_atan2f, 0)
 	ret
 END(_atan2f)
 
-#ifdef WEAK_ALIAS
 WEAK_ALIAS(atan2, _atan2)
-WEAK_ALIAS(_atan2l, _atan2)
-#endif
+WEAK_ALIAS(atan2l, _atan2l)
 
+STRONG_ALIAS(_atan2l, _atan2)
 ENTRY(_atan2, 0x0fc0)
 	movq	4(%ap),%r2		# %r2 = y
 	movq	12(%ap),%r4		# %r4 = x



CVS commit: src/lib/libm/arch/vax

2024-05-07 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Tue May  7 15:49:33 UTC 2024

Modified Files:
src/lib/libm/arch/vax: n_atan2.S

Log Message:
libm/arch/vax: Expose atan2l.

PR port-vax/57881: vax libm is missing various symbols


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libm/arch/vax/n_atan2.S

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



  1   2   3   4   5   6   7   8   9   10   >