Module Name:    src
Committed By:   kamil
Date:           Sat Apr 27 23:04:32 UTC 2019

Modified Files:
        src/distrib/sets/lists/comp: mi
        src/lib/libm: Makefile
        src/lib/libm/man: nextafter.3
        src/lib/libm/src: s_nextafterl.c
        src/usr.sbin/makemandb: nostem.txt

Log Message:
Add a C99 symbol to libm: nexttowardl

It's an alias for an already existing symbol nextafterl.

Patch obtained from <mgorny>

Detected by the LLVM buildbot breakage in tests.


To generate a diff of this commit:
cvs rdiff -u -r1.2271 -r1.2272 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.209 -r1.210 src/lib/libm/Makefile
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/man/nextafter.3
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/src/s_nextafterl.c
cvs rdiff -u -r1.1 -r1.2 src/usr.sbin/makemandb/nostem.txt

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2271 src/distrib/sets/lists/comp/mi:1.2272
--- src/distrib/sets/lists/comp/mi:1.2271	Thu Apr 25 23:17:24 2019
+++ src/distrib/sets/lists/comp/mi	Sat Apr 27 23:04:31 2019
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2271 2019/04/25 23:17:24 maya Exp $
+#	$NetBSD: mi,v 1.2272 2019/04/27 23:04:31 kamil Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.comp				comp-sys-root
@@ -8535,6 +8535,7 @@
 ./usr/share/man/cat3/nextafterl.0		comp-c-catman		.cat
 ./usr/share/man/cat3/nexttoward.0		comp-c-catman		.cat
 ./usr/share/man/cat3/nexttowardf.0		comp-c-catman		.cat
+./usr/share/man/cat3/nexttowardl.0		comp-c-catman		.cat
 ./usr/share/man/cat3/nftw.0			comp-c-catman		.cat
 ./usr/share/man/cat3/ngettext.0			comp-c-catman		.cat
 ./usr/share/man/cat3/nice.0			comp-c-catman		.cat
@@ -16510,6 +16511,7 @@
 ./usr/share/man/html3/nextafterl.html		comp-c-htmlman		html
 ./usr/share/man/html3/nexttoward.html		comp-c-htmlman		html
 ./usr/share/man/html3/nexttowardf.html		comp-c-htmlman		html
+./usr/share/man/html3/nexttowardl.html		comp-c-htmlman		html
 ./usr/share/man/html3/nftw.html			comp-c-htmlman		html
 ./usr/share/man/html3/ngettext.html		comp-c-htmlman		html
 ./usr/share/man/html3/nice.html			comp-c-htmlman		html
@@ -24492,6 +24494,7 @@
 ./usr/share/man/man3/nextafterl.3		comp-c-man		.man
 ./usr/share/man/man3/nexttoward.3		comp-c-man		.man
 ./usr/share/man/man3/nexttowardf.3		comp-c-man		.man
+./usr/share/man/man3/nexttowardl.3		comp-c-man		.man
 ./usr/share/man/man3/nftw.3			comp-c-man		.man
 ./usr/share/man/man3/ngettext.3			comp-c-man		.man
 ./usr/share/man/man3/nice.3			comp-c-man		.man

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.209 src/lib/libm/Makefile:1.210
--- src/lib/libm/Makefile:1.209	Thu Apr 25 23:17:24 2019
+++ src/lib/libm/Makefile	Sat Apr 27 23:04:32 2019
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.209 2019/04/25 23:17:24 maya Exp $
+#  $NetBSD: Makefile,v 1.210 2019/04/27 23:04:32 kamil Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -424,7 +424,8 @@ MLINKS+=modf.3 modff.3 \
 MLINKS+=nextafter.3 nextafterf.3 \
 	nextafter.3 nextafterl.3 \
 	nextafter.3 nexttoward.3 \
-	nextafter.3 nexttowardf.3
+	nextafter.3 nexttowardf.3 \
+	nextafter.3 nexttowardl.3
 MLINKS+=lrint.3 lrintf.3 lrint.3 llrint.3 lrint.3 llrintf.3
 MLINKS+=remainder.3 remainderf.3 \
 	remainder.3 remquo.3 \

Index: src/lib/libm/man/nextafter.3
diff -u src/lib/libm/man/nextafter.3:1.5 src/lib/libm/man/nextafter.3:1.6
--- src/lib/libm/man/nextafter.3:1.5	Sun Sep 13 10:58:30 2015
+++ src/lib/libm/man/nextafter.3	Sat Apr 27 23:04:32 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: nextafter.3,v 1.5 2015/09/13 10:58:30 he Exp $
+.\" $NetBSD: nextafter.3,v 1.6 2019/04/27 23:04:32 kamil Exp $
 .\"
 .\" Copyright (c) 2011 Jukka Ruohonen <[email protected]>
 .\" All rights reserved.
@@ -32,12 +32,8 @@
 .Nm nextafterf ,
 .Nm nextafterl ,
 .Nm nexttoward ,
-.Nm nexttowardf
-.\"
-.\" XXX: Not yet implemented.
-.\"
-.\" .Nm nexttowardl
-.\"
+.Nm nexttowardf ,
+.Nm nexttowardl
 .Nd next representable floating-point number
 .Sh LIBRARY
 .Lb libm
@@ -53,6 +49,8 @@
 .Fn nexttoward "double x" "long double y"
 .Ft float
 .Fn nexttowardf "float x" "long double y"
+.Ft long double
+.Fn nexttowardl "long double x" "long double y"
 .Sh DESCRIPTION
 The
 .Fn nextafter ,
@@ -80,9 +78,10 @@ The three functions differ only in the t
 .Fa x .
 .Pp
 The
-.Fn nexttoward
-and
+.Fn nexttoward ,
 .Fn nexttowardf
+and
+.Fn nexttowardl
 functions are equivalent to the
 .Fn nextafter
 family of functions with two exceptions:

Index: src/lib/libm/src/s_nextafterl.c
diff -u src/lib/libm/src/s_nextafterl.c:1.5 src/lib/libm/src/s_nextafterl.c:1.6
--- src/lib/libm/src/s_nextafterl.c:1.5	Fri Jan 31 19:38:47 2014
+++ src/lib/libm/src/s_nextafterl.c	Sat Apr 27 23:04:32 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $	*/
+/*	$NetBSD: s_nextafterl.c,v 1.6 2019/04/27 23:04:32 kamil Exp $	*/
 
 /* @(#)s_nextafter.c 5.1 93/09/24 */
 /*
@@ -13,7 +13,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.5 2014/01/31 19:38:47 matt Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.6 2019/04/27 23:04:32 kamil Exp $");
 
 #include <float.h>
 #include <math.h>
@@ -30,6 +30,8 @@ __RCSID("$NetBSD: s_nextafterl.c,v 1.5 2
 #define	LDBL_NBIT	0
 #endif
 
+__strong_alias(nexttowardl, nextafterl)
+
 /*
  * IEEE functions
  *      nextafterl(x,y)

Index: src/usr.sbin/makemandb/nostem.txt
diff -u src/usr.sbin/makemandb/nostem.txt:1.1 src/usr.sbin/makemandb/nostem.txt:1.2
--- src/usr.sbin/makemandb/nostem.txt:1.1	Sun Jun 18 16:24:10 2017
+++ src/usr.sbin/makemandb/nostem.txt	Sat Apr 27 23:04:32 2019
@@ -2703,6 +2703,7 @@ nextkey
 nextscn
 nexttoward
 nexttowardf
+nexttowardl
 nfe
 nfs
 nfsd

Reply via email to