1999-06-07  Andreas Jaeger  <aj@arthur.rhein-neckar.de>

	* sysdeps/unix/sysv/linux/if_index.c: Use SIGIOCGIFINDEX and fix
	another SIOGIFNAME typo.

1999-06-07  Ulrich Drepper  <drepper@cygnus.com>

	* elf/dl-lookup.c: Remove duplicated assert.h inclusion.

	* sysdeps/generic/printf_fphex.c (__printf_fphex): Optimize a little
	bit.

1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* sysdeps/generic/printf_fphex.c (__printf_fphex): Don't ignore
	the precision if the mantissa is zero.

1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* manual/lang.texi (Floating Point Parameters): GCC already
	supports long double for a long time.

1999-06-05  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>

	* math/libm-test.c (j0_test, j1_test, jn_test, y0_test, y1_test,
	yn_test): Increase some epsilons.
This commit is contained in:
Ulrich Drepper 1999-06-07 15:57:26 +00:00
parent f21aa4c28f
commit 263456bdd4
6 changed files with 242 additions and 268 deletions

View File

@ -1,3 +1,30 @@
1999-06-07 Andreas Jaeger <aj@arthur.rhein-neckar.de>
* sysdeps/unix/sysv/linux/if_index.c: Use SIGIOCGIFINDEX and fix
another SIOGIFNAME typo.
1999-06-07 Ulrich Drepper <drepper@cygnus.com>
* elf/dl-lookup.c: Remove duplicated assert.h inclusion.
* sysdeps/generic/printf_fphex.c (__printf_fphex): Optimize a little
bit.
1999-06-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* sysdeps/generic/printf_fphex.c (__printf_fphex): Don't ignore
the precision if the mantissa is zero.
1999-06-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* manual/lang.texi (Floating Point Parameters): GCC already
supports long double for a long time.
1999-06-05 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* math/libm-test.c (j0_test, j1_test, jn_test, y0_test, y1_test,
yn_test): Increase some epsilons.
1999-06-07 Ulrich Drepper <drepper@cygnus.com> 1999-06-07 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/unix/sysv/linux/sys/sysmacros.h (makedev): Handle signed * sysdeps/unix/sysv/linux/sys/sysmacros.h (makedev): Handle signed

442
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -18,7 +18,6 @@
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#include <alloca.h> #include <alloca.h>
#include <assert.h>
#include <string.h> #include <string.h>
#include <unistd.h> #include <unistd.h>
#include <elf/ldsodefs.h> #include <elf/ldsodefs.h>

View File

@ -994,9 +994,9 @@ These macro definitions can be accessed by including the header file
Macro names starting with @samp{FLT_} refer to the @code{float} type, Macro names starting with @samp{FLT_} refer to the @code{float} type,
while names beginning with @samp{DBL_} refer to the @code{double} type while names beginning with @samp{DBL_} refer to the @code{double} type
and names beginning with @samp{LDBL_} refer to the @code{long double} and names beginning with @samp{LDBL_} refer to the @code{long double}
type. (Currently GCC does not support @code{long double} as a distinct type. (If GCC does not support @code{long double} as a distinct data
data type, so the values for the @samp{LDBL_} constants are equal to the type on a target machine then the values for the @samp{LDBL_} constants
corresponding constants for the @code{double} type.)@refill are equal to the corresponding constants for the @code{double} type.)
Of these macros, only @code{FLT_RADIX} is guaranteed to be a constant Of these macros, only @code{FLT_RADIX} is guaranteed to be a constant
expression. The other macros listed here cannot be reliably used in expression. The other macros listed here cannot be reliably used in

View File

