Move stdio-common/_itoa.h to sysdeps/generic
authorH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2012 23:00:23 +0000 (16:00 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 20 Mar 2012 23:00:23 +0000 (16:00 -0700)
52 files changed:
ChangeLog
debug/backtracesymsfd.c
debug/segfault.c
elf/dl-cache.c
elf/dl-minimal.c
elf/dl-misc.c
elf/dl-sysdep.c
elf/dl-version.c
elf/rtld.c
hurd/hurdsock.c
hurd/lookup-retry.c
malloc/malloc.c
malloc/mtrace.c
nscd/nscd_getgr_r.c
nscd/nscd_getpw_r.c
nscd/nscd_getserv_r.c
posix/getopt_init.c
posix/wordexp.c
stdio-common/_itoa.c
stdio-common/_itowa.c
stdio-common/printf_fphex.c
stdio-common/vfprintf.c
string/_strerror.c
sysdeps/generic/_itoa.h [moved from stdio-common/_itoa.h with 100% similarity]
sysdeps/generic/elf/backtracesymsfd.c
sysdeps/i386/i686/hp-timing.h
sysdeps/mach/_strerror.c
sysdeps/mach/hurd/powerpc/register-dump.h
sysdeps/mach/hurd/sethostid.c
sysdeps/mach/hurd/xmknodat.c
sysdeps/mach/xpg-strerror.c
sysdeps/powerpc/powerpc32/dl-machine.c
sysdeps/powerpc/powerpc32/power4/hp-timing.h
sysdeps/powerpc/powerpc32/register-dump.h
sysdeps/powerpc/powerpc64/dl-machine.c
sysdeps/powerpc/powerpc64/hp-timing.h
sysdeps/powerpc/powerpc64/register-dump.h
sysdeps/sparc/sparc32/sparcv9/hp-timing.h
sysdeps/sparc/sparc64/hp-timing.h
sysdeps/unix/sysv/linux/fd_to_filename.h
sysdeps/unix/sysv/linux/futimes.c
sysdeps/unix/sysv/linux/i386/register-dump.h
sysdeps/unix/sysv/linux/ptsname.c
sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h
sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h
sysdeps/unix/sysv/linux/sh/sh3/register-dump.h
sysdeps/unix/sysv/linux/sh/sh4/register-dump.h
sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h
sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h
sysdeps/unix/sysv/linux/ttyname.c
sysdeps/unix/sysv/linux/ttyname_r.c
sysdeps/unix/sysv/linux/x86_64/register-dump.h

index 268d0ac..edac2dc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,69 @@
 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
 
+       * debug/backtracesymsfd.c: Include <_itoa.h> instead of
+       <stdio-common/_itoa.h>.
+       * debug/segfault.c: Likewise.
+       * elf/dl-cache.c: Likewise.
+       * elf/dl-minimal.c: Likewise.
+       * elf/dl-misc.c: Likewise.
+       * elf/dl-sysdep.c: Likewise.
+       * elf/dl-version.c: Likewise.
+       * elf/rtld.c: Likewise.
+       * hurd/hurdsock.c: Likewise.
+       * hurd/lookup-retry.c: Likewise.
+       * malloc/malloc.c: Likewise.
+       * malloc/mtrace.c: Likewise.
+       * nscd/nscd_getgr_r.c: Likewise.
+       * nscd/nscd_getpw_r.c: Likewise.
+       * nscd/nscd_getserv_r.c: Likewise.
+       * posix/getopt_init.c: Likewise.
+       * posix/wordexp.c: Likewise.
+       * stdio-common/_itoa.c: Likewise.
+       * stdio-common/printf_fphex.c: Likewise.
+       * stdio-common/vfprintf.c: Likewise.
+       * string/_strerror.c: Likewise.
+       * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
+       * sysdeps/i386/i686/hp-timing.h: Likewise.
+       * sysdeps/mach/_strerror.c: Likewise.
+       * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
+       * sysdeps/mach/hurd/sethostid.c: Likewise.
+       * sysdeps/mach/hurd/xmknodat.c: Likewise.
+       * sysdeps/mach/xpg-strerror.c: Likewise.
+       * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
+       * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
+       * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
+       * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
+       * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
+       * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
+       * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
+       * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
+       * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
+       * sysdeps/unix/sysv/linux/futimes.c: Likewise.
+       * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
+       * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
+       * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
+
+       * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
+
+       * stdio-common/_itoa.h: Moved to ...
+       * sysdeps/generic/_itoa.h: Here.
+
+       * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
+
+       * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
+       instead of "_itoa.h" and "_itowa.h".
+       * stdio-common/vfprintf.: Likewise.
+
+2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
+
        * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
        <bits/wordsize.h>.
        (__signbitf): Check __x86_64__ instead of __WORDSIZE.
index fe247d8..2345853 100644 (file)
@@ -21,7 +21,7 @@
 #include <string.h>
 #include <sys/uio.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <not-cancel.h>
 
 #if __ELF_NATIVE_CLASS == 32
index 18f8115..98886db 100644 (file)
@@ -29,7 +29,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <ldsodefs.h>
 
 #include <bp-checks.h>
index 2e6f88b..0357dff 100644 (file)
@@ -24,7 +24,7 @@
 #include <dl-cache.h>
 #include <dl-procinfo.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #ifndef _DL_PLATFORMS_COUNT
 # define _DL_PLATFORMS_COUNT 0
index 3a984af..316de99 100644 (file)
@@ -26,7 +26,7 @@
 #include <sys/param.h>
 #include <sys/types.h>
 #include <ldsodefs.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include <assert.h>
 
index 9bf642d..22fbba3 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/stat.h>
 #include <sys/uio.h>
 #include <sysdep.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <bits/libc-lock.h>
 
 /* Read the whole contents of FILE into new mmap'd space with given
index 0920cc1..1cb4460 100644 (file)
@@ -29,7 +29,7 @@
 #include <sys/stat.h>
 #include <sys/mman.h>
 #include <ldsodefs.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <fpu_control.h>
 
 #include <entry.h>
index e314e02..af7f899 100644 (file)
@@ -23,7 +23,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <ldsodefs.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include <assert.h>
 
index 3e15447..1cc9cf3 100644 (file)
@@ -27,7 +27,7 @@
 #include <sys/param.h>
 #include <sys/stat.h>
 #include <ldsodefs.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <entry.h>
 #include <fpu_control.h>
 #include <hp-timing.h>
index 170a3f6..f3611ec 100644 (file)
@@ -22,7 +22,7 @@
 #include <string.h>
 #include <hurd/paths.h>
 #include <stdio.h>
-#include "stdio-common/_itoa.h"
+#include <_itoa.h>
 #include <cthreads.h>          /* For `struct mutex'.  */
 #include "hurdmalloc.h"                /* XXX */
 
index c65eb5a..3c506a0 100644 (file)
@@ -24,7 +24,7 @@
 #include <limits.h>
 #include <fcntl.h>
 #include <string.h>
-#include "stdio-common/_itoa.h"
+#include <_itoa.h>
 
 /* Translate the error from dir_lookup into the error the user sees.  */
 static inline error_t
index d7d79e0..79cdc52 100644 (file)
 #include <malloc-machine.h>
 
 #include <atomic.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <bits/wordsize.h>
 #include <sys/sysinfo.h>
 
index 67e3e44..e299a16 100644 (file)
@@ -31,7 +31,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include <libc-internal.h>
 
index ac3d85f..54372e4 100644 (file)
@@ -31,7 +31,7 @@
 #include <sys/uio.h>
 #include <sys/un.h>
 #include <not-cancel.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include "nscd-client.h"
 #include "nscd_proto.h"
index 409b672..e405057 100644 (file)
@@ -30,7 +30,7 @@
 #include <sys/uio.h>
 #include <sys/un.h>
 #include <not-cancel.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include "nscd-client.h"
 #include "nscd_proto.h"
index ff85d82..acf7e22 100644 (file)
@@ -20,7 +20,7 @@
 #include <errno.h>
 #include <string.h>
 #include <not-cancel.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #include "nscd-client.h"
 #include "nscd_proto.h"
index 9bcbd9c..55003d4 100644 (file)
@@ -27,7 +27,7 @@
 #include <unistd.h>
 #include <sys/types.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* Variable to synchronize work.  */
 char *__getopt_nonoption_flags;
index ece5109..5ace137 100644 (file)
@@ -42,7 +42,7 @@
 #include <kernel-features.h>
 
 #include <bits/libc-lock.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* Undefine the following line for the production version.  */
 /* #define NDEBUG 1 */
index e52f666..3dfff8f 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdlib/gmp-impl.h>
 #include <stdlib/longlong.h>
 
-#include "_itoa.h"
+#include <_itoa.h>
 
 
 /* Canonize environment.  For some architectures not all values might
index 8047c87..1ebc712 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdlib/gmp-impl.h>
 #include <stdlib/longlong.h>
 
-#include "_itowa.h"
+#include <_itowa.h>
 
 
 /* Canonize environment.  For some architectures not all values might
index 01142f9..97ed83b 100644 (file)
@@ -25,8 +25,8 @@
 #include <stdio.h>
 #include <string.h>
 #include <wchar.h>
-#include "_itoa.h"
-#include "_itowa.h"
+#include <_itoa.h>
+#include <_itowa.h>
 #include <locale/localeinfo.h>
 
 /* #define NDEBUG 1*/          /* Undefine this for debugging assertions.  */
index e454927..1e90483 100644 (file)
@@ -26,7 +26,7 @@
 #include <wchar.h>
 #include <bits/libc-lock.h>
 #include <sys/param.h>
-#include "_itoa.h"
+#include <_itoa.h>
 #include <locale/localeinfo.h>
 #include <stdio.h>
 
 # define ISDIGIT(Ch)   ((unsigned int) ((Ch) - L'0') < 10)
 # define STR_LEN(Str)  __wcslen (Str)
 
-# include "_itowa.h"
+# include <_itowa.h>
 
 # define PUT(F, S, N)  _IO_sputn ((F), (S), (N))
 # define PAD(Padchar) \
index 8754079..6af6226 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* It is critical here that we always use the `dcgettext' function for
    the message translation.  Since <libintl.h> only defines the macro
similarity index 100%
rename from stdio-common/_itoa.h
rename to sysdeps/generic/_itoa.h
index 8b4a836..3562c50 100644 (file)
@@ -21,7 +21,7 @@
 #include <string.h>
 #include <sys/uio.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <ldsodefs.h>
 
 #if __ELF_NATIVE_CLASS == 32
index 852f778..1d8684c 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* The macros defined here use the timestamp counter in i586 and up versions
    of the x86 processors.  They provide a very accurate way to measure the
index 3c09288..e3a5c8e 100644 (file)
@@ -21,7 +21,7 @@
 #include <mach/error.h>
 #include <errorlib.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* It is critical here that we always use the `dcgettext' function for
    the message translation.  Since <libintl.h> only defines the macro
index 2585797..80d545e 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* This prints out the information in the following form: */
 static const char dumpform[] = "\
index d1ff1b0..7fadf6a 100644 (file)
@@ -18,7 +18,7 @@
 #include <unistd.h>
 #include <hurd.h>
 #include "hurdhost.h"
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* Set the current machine's Internet number to ID.
    This call is restricted to the super-user.  */
index a37b918..acd1a8c 100644 (file)
@@ -23,7 +23,7 @@
 #include <hurd/fd.h>
 #include <hurd/paths.h>
 #include <fcntl.h>
-#include "stdio-common/_itoa.h"
+#include <_itoa.h>
 #include <string.h>
 #include <sys/types.h>
 
index 997c5b6..421d758 100644 (file)
@@ -23,7 +23,7 @@
 #include <mach/error.h>
 #include <errorlib.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* It is critical here that we always use the `dcgettext' function for
    the message translation.  Since <libintl.h> only defines the macro
index 9ad6bbb..e535480 100644 (file)
@@ -23,7 +23,7 @@
 #include <ldsodefs.h>
 #include <elf/dynamic-link.h>
 #include <dl-machine.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* The value __cache_line_size is defined in dl-sysdep.c and is initialised
    by _dl_sysdep_start via DL_PLATFORM_INIT.  */
index 8370f72..a80168a 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <atomic.h>
 
 /* The macros defined here use the powerpc 64-bit time base register.
index d9b520e..2936de2 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* This prints out the information in the following form: */
 static const char dumpform[] = "\
index 6a8e68f..8e216ed 100644 (file)
@@ -19,7 +19,7 @@
 #include <string.h>
 #include <unistd.h>
 #include <ldsodefs.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <dl-machine.h>
 
 void
index b4cf2a4..dc10bc4 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <atomic.h>
 
 /* The macros defined here use the powerpc 64-bit time base register.
index e301b0f..917886d 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* This prints out the information in the following form: */
 static const char dumpform[] = "\
index b90bb84..d0f896d 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #define HP_TIMING_AVAIL                (1)
 #define HP_TIMING_INLINE       (1)
index b68f653..684b846 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <string.h>
 #include <sys/param.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 #define HP_TIMING_AVAIL                (1)
 #define HP_TIMING_INLINE       (1)
index feefc2b..ee939af 100644 (file)
@@ -19,7 +19,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <sys/stat.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 static inline const char *
 fd_to_filename (int fd)
index cd76f6f..913bd10 100644 (file)
@@ -22,7 +22,7 @@
 #include <time.h>
 #include <utime.h>
 #include <sys/time.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <fcntl.h>
 
 #include <kernel-features.h>
index d2c5c3f..7f54f67 100644 (file)
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 41edd8f..fb09769 100644 (file)
@@ -26,7 +26,7 @@
 #include <termios.h>
 #include <unistd.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* Check if DEV corresponds to a master pseudo terminal device.  */
 #define MASTER_P(Dev)                                                         \
index 0c3b83c..1f1a859 100644 (file)
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 0cf89f1..671481d 100644 (file)
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 9562882..510863e 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index d31ca1f..f05447c 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 0d0cdd6..be6ad74 100644 (file)
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 8ef6fde..d8e7626 100644 (file)
@@ -18,7 +18,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format:
 
index 70b2d51..0cfb474 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <kernel-features.h>
 
 #if 0
index a12849a..f097311 100644 (file)
@@ -27,7 +27,7 @@
 #include <string.h>
 #include <stdlib.h>
 
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 #include <kernel-features.h>
 
 static int getttyname_r (char *buf, size_t buflen,
index 8315791..3ef8e09 100644 (file)
@@ -17,7 +17,7 @@
    <http://www.gnu.org/licenses/>.  */
 
 #include <sys/uio.h>
-#include <stdio-common/_itoa.h>
+#include <_itoa.h>
 
 /* We will print the register dump in this format: