Browse Source

libc_hidden_proto removal, a few more functions

Denis Vlasenko 15 years ago
parent
commit
933df87e4e
52 changed files with 117 additions and 106 deletions
  1. 9 0
      include/ctype.h
  2. 2 0
      include/stdio.h
  3. 2 2
      libc/inet/addr.c
  4. 4 4
      libc/inet/ether_addr.c
  5. 1 1
      libc/inet/getnetent.c
  6. 1 1
      libc/inet/getproto.c
  7. 1 1
      libc/inet/getservice.c
  8. 1 1
      libc/inet/herror.c
  9. 1 1
      libc/inet/ifaddrs.c
  10. 2 2
      libc/inet/inet_net.c
  11. 4 4
      libc/inet/resolv.c
  12. 1 1
      libc/inet/rpc/getrpcent.c
  13. 1 1
      libc/inet/rpc/pmap_rmt.c
  14. 6 6
      libc/inet/rpc/rcmd.c
  15. 1 1
      libc/inet/rpc/ruserpass.c
  16. 1 1
      libc/inet/rpc/svc_tcp.c
  17. 1 1
      libc/inet/rpc/svc_udp.c
  18. 1 1
      libc/misc/assert/__assert.c
  19. 12 12
      libc/misc/ctype/ctype.c
  20. 1 1
      libc/misc/error/err.c
  21. 1 1
      libc/misc/error/error.c
  22. 4 4
      libc/misc/fnmatch/fnmatch.c
  23. 5 5
      libc/misc/locale/locale.c
  24. 2 2
      libc/misc/mntent/mntent.c
  25. 3 3
      libc/misc/regex/regex.c
  26. 2 2
      libc/misc/time/time.c
  27. 3 3
      libc/misc/ttyent/getttyent.c
  28. 3 3
      libc/misc/wctype/_wctype.c
  29. 3 3
      libc/misc/wordexp/wordexp.c
  30. 4 4
      libc/pwd_grp/pwd_grp.c
  31. 3 3
      libc/stdio/_scanf.c
  32. 3 3
      libc/stdio/_vfprintf.c
  33. 1 1
      libc/stdio/fclose.c
  34. 1 1
      libc/stdio/fcloseall.c
  35. 1 1
      libc/stdio/fprintf.c
  36. 1 1
      libc/stdio/freopen.c
  37. 1 1
      libc/stdio/perror.c
  38. 1 1
      libc/stdio/popen.c
  39. 1 1
      libc/stdio/vasprintf.c
  40. 3 3
      libc/stdlib/_strtod.c
  41. 1 1
      libc/stdlib/malloc-standard/mallinfo.c
  42. 1 1
      libc/stdlib/malloc/heap_debug.c
  43. 3 3
      libc/stdlib/stdlib.c
  44. 1 1
      libc/string/psignal.c
  45. 1 1
      libc/string/strcasecmp.c
  46. 2 2
      libc/string/strcasestr.c
  47. 1 1
      libc/string/strncasecmp.c
  48. 2 2
      libc/sysdeps/linux/arm/ioperm.c
  49. 1 1
      libc/unistd/getopt-susv3.c
  50. 1 1
      libc/unistd/getopt.c
  51. 1 1
      libc/unistd/getpass.c
  52. 3 3
      libc/unistd/usershell.c

+ 9 - 0
include/ctype.h

@@ -101,17 +101,23 @@ enum
 
 /* Pointers to the default C-locale data. */
 extern const __ctype_mask_t *__C_ctype_b;
+libc_hidden_proto(__C_ctype_b)
 extern const __ctype_touplow_t *__C_ctype_toupper;
+libc_hidden_proto(__C_ctype_toupper)
 extern const __ctype_touplow_t *__C_ctype_tolower;
+libc_hidden_proto(__C_ctype_tolower)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
 
 extern __const __ctype_mask_t **__ctype_b_loc (void)
      __attribute__ ((__const));