@ -405,7 +405,11 @@ __printf_fphex (FILE *fp,
} }
} }
else else
numend = numstr; {
if (precision == -1)
precision = 0;
numend = numstr;
}
/* Now we can compute the exponent string. */ /* Now we can compute the exponent string. */
expstr = _itoa_word (exponent, expbuf + sizeof expbuf, 10, 0); expstr = _itoa_word (exponent, expbuf + sizeof expbuf, 10, 0);
@ -420,7 +424,7 @@ __printf_fphex (FILE *fp,
/* A special case when the mantissa or the precision is zero and the `#' /* A special case when the mantissa or the precision is zero and the `#'
is not given. In this case we must not print the decimal point. */ is not given. In this case we must not print the decimal point. */
if ((zero_mantissa || precision == 0) && !info->alt) if (precision == 0 && !info->alt)
++width; /* This nihilates the +1 for the decimal-point ++width; /* This nihilates the +1 for the decimal-point
character in the following equation. */ character in the following equation. */
@ -435,13 +439,16 @@ __printf_fphex (FILE *fp,
outchar (' '); outchar (' ');
outchar ('0'); outchar ('0');
outchar (info->spec == 'A' ? 'X' : 'x'); if ('X' - 'A' == 'x' - 'a')
outchar (info->spec + ('x' - 'a'));
else
outchar (info->spec == 'A' ? 'X' : 'x');
outchar (leading); outchar (leading);
if ((!zero_mantissa && precision > 0) || info->alt) if (precision > 0 || info->alt)
outchar (decimal); outchar (decimal);
if (!zero_mantissa && precision > 0) if (precision > 0)
{ {
PRINT (numstr, MIN (numend - numstr, precision)); PRINT (numstr, MIN (numend - numstr, precision));
if (precision > numend - numstr) if (precision > numend - numstr)
@ -451,7 +458,10 @@ __printf_fphex (FILE *fp,
if (info->left && info->pad == '0' && width > 0) if (info->left && info->pad == '0' && width > 0)
PADN ('0', width); PADN ('0', width);
outchar (info->spec == 'A' ? 'P' : 'p'); if ('P' - 'A' == 'p' - 'a')
outchar (info->spec + ('p' - 'a'));
else
outchar (info->spec == 'A' ? 'P' : 'p');
outchar (expnegative ? '-' : '+'); outchar (expnegative ? '-' : '+');

View File

@ -29,7 +29,7 @@
#include "kernel-features.h" #include "kernel-features.h"
/* Try to get a socket to talk to the kernel. */ /* Try to get a socket to talk to the kernel. */
#if defined SIOGIFINDEX || defined SIOGIFNAME #if defined SIOCGIFINDEX || defined SIOCGIFNAME
static int static int
internal_function internal_function
opensock (void) opensock (void)
@ -73,7 +73,7 @@ opensock (void)
unsigned int unsigned int
if_nametoindex (const char *ifname) if_nametoindex (const char *ifname)
{ {
#ifndef SIOGIFINDEX #ifndef SIOCGIFINDEX
__set_errno (ENOSYS); __set_errno (ENOSYS);
return 0; return 0;
#else #else
@ -84,7 +84,7 @@ if_nametoindex (const char *ifname)
return 0; return 0;
strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name));
if (__ioctl (fd, SIOGIFINDEX, &ifr) < 0) if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0)
{ {
int saved_errno = errno; int saved_errno = errno;
__close (fd); __close (fd);
@ -113,7 +113,7 @@ if_freenameindex (struct if_nameindex *ifn)
struct if_nameindex * struct if_nameindex *
if_nameindex (void) if_nameindex (void)
{ {
#ifndef SIOGIFINDEX #ifndef SIOCGIFINDEX
__set_errno (ENOSYS); __set_errno (ENOSYS);
return NULL; return NULL;
#else #else
@ -180,7 +180,7 @@ if_nameindex (void)
struct ifreq *ifr = &ifc.ifc_req[i]; struct ifreq *ifr = &ifc.ifc_req[i];
idx[i].if_name = __strdup (ifr->ifr_name); idx[i].if_name = __strdup (ifr->ifr_name);
if (idx[i].if_name == NULL if (idx[i].if_name == NULL
|| __ioctl (fd, SIOGIFINDEX, ifr) < 0) || __ioctl (fd, SIOCGIFINDEX, ifr) < 0)
{ {
int saved_errno = errno; int saved_errno = errno;
unsigned int j; unsigned int j;
@ -207,7 +207,7 @@ if_nameindex (void)
char * char *
if_indextoname (unsigned int ifindex, char *ifname) if_indextoname (unsigned int ifindex, char *ifname)
{ {
#if !defined SIOGIFINDEX && __ASSUME_SIOCGIFNAME == 0 #if !defined SIOCGIFINDEX && __ASSUME_SIOCGIFNAME == 0
__set_errno (ENOSYS); __set_errno (ENOSYS);
return NULL; return NULL;
#else #else