aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-06-16 00:14:00 +0000
committerUlrich Drepper <drepper@redhat.com>1997-06-16 00:14:00 +0000
commite7f1f046f51d95d5d05ada3abd3f2e88219118e9 (patch)
tree1095d104b90bb6f85faa927c1eca7d2b47d3e63b
parent900bec852d0bd53eb27b8b2193899f5cf470b38f (diff)
downloadglibc-e7f1f046f51d95d5d05ada3abd3f2e88219118e9.zip
glibc-e7f1f046f51d95d5d05ada3abd3f2e88219118e9.tar.gz
glibc-e7f1f046f51d95d5d05ada3abd3f2e88219118e9.tar.bz2
1997-06-16 00:54 Ulrich Drepper <drepper@cygnus.com> * libc.map: Add more symbols. * Mwkerules (load-map-file): Currectly handle missing map file. 1997-06-15 17:00 Philip Blundell <Philip.Blundell@pobox.com> * configure.in: Correct detection of generic uname implementation. 1997-06-15 23:19 Ulrich Drepper <drepper@cygnus.com> * math/libm-test.c: Fix typos. Patch by Andreas Jaeger. * libc.map: Add __nss_configure_lookup. Reported by Thorsten Kukuk.
-rw-r--r--ChangeLog16
-rw-r--r--Makerules2
-rwxr-xr-xconfigure10
-rw-r--r--configure.in10
-rw-r--r--libc.map2
-rw-r--r--math/libm-test.c58
-rw-r--r--sysdeps/unix/sysv/linux/configure24
7 files changed, 82 insertions, 40 deletions
diff --git a/ChangeLog b/ChangeLog
index 06ac3af..9c70ad3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,19 @@
+1997-06-16 00:54 Ulrich Drepper <drepper@cygnus.com>
+
+ * libc.map: Add more symbols.
+
+ * Mwkerules (load-map-file): Currectly handle missing map file.
+
+1997-06-15 17:00 Philip Blundell <Philip.Blundell@pobox.com>
+
+ * configure.in: Correct detection of generic uname implementation.
+
+1997-06-15 23:19 Ulrich Drepper <drepper@cygnus.com>
+
+ * math/libm-test.c: Fix typos. Patch by Andreas Jaeger.
+
+ * libc.map: Add __nss_configure_lookup. Reported by Thorsten Kukuk.
+
1997-06-15 00:43 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig: Define libc-map here.
diff --git a/Makerules b/Makerules
index 26676c6..4acf64c 100644
--- a/Makerules
+++ b/Makerules
@@ -346,7 +346,7 @@ endif
ifeq ($(versioning),yes)
ifneq ($(..),)
-load-map-file = $(wildcard $($(@F:%.so=%)-map) $(..)$($(@F:%.so=%)-map))
+load-map-file = $(wildcard $($(@F:%.so=%)-map) $($(@F:%.so=%)-map):%=$(..)%)
else
load-map-file = $($(@F:%.so=%)-map)
endif
diff --git a/configure b/configure
index d847518..3d8b4a2 100755
--- a/configure
+++ b/configure
@@ -2060,10 +2060,10 @@ for dir in $sysnames; do
fi
if test -z "$uname"; then
- if test -r $sysdep_dir/$dir/uname.c ||
- test -r $sysdep_dir/$dir/uname.S ||
- { test -r $sysdep_dir/$dir/syscalls.list &&
- grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
+ if test -r $dest/uname.c ||
+ test -r $dest/uname.S ||
+ { test -r $dest/syscalls.list &&
+ grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
uname=$dir
fi
fi
@@ -2073,7 +2073,7 @@ done
# If we will use the generic uname implementation, we must figure out what
# it will say by examining the system, and write the results in config-name.h.
-if test "$uname" = generic; then
+if test "$uname" = "sysdeps/generic"; then
uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
if test $uname_sysname != $config_os; then
diff --git a/configure.in b/configure.in
index a06fa35..667ac7e 100644
--- a/configure.in
+++ b/configure.in
@@ -703,10 +703,10 @@ for dir in $sysnames; do
fi
[
if test -z "$uname"; then
- if test -r $sysdep_dir/$dir/uname.c ||
- test -r $sysdep_dir/$dir/uname.S ||
- { test -r $sysdep_dir/$dir/syscalls.list &&
- grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then
+ if test -r $dest/uname.c ||
+ test -r $dest/uname.S ||
+ { test -r $dest/syscalls.list &&
+ grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
uname=$dir
fi
fi
@@ -717,7 +717,7 @@ AC_LINK_FILES(`echo $libc_link_sources`, `echo $libc_link_dests`)
# If we will use the generic uname implementation, we must figure out what
# it will say by examining the system, and write the results in config-name.h.
-if test "$uname" = generic; then
+if test "$uname" = "sysdeps/generic"; then
changequote(,)dnl
uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
diff --git a/libc.map b/libc.map
index c912859..29f67f6 100644
--- a/libc.map
+++ b/libc.map
@@ -6,6 +6,7 @@ GLIBC_2.0 {
_IO_stderr_; _IO_stdin_; _IO_stdout_;
_nl_msg_cat_cntr; __environ; _environ; _res;
___brk_addr; __curbrk; _nl_current_LC_CTYPE; _libc_intl_domainname;
+ _sys_errlist; _sys_siglist;
# helper functions
__errno_location; __libc_init_first; __h_errno_location;
@@ -50,6 +51,7 @@ GLIBC_2.0 {
__select; __sched_get_priority_max; __sched_get_priority_min;
__sched_getparam; __sched_getscheduler; __sched_setscheduler;
__sched_yield; __on_exit; __gettimeofday; __fork; __clone;
+ __nss_configure_lookup; _dl_open; _IO_file_setbuf;
# all functions and variables in the normal name space
a*; b*; c*; d*; e*; f*; g*; h*; i*; j*; k*; l*; m*;
diff --git a/math/libm-test.c b/math/libm-test.c
index 156c7eb..be75383 100644
--- a/math/libm-test.c
+++ b/math/libm-test.c
@@ -42,7 +42,7 @@
It has tests for:
acos, acosh, asin, asinh, atan, atan2, atanh,
cbrt, ceil, copysign, cos, cosh, erf, erfc, exp, exp2, expm1,
- fabs, fdim, floor, fmin, fmax, fmod, fpclassify,
+ fabs, fdim, floor, fmin, fmax, fmod, fpclassify,
frexp, gamma, hypot,
ilogb, isfinite, isinf, isnan, isnormal,
ldexp, lgamma, log, log10, log1p, log2, logb,
@@ -91,7 +91,7 @@
NaN values: There exist signalling and quiet NaNs. This implementation
only uses signalling NaN as parameter but does not differenciate
between the two kinds of NaNs as result.
-
+
Inline functions: Inlining functions should give an improvement in
speed - but not in precission. The inlined functions return
reasonable values for a reasonable range of input values. The
@@ -859,7 +859,7 @@ asinh_test (void)
check_isinfp ("asinh(+inf) == +inf", FUNC(asinh) (plus_infty));
check_isinfn ("asinh(-inf) == -inf", FUNC(asinh) (minus_infty));
#endif
-
+
}
@@ -971,7 +971,7 @@ atanh_test (void)
x = random_less (1.0);
check_isnan_exc_ext ("atanh (x) == NaN plus invalid exception if |x| > 1",
FUNC(atanh) (x), INVALID_EXCEPTION, x);
-
+
#endif
}
@@ -1252,7 +1252,7 @@ static void
signbit_test (void)
{
MATHTYPE x;
-
+
check_bool ("signbit (+0) == 0", signbit (0) == 0);
check_bool ("signbit (-0) != 0", signbit (minus_zero));
check_bool ("signbit (+inf) == 0", signbit (plus_infty) == 0);
@@ -1264,7 +1264,7 @@ signbit_test (void)
x = random_greater (0);
check_bool ("signbit (x) == 0 for x > 0", signbit (x) == 0);
-
+
}
@@ -1290,7 +1290,7 @@ gamma_test (void)
check ("gamma (1) == 1", FUNC(gamma) (1), 1);
check ("gamma (4) == 6", FUNC(gamma) (4), 6);
-
+
}
@@ -1298,7 +1298,7 @@ static void
lgamma_test (void)
{
MATHTYPE x;
-
+
check_isinfp ("lgamma (+inf) == +inf", FUNC(lgamma) (plus_infty));
check_isnan_exc ("lgamma (0) == +inf plus divide by zero exception",
FUNC(lgamma) (0), DIVIDE_BY_ZERO_EXCEPTION);
@@ -1596,14 +1596,14 @@ sincos_test (void)
{
MATHTYPE sin_res, cos_res;
fenv_t fenv;
-
+
FUNC(sincos) (0, &sin_res, &cos_res);
fegetenv (&fenv);
check ("sincos (+0, &sin, &cos) puts +0 in sin", sin_res, 0);
fesetenv (&fenv);
check ("sincos (+0, &sin, &cos) puts 1 in cos", cos_res, 1);
- FUNC(sincos) (minus_zero, &sin_res, &cos_res);
+ FUNC(sincos) (minus_zero, &sin_res, &cos_res);
fegetenv (&fenv);
check ("sincos (-0, &sin, &cos) puts -0 in sin", sin_res, minus_zero);
fesetenv (&fenv);
@@ -1711,7 +1711,7 @@ hypot_test (void)
check_isinfp ("hypot (+inf, NaN) == +inf", FUNC(hypot) (minus_infty, nan_value));
check_isinfp ("hypot (-inf, NaN) == +inf", FUNC(hypot) (minus_infty, nan_value));
#endif
-
+
check_isnan ("hypot (NaN, NaN) == NaN", FUNC(hypot) (nan_value, nan_value));
a = FUNC(hypot) (12.4L, 0.7L);
@@ -2020,7 +2020,7 @@ static void
fmod_test (void)
{
MATHTYPE x;
-
+
x = random_greater (0);
check_ext ("fmod (+0, y) == +0 for y != 0", FUNC(fmod) (0, x), 0, x);
@@ -2046,14 +2046,14 @@ fmod_test (void)
check_eps ("fmod (6.5, 2.3) == 1.9", FUNC(fmod) (6.5, 2.3), 1.9,
CHOOSE(0, 1e-15, 0));
- check_eps ("fmod (-6.5, 2.3) == 1.9", FUNC(fmod) (-6.5, 2.3), -1.9,
+ check_eps ("fmod (-6.5, 2.3) == -1.9", FUNC(fmod) (-6.5, 2.3), -1.9,
CHOOSE(0, 1e-15, 0));
check_eps ("fmod (6.5, -2.3) == 1.9", FUNC(fmod) (6.5, -2.3), 1.9,
CHOOSE(0, 1e-15, 0));
- check_eps ("fmod (-6.5, -2.3) == 1.9", FUNC(fmod) (-6.5, -2.3), -1.9,
+ check_eps ("fmod (-6.5, -2.3) == -1.9", FUNC(fmod) (-6.5, -2.3), -1.9,
CHOOSE(0, 1e-15, 0));
-
+
}
@@ -2181,38 +2181,38 @@ static void
remainder_test (void)
{
MATHTYPE result;
-
+
result = FUNC(remainder) (1, 0);
check_isnan_exc ("remainder(1, +0) == NaN plus invalid exception",
result, INVALID_EXCEPTION);
-
+
result = FUNC(remainder) (1, minus_zero);
check_isnan_exc ("remainder(1, -0) == NaN plus invalid exception",
result, INVALID_EXCEPTION);
-
+
result = FUNC(remainder) (plus_infty, 1);
check_isnan_exc ("remainder(+inf, 1) == NaN plus invalid exception",
result, INVALID_EXCEPTION);
-
+
result = FUNC(remainder) (minus_infty, 1);
check_isnan_exc ("remainder(-inf, 1) == NaN plus invalid exception",
result, INVALID_EXCEPTION);
-
+
result = FUNC(remainder) (1.625, 1.0);
check ("remainder(1.625, 1.0) == -0.375", result, -0.375);
-
+
result = FUNC(remainder) (-1.625, 1.0);
check ("remainder(-1.625, 1.0) == 0.375", result, 0.375);
-
+
result = FUNC(remainder) (1.625, -1.0);
check ("remainder(1.625, -1.0) == -0.375", result, -0.375);
-
+
result = FUNC(remainder) (-1.625, -1.0);
check ("remainder(-1.625, -1.0) == 0.375", result, 0.375);
-
+
result = FUNC(remainder) (5.0, 2.0);
check ("remainder(5.0, 2.0) == 1.0", result, 1.0);
-
+
result = FUNC(remainder) (3.0, 2.0);
check ("remainder(3.0, 2.0) == -1.0", result, -1.0);
}
@@ -2243,15 +2243,15 @@ remquo_test (void)
result = FUNC(remquo) (1.625, 1.0, &quo);
check ("remquo(1.625, 1.0, &x) == -0.375", result, -0.375);
check_long ("remquo(1.625, 1.0, &x) puts 2 in x", quo, 2);
-
+
result = FUNC(remquo) (-1.625, 1.0, &quo);
check ("remquo(-1.625, 1.0, &x) == 0.375", result, 0.375);
check_long ("remquo(-1.625, 1.0, &x) puts -2 in x", quo, -2);
-
+
result = FUNC(remquo) (1.625, -1.0, &quo);
check ("remquo(1.625, -1.0, &x) == -0.375", result, -0.375);
check_long ("remquo(1.625, -1.0, &x) puts -2 in x", quo, -2);
-
+
result = FUNC(remquo) (-1.625, -1.0, &quo);
check ("remquo(-1.625, -1.0, &x) == 0.375", result, 0.375);
check_long ("remquo(-1.625, -1.0, &x) puts 2 in x", quo, 2);
@@ -4758,7 +4758,7 @@ main (int argc, char *argv[])
isfinite_test ();
isnormal_test ();
signbit_test ();
-
+
/* trigonometric functions */
acos_test ();
asin_test ();
diff --git a/sysdeps/unix/sysv/linux/configure b/sysdeps/unix/sysv/linux/configure
index 79dbf16..a8780df 100644
--- a/sysdeps/unix/sysv/linux/configure
+++ b/sysdeps/unix/sysv/linux/configure
@@ -98,3 +98,27 @@ fi
if test -f $srcdir/elf/ldconfig.c; then
has_ldconfig=yes
fi
+
+# Generate stdio_lim.h
+default_fopen_max="`${CC-gcc} -E $srcdir/sysdeps/unix/sysv/linux/mk-stdiolim.c | grep DEFAULT_FOPEN_MAX | cut -f2 -d':'`"
+default_filename_max="`${CC-gcc} -E $srcdir/sysdeps/unix/sysv/linux/mk-stdiolim.c | grep DEFAULT_FILENAME_MAX | cut -f2 -d':'`"
+# We double check if "default_fopen_max" and "default_filename_max" are
+# ok or not.
+if test "x$default_fopen_max" != "xOPEN_MAX" \
+ -a "x$default_filename_max" != "xPATH_MAX"
+then
+ sed -e "s/DEFAULT_FOPEN_MAX/$default_fopen_max/" \
+ -e "s/DEFAULT_FILENAME_MAX/$default_filename_max/" \
+ $srcdir/sysdeps/unix/sysv/linux/stdio_lim.h.in > stdio_lim.h.new
+ if test -r stdio_lim.h.new && cmp -s stdio_lim.h.new stdio_lim.h
+ then
+ echo stdio_lim.h unchanged
+ rm -f stdio_lim.h.new
+ else
+ mv -f stdio_lim.h.new stdio_lim.h
+ fi
+else
+ # We remove the old one if we cannot generate the new one during
+ # configure.
+ rm -f stdio_lim.h
+fi