From 2fbf033e009bb5c4db92160700ec03c25f292728 Mon Sep 17 00:00:00 2001 From: martynas Date: Thu, 28 Mar 2013 18:09:38 +0000 Subject: Switch libc and libm to use strong aliases rather than weak aliases where appropriate. Among other things makes the symbols consistent across all architectures (notably where ldbl mantissa is 53 bits). While at it, kill unused LINTLIBRARY/PROTOLIB1 cruft which was there to trick lint into recording the right prototypes for aliased functions. Most of the work done at the awesome n2k13 hackathon. Agreed by kettenis@, guenther@, matthew@. --- lib/libc/gen/modf.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'lib/libc/gen/modf.c') diff --git a/lib/libc/gen/modf.c b/lib/libc/gen/modf.c index fde7cd82bab..586ed28a49a 100644 --- a/lib/libc/gen/modf.c +++ b/lib/libc/gen/modf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: modf.c,v 1.4 2011/07/08 22:48:19 martynas Exp $ */ +/* $OpenBSD: modf.c,v 1.5 2013/03/28 18:09:38 martynas Exp $ */ /* $NetBSD: modf.c,v 1.1 1995/02/10 17:50:25 cgd Exp $ */ /* @@ -28,8 +28,6 @@ * rights to redistribute these changes. */ -/* LINTLIBRARY */ - #include #include #include @@ -107,10 +105,5 @@ modf(double val, double *iptr) } #if LDBL_MANT_DIG == 53 -#ifdef lint -/* PROTOLIB1 */ -long double frexpl(long double, int *); -#else /* lint */ -__weak_alias(modfl, modf); -#endif /* lint */ +__strong_alias(modfl, modf); #endif /* LDBL_MANT_DIG == 53 */ -- cgit v1.2.3-59-g8ed1b