+libc_hidden_proto(__ctype_b_loc)
 extern __const __ctype_touplow_t **__ctype_tolower_loc (void)
      __attribute__ ((__const));
+libc_hidden_proto(__ctype_tolower_loc)
 extern __const __ctype_touplow_t **__ctype_toupper_loc (void)
      __attribute__ ((__const));
+libc_hidden_proto(__ctype_toupper_loc)
 
 #define __UCLIBC_CTYPE_B	(*__ctype_b_loc())
 #define __UCLIBC_CTYPE_TOLOWER	(*__ctype_tolower_loc())
@@ -121,8 +127,11 @@ extern __const __ctype_touplow_t **__ctype_toupper_loc (void)
 
 /* Pointers to the current global locale data in use. */
 extern const __ctype_mask_t *__ctype_b;
+libc_hidden_proto(__ctype_b)
 extern const __ctype_touplow_t *__ctype_toupper;
+libc_hidden_proto(__ctype_toupper)
 extern const __ctype_touplow_t *__ctype_tolower;
+libc_hidden_proto(__ctype_tolower)
 
 #define __UCLIBC_CTYPE_B	(__ctype_b)
 #define __UCLIBC_CTYPE_TOLOWER	(__ctype_tolower)

+ 2 - 0
include/stdio.h

@@ -197,6 +197,7 @@ __BEGIN_NAMESPACE_STD
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern int fclose (FILE *__stream);
+libc_hidden_proto(fclose)
 /* Flush STREAM, or all streams if STREAM is NULL.
 
    This function is a possible cancellation point and therefore not
@@ -318,6 +319,7 @@ __BEGIN_NAMESPACE_STD
    marked with __THROW.  */
 extern int fprintf (FILE *__restrict __stream,
 		    __const char *__restrict __format, ...);
+libc_hidden_proto(fprintf)
 /* Write formatted output to stdout.
 
    This function is a possible cancellation point and therefore not

+ 2 - 2
libc/inet/addr.c

@@ -44,9 +44,9 @@
  * all else    -> decimal
  */
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 libc_hidden_proto(inet_aton)
 int inet_aton(const char *cp, struct in_addr *addrptr)

+ 4 - 4
libc/inet/ether_addr.c

@@ -34,11 +34,11 @@
 libc_hidden_proto(ether_ntoa_r)
 libc_hidden_proto(sprintf)
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
+/* libc_hidden_proto(__ctype_tolower_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_b) */
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 
 struct ether_addr *ether_aton_r(const char *asc, struct ether_addr *addr)

+ 1 - 1
libc/inet/getnetent.c

@@ -24,7 +24,7 @@
 #include <unistd.h>
 
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(inet_network)
 libc_hidden_proto(rewind)
 libc_hidden_proto(fgets)

+ 1 - 1
libc/inet/getproto.c

@@ -68,7 +68,7 @@ libc_hidden_proto(fopen)
 libc_hidden_proto(atoi)
 libc_hidden_proto(rewind)
 libc_hidden_proto(fgets)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
 
 #include <bits/uClibc_mutex.h>

+ 1 - 1
libc/inet/getservice.c

@@ -67,7 +67,7 @@
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strpbrk) */
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(atoi)
 libc_hidden_proto(rewind)
 libc_hidden_proto(fgets)

+ 1 - 1
libc/inet/herror.c

@@ -23,7 +23,7 @@
 #include <string.h>
 #include <netdb.h>
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(__h_errno_location)
 
 static const char error_msg[] = "Resolver error";

+ 1 - 1
libc/inet/ifaddrs.c

@@ -48,7 +48,7 @@ libc_hidden_proto(bind)
 /* Experimentally off - libc_hidden_proto(memset) */
 /* Experimentally off - libc_hidden_proto(mempcpy) */
 libc_hidden_proto(getsockname)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
 
 #ifndef __libc_use_alloca

