Browse Source

Provide token prototypes for functions that are external but have no header

This cuts down on a lot of noise from gcc-4.4

Signed-off-by: Ron Lee <ron@debian.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Ron 16 years ago
parent
commit
00c8ece258

+ 2 - 3
libc/misc/elf/dl-support.c

@@ -17,9 +17,8 @@
 ElfW(Phdr) *_dl_phdr;
 ElfW(Phdr) *_dl_phdr;
 size_t _dl_phnum;
 size_t _dl_phnum;
 
 
-void
+void internal_function _dl_aux_init (ElfW(auxv_t) *av);
-internal_function
+void internal_function _dl_aux_init (ElfW(auxv_t) *av)
-_dl_aux_init (ElfW(auxv_t) *av)
 {
 {
    /* Get the program headers base address from the aux vect */
    /* Get the program headers base address from the aux vect */
    _dl_phdr = (ElfW(Phdr) *) av[AT_PHDR].a_un.a_val;
    _dl_phdr = (ElfW(Phdr) *) av[AT_PHDR].a_un.a_val;

+ 2 - 3
libc/sysdeps/linux/arm/aeabi_assert.c

@@ -22,9 +22,8 @@
 
 
 /* libc_hidden_proto(__assert) */
 /* libc_hidden_proto(__assert) */
 
 
-void
+void __aeabi_assert(const char *assertion, const char *file, unsigned int line);
-__aeabi_assert (const char *assertion, const char *file,
+void __aeabi_assert(const char *assertion, const char *file, unsigned int line)
-		unsigned int line)
 {
 {
   __assert (assertion, file, line, NULL);
   __assert (assertion, file, line, NULL);
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_atexit.c

@@ -24,8 +24,8 @@ libc_hidden_proto(__cxa_atexit)
 /* Register a function to be called by exit or when a shared library
 /* Register a function to be called by exit or when a shared library
    is unloaded.  This routine is like __cxa_atexit, but uses the
    is unloaded.  This routine is like __cxa_atexit, but uses the
    calling sequence required by the ARM EABI.  */
    calling sequence required by the ARM EABI.  */
-int
+int __aeabi_atexit (void *arg, void (*func) (void *), void *d);
-__aeabi_atexit (void *arg, void (*func) (void *), void *d)
+int __aeabi_atexit (void *arg, void (*func) (void *), void *d)
 {
 {
   return __cxa_atexit (func, arg, d);
   return __cxa_atexit (func, arg, d);
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_errno_addr.c

@@ -18,8 +18,8 @@
 
 
 #include <errno.h>
 #include <errno.h>
 
 
-volatile int *
+volatile int * __aeabi_errno_addr (void);
-__aeabi_errno_addr (void)
+volatile int * __aeabi_errno_addr (void)
 {
 {
   return &errno;
   return &errno;
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_localeconv.c

@@ -20,8 +20,8 @@
 
 
 /* libc_hidden_proto(localeconv) */
 /* libc_hidden_proto(localeconv) */
 
 
-struct lconv *
+struct lconv * __aeabi_localeconv (void);
-__aeabi_localeconv (void)
+struct lconv * __aeabi_localeconv (void)
 {
 {
   return localeconv ();
   return localeconv ();
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_memclr.c

@@ -22,8 +22,8 @@
 
 
 /* Clear memory.  Can't alias to bzero because it's not defined in the
 /* Clear memory.  Can't alias to bzero because it's not defined in the
    same translation unit.  */
    same translation unit.  */
-void
+void __aeabi_memclr (void *dest, size_t n);
-__aeabi_memclr (void *dest, size_t n)
+void __aeabi_memclr (void *dest, size_t n)
 {
 {
   memset (dest, 0, n);
   memset (dest, 0, n);
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_memcpy.c

@@ -23,8 +23,8 @@
 /* Copy memory like memcpy, but no return value required.  Can't alias
 /* Copy memory like memcpy, but no return value required.  Can't alias
    to memcpy because it's not defined in the same translation
    to memcpy because it's not defined in the same translation
    unit.  */
    unit.  */
-void
+void __aeabi_memcpy (void *dest, const void *src, size_t n);
-__aeabi_memcpy (void *dest, const void *src, size_t n)
+void __aeabi_memcpy (void *dest, const void *src, size_t n)
 {
 {
   memcpy (dest, src, n);
   memcpy (dest, src, n);
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_memmove.c

@@ -23,8 +23,8 @@
 /* Copy memory like memmove, but no return value required.  Can't
 /* Copy memory like memmove, but no return value required.  Can't
    alias to memmove because it's not defined in the same translation
    alias to memmove because it's not defined in the same translation
    unit.  */
    unit.  */
-void
+void __aeabi_memmove (void *dest, const void *src, size_t n);
-__aeabi_memmove (void *dest, const void *src, size_t n)
+void __aeabi_memmove (void *dest, const void *src, size_t n)
 {
 {
   memmove (dest, src, n);
   memmove (dest, src, n);
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/aeabi_memset.c

@@ -22,8 +22,8 @@
 
 
 /* Set memory like memset, but different argument order and no return
 /* Set memory like memset, but different argument order and no return
    value required.  */
    value required.  */
-void
+void __aeabi_memset (void *dest, size_t n, int c);
-__aeabi_memset (void *dest, size_t n, int c)
+void __aeabi_memset (void *dest, size_t n, int c)
 {
 {
   memset (dest, c, n);
   memset (dest, c, n);
 }
 }

+ 6 - 9
libc/sysdeps/linux/arm/aeabi_unwind_cpp_pr1.c

@@ -24,20 +24,17 @@
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 
 
-attribute_hidden
+attribute_hidden void __aeabi_unwind_cpp_pr0 (void);
-void
+attribute_hidden void __aeabi_unwind_cpp_pr0 (void)
-__aeabi_unwind_cpp_pr0 (void)
 {
 {
 }
 }
 
 
-attribute_hidden
+attribute_hidden void __aeabi_unwind_cpp_pr1 (void);
-void
+attribute_hidden void __aeabi_unwind_cpp_pr1 (void)
-__aeabi_unwind_cpp_pr1 (void)
 {
 {
 }
 }
 
 
-attribute_hidden
+attribute_hidden void __aeabi_unwind_cpp_pr2 (void);
-void
+attribute_hidden void __aeabi_unwind_cpp_pr2 (void)
-__aeabi_unwind_cpp_pr2 (void)
 {
 {
 }
 }

+ 2 - 2
libc/sysdeps/linux/arm/find_exidx.c

@@ -65,8 +65,8 @@ find_exidx_callback (struct dl_phdr_info * info, size_t size, void * ptr)
 
 
 /* Find the exception index table containing PC.  */
 /* Find the exception index table containing PC.  */
 
 
-_Unwind_Ptr
+_Unwind_Ptr __gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount);
-__gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount)
+_Unwind_Ptr __gnu_Unwind_Find_exidx (_Unwind_Ptr pc, int * pcount)
 {
 {
   struct unw_eh_callback_data data;
   struct unw_eh_callback_data data;
 
 

+ 2 - 2
libpthread/linuxthreads.old/sysdeps/arm/pt-machine.h

@@ -33,8 +33,8 @@
    time; let's hope nobody tries to use one.  */
    time; let's hope nobody tries to use one.  */
 
 
 /* Spinlock implementation; required.  */
 /* Spinlock implementation; required.  */
-PT_EI long int
+PT_EI long int testandset (int *spinlock);
-testandset (int *spinlock)
+PT_EI long int testandset (int *spinlock)
 {
 {
   register unsigned int ret;
   register unsigned int ret;
 
 

+ 3 - 0
utils/chroot_realpath.c

@@ -24,6 +24,9 @@
 
 
 #define MAX_READLINKS 32
 #define MAX_READLINKS 32
 
 
+char *chroot_realpath(const char *chroot, const char *path,
+		      char resolved_path[]);
+
 char *chroot_realpath(const char *chroot, const char *path,
 char *chroot_realpath(const char *chroot, const char *path,
 		      char resolved_path[])
 		      char resolved_path[])
 {
 {