1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
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.
This commit is contained in:
Ulrich Drepper
1997-06-16 00:14:00 +00:00
parent 900bec852d
commit e7f1f046f5
7 changed files with 82 additions and 40 deletions

View File

@ -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> 1997-06-15 00:43 Ulrich Drepper <drepper@cygnus.com>
* Makeconfig: Define libc-map here. * Makeconfig: Define libc-map here.

View File

@ -346,7 +346,7 @@ endif
ifeq ($(versioning),yes) ifeq ($(versioning),yes)
ifneq ($(..),) ifneq ($(..),)
load-map-file = $(wildcard $($(@F:%.so=%)-map) $(..)$($(@F:%.so=%)-map)) load-map-file = $(wildcard $($(@F:%.so=%)-map) $($(@F:%.so=%)-map):%=$(..)%)
else else
load-map-file = $($(@F:%.so=%)-map) load-map-file = $($(@F:%.so=%)-map)
endif endif

10
configure vendored
View File

@ -2060,10 +2060,10 @@ for dir in $sysnames; do
fi fi
if test -z "$uname"; then if test -z "$uname"; then
if test -r $sysdep_dir/$dir/uname.c || if test -r $dest/uname.c ||
test -r $sysdep_dir/$dir/uname.S || test -r $dest/uname.S ||
{ test -r $sysdep_dir/$dir/syscalls.list && { test -r $dest/syscalls.list &&
grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
uname=$dir uname=$dir
fi fi
fi fi
@ -2073,7 +2073,7 @@ done
# If we will use the generic uname implementation, we must figure out what # 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. # 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.]*$//'` uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`
if test $uname_sysname != $config_os; then if test $uname_sysname != $config_os; then

View File

@ -703,10 +703,10 @@ for dir in $sysnames; do
fi fi
[ [
if test -z "$uname"; then if test -z "$uname"; then
if test -r $sysdep_dir/$dir/uname.c || if test -r $dest/uname.c ||
test -r $sysdep_dir/$dir/uname.S || test -r $dest/uname.S ||
{ test -r $sysdep_dir/$dir/syscalls.list && { test -r $dest/syscalls.list &&
grep '^uname[ ]' $sysdep_dir/$dir/syscalls.list >/dev/null; }; then grep '^uname[ ]' $dest/syscalls.list >/dev/null; }; then
uname=$dir uname=$dir
fi fi
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 # 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. # 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 changequote(,)dnl
uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'` uname_sysname=`echo $config_os | sed 's/[0-9.]*$//'`

View File

@ -6,6 +6,7 @@ GLIBC_2.0 {
_IO_stderr_; _IO_stdin_; _IO_stdout_; _IO_stderr_; _IO_stdin_; _IO_stdout_;
_nl_msg_cat_cntr; __environ; _environ; _res; _nl_msg_cat_cntr; __environ; _environ; _res;
___brk_addr; __curbrk; _nl_current_LC_CTYPE; _libc_intl_domainname; ___brk_addr; __curbrk; _nl_current_LC_CTYPE; _libc_intl_domainname;
_sys_errlist; _sys_siglist;
# helper functions # helper functions
__errno_location; __libc_init_first; __h_errno_location; __errno_location; __libc_init_first; __h_errno_location;
@ -50,6 +51,7 @@ GLIBC_2.0 {
__select; __sched_get_priority_max; __sched_get_priority_min; __select; __sched_get_priority_max; __sched_get_priority_min;
__sched_getparam; __sched_getscheduler; __sched_setscheduler; __sched_getparam; __sched_getscheduler; __sched_setscheduler;
__sched_yield; __on_exit; __gettimeofday; __fork; __clone; __sched_yield; __on_exit; __gettimeofday; __fork; __clone;
__nss_configure_lookup; _dl_open; _IO_file_setbuf;
# all functions and variables in the normal name space # all functions and variables in the normal name space
a*; b*; c*; d*; e*; f*; g*; h*; i*; j*; k*; l*; m*; a*; b*; c*; d*; e*; f*; g*; h*; i*; j*; k*; l*; m*;

View File

@ -42,7 +42,7 @@
It has tests for: It has tests for:
acos, acosh, asin, asinh, atan, atan2, atanh, acos, acosh, asin, asinh, atan, atan2, atanh,
cbrt, ceil, copysign, cos, cosh, erf, erfc, exp, exp2, expm1, 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, frexp, gamma, hypot,
ilogb, isfinite, isinf, isnan, isnormal, ilogb, isfinite, isinf, isnan, isnormal,
ldexp, lgamma, log, log10, log1p, log2, logb, ldexp, lgamma, log, log10, log1p, log2, logb,
@ -91,7 +91,7 @@
NaN values: There exist signalling and quiet NaNs. This implementation NaN values: There exist signalling and quiet NaNs. This implementation
only uses signalling NaN as parameter but does not differenciate only uses signalling NaN as parameter but does not differenciate
between the two kinds of NaNs as result. between the two kinds of NaNs as result.
Inline functions: Inlining functions should give an improvement in Inline functions: Inlining functions should give an improvement in
speed - but not in precission. The inlined functions return speed - but not in precission. The inlined functions return
reasonable values for a reasonable range of input values. The 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_isinfp ("asinh(+inf) == +inf", FUNC(asinh) (plus_infty));
check_isinfn ("asinh(-inf) == -inf", FUNC(asinh) (minus_infty)); check_isinfn ("asinh(-inf) == -inf", FUNC(asinh) (minus_infty));
#endif #endif
} }
@ -971,7 +971,7 @@ atanh_test (void)
x = random_less (1.0); x = random_less (1.0);
check_isnan_exc_ext ("atanh (x) == NaN plus invalid exception if |x| > 1", check_isnan_exc_ext ("atanh (x) == NaN plus invalid exception if |x| > 1",
FUNC(atanh) (x), INVALID_EXCEPTION, x); FUNC(atanh) (x), INVALID_EXCEPTION, x);
#endif #endif
} }
@ -1252,7 +1252,7 @@ static void
signbit_test (void) signbit_test (void)
{ {
MATHTYPE x; MATHTYPE x;
check_bool ("signbit (+0) == 0", signbit (0) == 0); check_bool ("signbit (+0) == 0", signbit (0) == 0);
check_bool ("signbit (-0) != 0", signbit (minus_zero)); check_bool ("signbit (-0) != 0", signbit (minus_zero));
check_bool ("signbit (+inf) == 0", signbit (plus_infty) == 0); check_bool ("signbit (+inf) == 0", signbit (plus_infty) == 0);
@ -1264,7 +1264,7 @@ signbit_test (void)
x = random_greater (0); x = random_greater (0);
check_bool ("signbit (x) == 0 for x > 0", signbit (x) == 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 (1) == 1", FUNC(gamma) (1), 1);
check ("gamma (4) == 6", FUNC(gamma) (4), 6); check ("gamma (4) == 6", FUNC(gamma) (4), 6);
} }
@ -1298,7 +1298,7 @@ static void
lgamma_test (void) lgamma_test (void)
{ {
MATHTYPE x; MATHTYPE x;
check_isinfp ("lgamma (+inf) == +inf", FUNC(lgamma) (plus_infty)); check_isinfp ("lgamma (+inf) == +inf", FUNC(lgamma) (plus_infty));
check_isnan_exc ("lgamma (0) == +inf plus divide by zero exception", check_isnan_exc ("lgamma (0) == +inf plus divide by zero exception",
FUNC(lgamma) (0), DIVIDE_BY_ZERO_EXCEPTION); FUNC(lgamma) (0), DIVIDE_BY_ZERO_EXCEPTION);
@ -1596,14 +1596,14 @@ sincos_test (void)
{ {
MATHTYPE sin_res, cos_res; MATHTYPE sin_res, cos_res;
fenv_t fenv; fenv_t fenv;
FUNC(sincos) (0, &sin_res, &cos_res); FUNC(sincos) (0, &sin_res, &cos_res);
fegetenv (&fenv); fegetenv (&fenv);
check ("sincos (+0, &sin, &cos) puts +0 in sin", sin_res, 0); check ("sincos (+0, &sin, &cos) puts +0 in sin", sin_res, 0);
fesetenv (&fenv); fesetenv (&fenv);
check ("sincos (+0, &sin, &cos) puts 1 in cos", cos_res, 1); 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); fegetenv (&fenv);
check ("sincos (-0, &sin, &cos) puts -0 in sin", sin_res, minus_zero); check ("sincos (-0, &sin, &cos) puts -0 in sin", sin_res, minus_zero);
fesetenv (&fenv); 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));
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 #endif
check_isnan ("hypot (NaN, NaN) == NaN", FUNC(hypot) (nan_value, nan_value)); check_isnan ("hypot (NaN, NaN) == NaN", FUNC(hypot) (nan_value, nan_value));
a = FUNC(hypot) (12.4L, 0.7L); a = FUNC(hypot) (12.4L, 0.7L);
@ -2020,7 +2020,7 @@ static void
fmod_test (void) fmod_test (void)
{ {
MATHTYPE x; MATHTYPE x;
x = random_greater (0); x = random_greater (0);
check_ext ("fmod (+0, y) == +0 for y != 0", FUNC(fmod) (0, x), 0, x); 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, check_eps ("fmod (6.5, 2.3) == 1.9", FUNC(fmod) (6.5, 2.3), 1.9,
CHOOSE(0, 1e-15, 0)); 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)); 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)); 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)); CHOOSE(0, 1e-15, 0));
} }
@ -2181,38 +2181,38 @@ static void
remainder_test (void) remainder_test (void)
{ {
MATHTYPE result; MATHTYPE result;
result = FUNC(remainder) (1, 0); result = FUNC(remainder) (1, 0);
check_isnan_exc ("remainder(1, +0) == NaN plus invalid exception", check_isnan_exc ("remainder(1, +0) == NaN plus invalid exception",
result, INVALID_EXCEPTION); result, INVALID_EXCEPTION);
result = FUNC(remainder) (1, minus_zero); result = FUNC(remainder) (1, minus_zero);
check_isnan_exc ("remainder(1, -0) == NaN plus invalid exception", check_isnan_exc ("remainder(1, -0) == NaN plus invalid exception",
result, INVALID_EXCEPTION); result, INVALID_EXCEPTION);
result = FUNC(remainder) (plus_infty, 1); result = FUNC(remainder) (plus_infty, 1);
check_isnan_exc ("remainder(+inf, 1) == NaN plus invalid exception", check_isnan_exc ("remainder(+inf, 1) == NaN plus invalid exception",
result, INVALID_EXCEPTION); result, INVALID_EXCEPTION);
result = FUNC(remainder) (minus_infty, 1); result = FUNC(remainder) (minus_infty, 1);
check_isnan_exc ("remainder(-inf, 1) == NaN plus invalid exception", check_isnan_exc ("remainder(-inf, 1) == NaN plus invalid exception",
result, INVALID_EXCEPTION); result, INVALID_EXCEPTION);
result = FUNC(remainder) (1.625, 1.0); result = FUNC(remainder) (1.625, 1.0);
check ("remainder(1.625, 1.0) == -0.375", result, -0.375); check ("remainder(1.625, 1.0) == -0.375", result, -0.375);
result = FUNC(remainder) (-1.625, 1.0); result = FUNC(remainder) (-1.625, 1.0);
check ("remainder(-1.625, 1.0) == 0.375", result, 0.375); check ("remainder(-1.625, 1.0) == 0.375", result, 0.375);
result = FUNC(remainder) (1.625, -1.0); result = FUNC(remainder) (1.625, -1.0);
check ("remainder(1.625, -1.0) == -0.375", result, -0.375); check ("remainder(1.625, -1.0) == -0.375", result, -0.375);
result = FUNC(remainder) (-1.625, -1.0); result = FUNC(remainder) (-1.625, -1.0);
check ("remainder(-1.625, -1.0) == 0.375", result, 0.375); check ("remainder(-1.625, -1.0) == 0.375", result, 0.375);
result = FUNC(remainder) (5.0, 2.0); result = FUNC(remainder) (5.0, 2.0);
check ("remainder(5.0, 2.0) == 1.0", result, 1.0); check ("remainder(5.0, 2.0) == 1.0", result, 1.0);
result = FUNC(remainder) (3.0, 2.0); result = FUNC(remainder) (3.0, 2.0);
check ("remainder(3.0, 2.0) == -1.0", result, -1.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); result = FUNC(remquo) (1.625, 1.0, &quo);
check ("remquo(1.625, 1.0, &x) == -0.375", result, -0.375); 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); check_long ("remquo(1.625, 1.0, &x) puts 2 in x", quo, 2);
result = FUNC(remquo) (-1.625, 1.0, &quo); result = FUNC(remquo) (-1.625, 1.0, &quo);
check ("remquo(-1.625, 1.0, &x) == 0.375", result, 0.375); 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); check_long ("remquo(-1.625, 1.0, &x) puts -2 in x", quo, -2);
result = FUNC(remquo) (1.625, -1.0, &quo); result = FUNC(remquo) (1.625, -1.0, &quo);
check ("remquo(1.625, -1.0, &x) == -0.375", result, -0.375); 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); check_long ("remquo(1.625, -1.0, &x) puts -2 in x", quo, -2);
result = FUNC(remquo) (-1.625, -1.0, &quo); result = FUNC(remquo) (-1.625, -1.0, &quo);
check ("remquo(-1.625, -1.0, &x) == 0.375", result, 0.375); 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); 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 (); isfinite_test ();
isnormal_test (); isnormal_test ();
signbit_test (); signbit_test ();
/* trigonometric functions */ /* trigonometric functions */
acos_test (); acos_test ();
asin_test (); asin_test ();

View File

@ -98,3 +98,27 @@ fi
if test -f $srcdir/elf/ldconfig.c; then if test -f $srcdir/elf/ldconfig.c; then
has_ldconfig=yes has_ldconfig=yes
fi 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