+ 2 - 2
libc/inet/inet_net.c

@@ -39,9 +39,9 @@
 #include <arpa/inet.h>
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 /*

+ 4 - 4
libc/inet/resolv.c

@@ -180,7 +180,7 @@
 libc_hidden_proto(socket)
 /* libc_hidden_proto(close) */
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(random)
 libc_hidden_proto(getservbyport)
 libc_hidden_proto(gethostname)
@@ -211,12 +211,12 @@ libc_hidden_proto(res_init)
 libc_hidden_proto(res_query)
 libc_hidden_proto(res_querydomain)
 libc_hidden_proto(gethostent_r)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(__h_errno_location)
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 int __libc_getdomainname(char *name, size_t len);
 libc_hidden_proto(__libc_getdomainname)

+ 1 - 1
libc/inet/rpc/getrpcent.c

@@ -50,7 +50,7 @@
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strlen) */
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(atoi)
 libc_hidden_proto(rewind)
 libc_hidden_proto(fgets)

+ 1 - 1
libc/inet/rpc/pmap_rmt.c

@@ -80,7 +80,7 @@ libc_hidden_proto(setsockopt)
 libc_hidden_proto(recvfrom)
 libc_hidden_proto(sendto)
 libc_hidden_proto(poll)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 
 extern u_long _create_xid (void) attribute_hidden;

+ 6 - 6
libc/inet/rpc/rcmd.c

@@ -128,15 +128,15 @@ libc_hidden_proto(sigsetmask)
 libc_hidden_proto(getc_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fclose) */
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(__h_errno_location)
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
+/* libc_hidden_proto(__ctype_tolower_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_b) */
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 
 libc_hidden_proto(rresvport)

+ 1 - 1
libc/inet/rpc/ruserpass.c

@@ -60,7 +60,7 @@ libc_hidden_proto(geteuid)
 libc_hidden_proto(gethostname)
 libc_hidden_proto(fileno)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(getc_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
 

+ 1 - 1
libc/inet/rpc/svc_tcp.c

@@ -81,7 +81,7 @@ libc_hidden_proto(poll)
 libc_hidden_proto(accept)
 libc_hidden_proto(listen)
 libc_hidden_proto(fputs)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
 
 /*

+ 1 - 1
libc/inet/rpc/svc_udp.c

@@ -80,7 +80,7 @@ libc_hidden_proto(sendto)
 libc_hidden_proto(recvmsg)
 libc_hidden_proto(sendmsg)
 libc_hidden_proto(fputs)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 #define rpc_buffer(xprt) ((xprt)->xp_p1)
 #ifndef MAX

+ 1 - 1
libc/misc/assert/__assert.c

@@ -32,7 +32,7 @@
 #include <unistd.h>
 #include <bits/uClibc_uintmaxtostr.h>
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* libc_hidden_proto(abort) */
 
 /* Get the prototype from assert.h as a double-check. */

+ 12 - 12
libc/misc/ctype/ctype.c

@@ -36,9 +36,9 @@
 #include <assert.h>
 #include <locale.h>
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 #ifdef __UCLIBC_HAS_XLOCALE__
@@ -161,7 +161,7 @@ int CTYPE_NAME(NAME) (int c) \
 #ifdef L___ctype_assert
 #ifdef __UCLIBC_HAS_CTYPE_ENFORCED__
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* libc_hidden_proto(abort) */
 
 attribute_hidden void __isctype_assert(int c, int mask)
@@ -277,9 +277,9 @@ IS_FUNC_BODY(xdigit);
 
 #undef tolower
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_tolower_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 libc_hidden_proto(tolower)
 #ifdef __UCLIBC_HAS_CTYPE_TABLES__
@@ -324,7 +324,7 @@ weak_alias (tolower_l, __tolower_l)
 
 #undef toupper
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_toupper_loc)
+/* libc_hidden_proto(__ctype_toupper_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
 libc_hidden_proto(__ctype_toupper)
 #endif
@@ -440,7 +440,7 @@ libc_hidden_def(__ctype_b_loc)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
 
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_tolower_loc) */
 const __ctype_touplow_t **__ctype_tolower_loc(void)
 {
 	return &(__UCLIBC_CURLOCALE_DATA).__ctype_tolower;
@@ -455,7 +455,7 @@ libc_hidden_def(__ctype_tolower_loc)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
 
-libc_hidden_proto(__ctype_toupper_loc)
+/* libc_hidden_proto(__ctype_toupper_loc) */
 const __ctype_touplow_t **__ctype_toupper_loc(void)
 {
 	return &(__UCLIBC_CURLOCALE_DATA).__ctype_toupper;
@@ -860,7 +860,7 @@ const __ctype_mask_t __C_ctype_b_data[] = {
 };
 libc_hidden_data_def(__C_ctype_b_data)
 
-libc_hidden_proto(__C_ctype_b)
+/* libc_hidden_proto(__C_ctype_b) */
 const __ctype_mask_t *__C_ctype_b = __C_ctype_b_data + __UCLIBC_CTYPE_B_TBL_OFFSET;
 libc_hidden_data_def(__C_ctype_b)
 
@@ -979,14 +979,14 @@ const __ctype_touplow_t __C_ctype_tolower_data[] = {
 };
 libc_hidden_data_def(__C_ctype_tolower_data)
 
-libc_hidden_proto(__C_ctype_tolower)
+/* libc_hidden_proto(__C_ctype_tolower) */
 const __ctype_touplow_t *__C_ctype_tolower = __C_ctype_tolower_data
 											+ __UCLIBC_CTYPE_TO_TBL_OFFSET;
 libc_hidden_data_def(__C_ctype_tolower)
 
 #ifndef __UCLIBC_HAS_XLOCALE__
 
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_tolower) */
 const __ctype_touplow_t *__ctype_tolower = __C_ctype_tolower_data
 											+ __UCLIBC_CTYPE_TO_TBL_OFFSET;
 libc_hidden_data_def(__ctype_tolower)
@@ -1101,7 +1101,7 @@ const __ctype_touplow_t __C_ctype_toupper_data[] = {
 };
 libc_hidden_data_def(__C_ctype_toupper_data)
 
-libc_hidden_proto(__C_ctype_toupper)
+/* libc_hidden_proto(__C_ctype_toupper) */
 const __ctype_touplow_t *__C_ctype_toupper = __C_ctype_toupper_data
 											+ __UCLIBC_CTYPE_TO_TBL_OFFSET;
 libc_hidden_data_def(__C_ctype_toupper)

+ 1 - 1
libc/misc/error/err.c

@@ -26,7 +26,7 @@ libc_hidden_proto(vwarnx)
 libc_hidden_proto(verr)
 libc_hidden_proto(verrx)
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(vfprintf)
 libc_hidden_proto(__xpg_strerror_r)
 /* libc_hidden_proto(exit) */

+ 1 - 1
libc/misc/error/error.c

@@ -28,7 +28,7 @@
 
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strerror) */
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* libc_hidden_proto(exit) */
 libc_hidden_proto(putc)
 libc_hidden_proto(vfprintf)

+ 4 - 4
libc/misc/fnmatch/fnmatch.c

@@ -65,11 +65,11 @@
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* Experimentally off - libc_hidden_proto(strcoll) */
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
+/* libc_hidden_proto(__ctype_tolower_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_b) */
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 libc_hidden_proto(tolower)
 libc_hidden_proto(fnmatch)

+ 5 - 5
libc/misc/locale/locale.c

@@ -68,7 +68,7 @@
 /* Experimentally off - libc_hidden_proto(strchr) */
 libc_hidden_proto(getenv)
 #ifdef __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__C_ctype_toupper)
+/* libc_hidden_proto(__C_ctype_toupper) */
 #endif
 /*libc_hidden_proto(fflush)*/
 
@@ -364,11 +364,11 @@ libc_hidden_def(localeconv)
 /**********************************************************************/
 #if defined(L__locale_init) && !defined(__LOCALE_C_ONLY)
 
-libc_hidden_proto(__C_ctype_b)
-libc_hidden_proto(__C_ctype_tolower)
+/* libc_hidden_proto(__C_ctype_b) */
+/* libc_hidden_proto(__C_ctype_tolower) */
 #ifndef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b)
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_b) */
+/* libc_hidden_proto(__ctype_tolower) */
 libc_hidden_proto(__ctype_toupper)
 #endif
 

+ 2 - 2
libc/misc/mntent/mntent.c

@@ -20,11 +20,11 @@ libc_hidden_proto(endmntent)
 /* Experimentally off - libc_hidden_proto(strtok_r) */
 libc_hidden_proto(atoi)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(fseek)
 libc_hidden_proto(fgets)
 /* libc_hidden_proto(abort) */
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 /* Reentrant version of getmntent.  */
 struct mntent *getmntent_r (FILE *filep,

+ 3 - 3
libc/misc/regex/regex.c

@@ -67,10 +67,10 @@ libc_hidden_proto(wctype)
 #endif
 #define __mempcpy mempcpy
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
-libc_hidden_proto(__ctype_toupper_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
+/* libc_hidden_proto(__ctype_toupper_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 libc_hidden_proto(__ctype_toupper)
 #else
 libc_hidden_proto(isascii)

+ 2 - 2
libc/misc/time/time.c

@@ -183,9 +183,9 @@ libc_hidden_proto(nl_langinfo)
 libc_hidden_proto(strtol_l)
 libc_hidden_proto(strtoul_l)
 libc_hidden_proto(nl_langinfo_l)
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 #ifndef __isleap

+ 3 - 3
libc/misc/ttyent/getttyent.c

@@ -47,12 +47,12 @@ libc_hidden_proto(fgets_unlocked)
 libc_hidden_proto(getc_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 static char zapchar;

+ 3 - 3
libc/misc/wctype/_wctype.c

@@ -56,12 +56,12 @@ libc_hidden_proto(towupper_l)
 libc_hidden_proto(towctrans_l)
 libc_hidden_proto(iswctype_l)
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 
 #ifdef __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__C_ctype_tolower)
-libc_hidden_proto(__C_ctype_toupper)
+/* libc_hidden_proto(__C_ctype_tolower) */
+/* libc_hidden_proto(__C_ctype_toupper) */
 #endif
 
 /* We know wide char support is enabled.  We wouldn't be here otherwise. */

+ 3 - 3
libc/misc/wordexp/wordexp.c

@@ -63,15 +63,15 @@ libc_hidden_proto(read)
 libc_hidden_proto(getenv)
 libc_hidden_proto(getpid)
 libc_hidden_proto(sprintf)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* libc_hidden_proto(abort) */
 libc_hidden_proto(glob)
 libc_hidden_proto(globfree)
 libc_hidden_proto(wordfree)
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 #define __WORDEXP_FULL

+ 4 - 4
libc/pwd_grp/pwd_grp.c

@@ -46,12 +46,12 @@ libc_hidden_proto(fgets_unlocked)
 libc_hidden_proto(__fputc_unlocked)
 libc_hidden_proto(sprintf)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fclose) */
+/* libc_hidden_proto(fprintf) */
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 /**********************************************************************/

+ 3 - 3
libc/stdio/_scanf.c

@@ -84,7 +84,7 @@
 libc_hidden_proto(ungetc)
 libc_hidden_proto(vfscanf)
 libc_hidden_proto(vsscanf)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(getc_unlocked)
 libc_hidden_proto(__fgetc_unlocked)
 #ifdef __UCLIBC_HAS_WCHAR__
@@ -99,9 +99,9 @@ libc_hidden_proto(iswspace)
 libc_hidden_proto(fgetwc_unlocked)
 #endif
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 #ifdef __UCLIBC_HAS_SCANF_GLIBC_A_FLAG__

+ 3 - 3
libc/stdio/_vfprintf.c

@@ -729,9 +729,9 @@ void attribute_hidden _ppfs_setargs(register ppfs_t *ppfs)
 #ifdef L__ppfs_parsespec
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 /* Notes: argtype differs from glibc for the following:
@@ -1860,7 +1860,7 @@ static int _do_one_spec(FILE * __restrict stream,
 	return 0;
 }
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 int VFPRINTF_internal (FILE * __restrict stream,
 			  const FMT_TYPE * __restrict format,

+ 1 - 1
libc/stdio/fclose.c

@@ -6,7 +6,7 @@
  */
 
 #include "_stdio.h"
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 
 /* libc_hidden_proto(close) */
 libc_hidden_proto(fflush_unlocked)

+ 1 - 1
libc/stdio/fcloseall.c

@@ -10,7 +10,7 @@
 #ifdef __USE_GNU
 #include "_stdio.h"
 
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 
 /* NOTE: GLIBC difference!!! -- fcloseall
  * According to the info pages, glibc actually fclose()s all open files.

+ 1 - 1
libc/stdio/fprintf.c

@@ -10,7 +10,7 @@
 
 libc_hidden_proto(vfprintf)
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 int fprintf(FILE * __restrict stream, const char * __restrict format, ...)
 {
 	va_list arg;

+ 1 - 1
libc/stdio/freopen.c

@@ -7,7 +7,7 @@
 
 #include "_stdio.h"
 
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 
 #ifndef __DO_LARGEFILE
 # define FILEDES_ARG    (-1)

+ 1 - 1
libc/stdio/perror.c

@@ -7,7 +7,7 @@
 
 #include "_stdio.h"
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(__glibc_strerror_r)
 
 #ifdef __UCLIBC_MJN3_ONLY__

+ 1 - 1
libc/stdio/popen.c

@@ -34,7 +34,7 @@ libc_hidden_proto(dup2)
 libc_hidden_proto(fdopen)
 libc_hidden_proto(pipe)
 libc_hidden_proto(vfork)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 
 /* uClinux-2.0 has vfork, but Linux 2.0 doesn't */
 #include <sys/syscall.h>

+ 1 - 1
libc/stdio/vasprintf.c

@@ -24,7 +24,7 @@
 
 #ifdef __UCLIBC_HAS_GLIBC_CUSTOM_STREAMS__
 libc_hidden_proto(open_memstream)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(vfprintf)
 #else
 libc_hidden_proto(vsnprintf)

+ 3 - 3
libc/stdlib/_strtod.c

@@ -176,10 +176,10 @@ extern void __fp_range_check(__fpmax_t y, __fpmax_t x) attribute_hidden;
 #if defined(L___strtofpmax) || defined(L___strtofpmax_l) || defined(L___wcstofpmax) || defined(L___wcstofpmax_l)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_b) */
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 
 #if defined(L___wcstofpmax) || defined(L___wcstofpmax_l)

+ 1 - 1
libc/stdlib/malloc-standard/mallinfo.c

@@ -16,7 +16,7 @@
 
 #include "malloc.h"
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 /* ------------------------------ mallinfo ------------------------------ */
 libc_hidden_proto(mallinfo)

+ 1 - 1
libc/stdlib/malloc/heap_debug.c

@@ -18,7 +18,7 @@
 #include <unistd.h>
 
 libc_hidden_proto(vfprintf)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(_exit)
 
 #include "malloc.h"

+ 3 - 3
libc/stdlib/stdlib.c

@@ -501,9 +501,9 @@ unsigned long attribute_hidden _stdlib_strto_l(register const Wchar * __restrict
  * strtoul (sflag = 0). */
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 unsigned long attribute_hidden __XL_NPP(_stdlib_strto_l)(register const Wchar * __restrict str,
@@ -653,7 +653,7 @@ unsigned long long attribute_hidden _stdlib_strto_ll(register const Wchar * __re
 #else  /* defined(__UCLIBC_HAS_XLOCALE__) && !defined(__UCLIBC_DO_XLOCALE) */
 
 #if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 /* This is the main work fuction which handles both strtoll (sflag = 1) and
  * strtoull (sflag = 0). */

+ 1 - 1
libc/string/psignal.c

@@ -10,7 +10,7 @@
 #include <string.h>
 #include <signal.h>
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* Experimentally off - libc_hidden_proto(strsignal) */
 
 /* TODO: make this threadsafe with a reentrant version of strsignal? */

+ 1 - 1
libc/string/strcasecmp.c

@@ -31,7 +31,7 @@ libc_hidden_proto(tolower_l)
 #  define TOLOWER(C) tolower_l((C), locale_arg)
 # else
 #if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 libc_hidden_proto(tolower)
 #  define TOLOWER(C) tolower((C))

+ 2 - 2
libc/string/strcasestr.c

@@ -9,9 +9,9 @@
 #include <ctype.h>
 
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_tolower_loc)
+/* libc_hidden_proto(__ctype_tolower_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 libc_hidden_proto(tolower)
 

+ 1 - 1
libc/string/strncasecmp.c

@@ -31,7 +31,7 @@ libc_hidden_proto(tolower_l)
 #  define TOLOWER(C) tolower_l((C), locale_arg)
 # else
 #if !defined __UCLIBC_HAS_XLOCALE__ && defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_tolower)
+/* libc_hidden_proto(__ctype_tolower) */
 #endif
 libc_hidden_proto(tolower)
 #  define TOLOWER(C) tolower((C))

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

@@ -52,10 +52,10 @@ libc_hidden_proto(readlink)
 libc_hidden_proto(mmap)
 libc_hidden_proto(sscanf)
 libc_hidden_proto(fscanf)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 libc_hidden_proto(fgets)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 /* Experimentally off - libc_hidden_proto(strcmp) */
 libc_hidden_proto(open)
 /* libc_hidden_proto(close) */

+ 1 - 1
libc/unistd/getopt-susv3.c

@@ -23,7 +23,7 @@
 #include <stdio.h>
 #include <getopt.h>
 
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 /* Experimentally off - libc_hidden_proto(strchr) */
 
 #ifdef __UCLIBC_MJN3_ONLY__

+ 1 - 1
libc/unistd/getopt.c

@@ -126,7 +126,7 @@
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* Experimentally off - libc_hidden_proto(strncmp) */
 libc_hidden_proto(getenv)
-libc_hidden_proto(fprintf)
+/* libc_hidden_proto(fprintf) */
 
 /* For communication from `getopt' to the caller.
    When `getopt' finds an option that takes an argument,

+ 1 - 1
libc/unistd/getpass.c

@@ -28,7 +28,7 @@ libc_hidden_proto(tcsetattr)
 libc_hidden_proto(tcgetattr)
 libc_hidden_proto(setvbuf)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(fileno)
 libc_hidden_proto(fflush)
 libc_hidden_proto(fgets)

+ 3 - 3
libc/unistd/usershell.c

@@ -44,14 +44,14 @@
 
 libc_hidden_proto(fstat)
 libc_hidden_proto(fopen)
-libc_hidden_proto(fclose)
+/* libc_hidden_proto(fclose) */
 libc_hidden_proto(__fsetlocking)
 libc_hidden_proto(fileno)
 libc_hidden_proto(fgets_unlocked)
 #ifdef __UCLIBC_HAS_XLOCALE__
-libc_hidden_proto(__ctype_b_loc)
+/* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
-libc_hidden_proto(__ctype_b)
+/* libc_hidden_proto(__ctype_b) */
 #endif
 
 /*