Browse Source

Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)

Denis Vlasenko 15 years ago
parent
commit
cb97aadebf
100 changed files with 656 additions and 221 deletions
  1. 9 0
      include/arpa/inet.h
  2. 3 0
      include/arpa/nameser.h
  3. 1 0
      include/assert.h
  4. 5 0
      include/ctype.h
  5. 7 0
      include/dirent.h
  6. 4 0
      include/err.h
  7. 4 0
      include/fcntl.h
  8. 1 0
      include/fnmatch.h
  9. 5 0
      include/glob.h
  10. 5 0
      include/grp.h
  11. 2 0
      include/langinfo.h
  12. 2 0
      include/libc-internal.h
  13. 3 0
      include/locale.h
  14. 3 0
      include/malloc.h
  15. 3 0
      include/mntent.h
  16. 3 0
      include/net/if.h
  17. 28 0
      include/netdb.h
  18. 1 0
      include/netinet/ether.h
  19. 2 0
      include/netinet/in.h
  20. 4 0
      include/pwd.h
  21. 3 0
      include/resolv.h
  22. 4 0
      include/rpc/auth.h
  23. 1 0
      include/rpc/auth_des.h
  24. 1 0
      include/rpc/auth_unix.h
  25. 10 2
      include/rpc/clnt.h
  26. 5 0
      include/rpc/netdb.h
  27. 3 0
      include/rpc/pmap_clnt.h
  28. 2 0
      include/rpc/pmap_prot.h
  29. 3 0
      include/rpc/pmap_rmt.h
  30. 6 0
      include/rpc/rpc.h
  31. 3 0
      include/rpc/rpc_msg.h
  32. 15 1
      include/rpc/svc.h
  33. 1 0
      include/rpc/svc_auth.h
  34. 21 0
      include/rpc/xdr.h
  35. 7 0
      include/search.h
  36. 4 0
      include/shadow.h
  37. 19 2
      include/signal.h
  38. 41 0
      include/stdio.h
  39. 1 0
      include/stdio_ext.h
  40. 25 0
      include/stdlib.h
  41. 2 0
      include/string.h
  42. 2 0
      include/sys/mman.h
  43. 1 0
      include/sys/poll.h
  44. 4 0
      include/sys/resource.h
  45. 1 0
      include/sys/select.h
  46. 12 0
      include/sys/socket.h
  47. 6 0
      include/sys/stat.h
  48. 2 0
      include/sys/statfs.h
  49. 2 0
      include/sys/statvfs.h
  50. 4 0
      include/sys/syslog.h
  51. 3 0
      include/sys/time.h
  52. 1 0
      include/sys/times.h
  53. 1 0
      include/sys/timex.h
  54. 1 0
      include/sys/utsname.h
  55. 2 0
      include/sys/wait.h
  56. 4 0
      include/termios.h
  57. 11 0
      include/time.h
  58. 3 0
      include/ttyent.h
  59. 48 0
      include/unistd.h
  60. 1 0
      include/utime.h
  61. 2 0
      include/utmp.h
  62. 40 0
      include/wchar.h
  63. 15 0
      include/wctype.h
  64. 1 0
      include/wordexp.h
  65. 7 7
      libc/inet/addr.c
  66. 1 1
      libc/inet/ether_addr.c
  67. 11 11
      libc/inet/getaddrinfo.c
  68. 3 3
      libc/inet/getnetbyad.c
  69. 3 3
      libc/inet/getnetbynm.c
  70. 5 5
      libc/inet/getnetent.c
  71. 7 7
      libc/inet/getproto.c
  72. 8 8
      libc/inet/getservice.c
  73. 2 2
      libc/inet/herror.c
  74. 4 4
      libc/inet/hostid.c
  75. 3 3
      libc/inet/if_index.c
  76. 4 4
      libc/inet/ifaddrs.c
  77. 1 1
      libc/inet/in6_addr.c
  78. 1 1
      libc/inet/inet_net.c
  79. 2 2
      libc/inet/ntop.c
  80. 29 28
      libc/inet/resolv.c
  81. 2 2
      libc/inet/rpc/auth_none.c
  82. 9 9
      libc/inet/rpc/auth_unix.c
  83. 6 6
      libc/inet/rpc/authunix_prot.c
  84. 2 2
      libc/inet/rpc/bindresvport.c
  85. 6 6
      libc/inet/rpc/clnt_generic.c
  86. 5 5
      libc/inet/rpc/clnt_perror.c
  87. 5 5
      libc/inet/rpc/clnt_raw.c
  88. 2 2
      libc/inet/rpc/clnt_simple.c
  89. 13 13
      libc/inet/rpc/clnt_tcp.c
  90. 14 14
      libc/inet/rpc/clnt_udp.c
  91. 16 16
      libc/inet/rpc/clnt_unix.c
  92. 2 2
      libc/inet/rpc/create_xid.c
  93. 7 7
      libc/inet/rpc/getrpcent.c
  94. 2 2
      libc/inet/rpc/getrpcport.c
  95. 5 5
      libc/inet/rpc/pm_getmaps.c
  96. 5 5
      libc/inet/rpc/pm_getport.c
  97. 6 6
      libc/inet/rpc/pmap_clnt.c
  98. 2 2
      libc/inet/rpc/pmap_prot.c
  99. 4 4
      libc/inet/rpc/pmap_prot2.c
  100. 13 13
      libc/inet/rpc/pmap_rmt.c

+ 9 - 0
include/arpa/inet.h

@@ -33,6 +33,7 @@ __BEGIN_DECLS
 /* Convert Internet host address from numbers-and-dots notation in CP
    into binary data in network byte order.  */
 extern in_addr_t inet_addr (__const char *__cp) __THROW;
+libc_hidden_proto(inet_addr)
 
 /* Return the local host address part of the Internet address in IN.  */
 extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;
@@ -41,25 +42,31 @@ extern in_addr_t inet_lnaof (struct in_addr __in) __THROW;
    network number NET with the local address HOST.  */
 extern struct in_addr inet_makeaddr (in_addr_t __net, in_addr_t __host)
      __THROW;
+libc_hidden_proto(inet_makeaddr)
 
 /* Return network number part of the Internet address IN.  */
 extern in_addr_t inet_netof (struct in_addr __in) __THROW;
+libc_hidden_proto(inet_netof)
 
 /* Extract the network number in network byte order from the address
    in numbers-and-dots natation starting at CP.  */
 extern in_addr_t inet_network (__const char *__cp) __THROW;
+libc_hidden_proto(inet_network)
 
 /* Convert Internet number in IN to ASCII representation.  The return value
    is a pointer to an internal array containing the string.  */
 extern char *inet_ntoa (struct in_addr __in) __THROW;
+libc_hidden_proto(inet_ntoa)
 /* Recursion-safe flavor */
 extern char *inet_ntoa_r (struct in_addr __in, char *__buf) __THROW;
+libc_hidden_proto(inet_ntoa_r)
 
 /* Convert from presentation format of an Internet number in buffer
    starting at CP to the binary network format and store result for
    interface type AF in buffer starting at BUF.  */
 extern int inet_pton (int __af, __const char *__restrict __cp,
 		      void *__restrict __buf) __THROW;
+libc_hidden_proto(inet_pton)
 
 /* Convert a Internet address in binary network format for interface
    type AF in buffer starting at CP to presentation form and place
@@ -67,6 +74,7 @@ extern int inet_pton (int __af, __const char *__restrict __cp,
 extern __const char *inet_ntop (int __af, __const void *__restrict __cp,
 				char *__restrict __buf, socklen_t __len)
      __THROW;
+libc_hidden_proto(inet_ntop)
 
 
 /* The following functions are not part of XNS 5.2.  */
@@ -74,6 +82,7 @@ extern __const char *inet_ntop (int __af, __const void *__restrict __cp,
 /* Convert Internet host address from numbers-and-dots notation in CP
    into binary data and store the result in the structure INP.  */
 extern int inet_aton (__const char *__cp, struct in_addr *__inp) __THROW;
+libc_hidden_proto(inet_aton)
 
 /* Format a network number NET into presentation format and place result
    in buffer starting at BUF with length of LEN bytes.  */

+ 3 - 0
include/arpa/nameser.h

@@ -519,13 +519,16 @@ int		ns_parse_ttl (const char *, u_long *) __THROW;
 u_int32_t	ns_datetosecs (const char *cp, int *errp) __THROW;
 int		ns_name_ntol (const u_char *, u_char *, size_t) __THROW;
 int		ns_name_ntop (const u_char *, char *, size_t) __THROW;
+libc_hidden_proto(ns_name_ntop)
 int		ns_name_pton (const char *, u_char *, size_t) __THROW;
 int		ns_name_unpack (const u_char *, const u_char *,
 				const u_char *, u_char *, size_t) __THROW;
+libc_hidden_proto(ns_name_unpack)
 int		ns_name_pack (const u_char *, u_char *, int,
 			      const u_char **, const u_char **) __THROW;
 int		ns_name_uncompress (const u_char *, const u_char *,
 				    const u_char *, char *, size_t) __THROW;
+libc_hidden_proto(ns_name_uncompress)
 int		ns_name_compress (const char *, u_char *, size_t,
 				  const u_char **, const u_char **) __THROW;
 int		ns_name_skip (const u_char **, const u_char *) __THROW;

+ 1 - 0
include/assert.h

@@ -52,6 +52,7 @@ __BEGIN_DECLS
 
 /* This prints an "Assertion failed" message and aborts.  */
 extern void __assert __P((const char *, const char *, int, const char *));
+libc_hidden_proto(__assert)
 
 __END_DECLS
 

+ 5 - 0
include/ctype.h

@@ -169,6 +169,7 @@ __exctype (isgraph);
 __exctype (isprint);
 __exctype (ispunct);
 __exctype (isspace);
+libc_hidden_proto(isspace)
 __exctype (isupper);
 __exctype (isxdigit);
 
@@ -203,6 +204,7 @@ extern int isctype (int __c, int __mask) __THROW;
 /* Return nonzero iff C is in the ASCII set
    (i.e., is no more than 7 bits wide).  */
 extern int isascii (int __c) __THROW;
+libc_hidden_proto(isascii)
 
 /* Return the part of C that is in the ASCII set
    (i.e., the low-order 7 bits of C).  */
@@ -316,6 +318,7 @@ __exctype_l (isgraph_l);
 __exctype_l (isprint_l);
 __exctype_l (ispunct_l);
 __exctype_l (isspace_l);
+libc_hidden_proto(isspace_l)
 __exctype_l (isupper_l);
 __exctype_l (isxdigit_l);
 
@@ -325,10 +328,12 @@ __exctype_l (isblank_l);
 /* Return the lowercase version of C in locale L.  */
 extern int __tolower_l (int __c, __locale_t __l) __THROW;
 extern int tolower_l (int __c, __locale_t __l) __THROW;
+libc_hidden_proto(tolower_l)
 
 /* Return the uppercase version of C.  */
 extern int __toupper_l (int __c, __locale_t __l) __THROW;
 extern int toupper_l (int __c, __locale_t __l) __THROW;
+libc_hidden_proto(toupper_l)
 
 # if __GNUC__ >= 2 && defined __OPTIMIZE__ && !defined __cplusplus
 #  define __tolower_l(c, locale) \

+ 7 - 0
include/dirent.h

@@ -133,6 +133,7 @@ typedef struct __dirstream DIR;
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern DIR *opendir (__const char *__name) __nonnull ((1));
+libc_hidden_proto(opendir)
 
 /* Close the directory stream DIRP.
    Return 0 if successful, -1 if not.
@@ -140,6 +141,7 @@ extern DIR *opendir (__const char *__name) __nonnull ((1));
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern int closedir (DIR *__dirp) __nonnull ((1));
+libc_hidden_proto(closedir)
 
 /* Read a directory entry from DIRP.  Return a pointer to a `struct
    dirent' describing the entry, or NULL for EOF or error.  The
@@ -153,6 +155,7 @@ extern int closedir (DIR *__dirp) __nonnull ((1));
    marked with __THROW.  */
 #ifndef __USE_FILE_OFFSET64
 extern struct dirent *readdir (DIR *__dirp) __nonnull ((1));
+libc_hidden_proto(readdir)
 #else
 # ifdef __REDIRECT
 extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
@@ -164,6 +167,7 @@ extern struct dirent *__REDIRECT (readdir, (DIR *__dirp), readdir64)
 
 #ifdef __USE_LARGEFILE64
 extern struct dirent64 *readdir64 (DIR *__dirp) __nonnull ((1));
+libc_hidden_proto(readdir64)
 #endif
 
 #if defined __USE_POSIX || defined __USE_MISC
@@ -177,6 +181,7 @@ extern int readdir_r (DIR *__restrict __dirp,
 		      struct dirent *__restrict __entry,
 		      struct dirent **__restrict __result)
      __nonnull ((1, 2, 3));
+libc_hidden_proto(readdir_r)
 # else
 #  ifdef __REDIRECT
 extern int __REDIRECT (readdir_r,
@@ -194,6 +199,7 @@ extern int readdir64_r (DIR *__restrict __dirp,
 			struct dirent64 *__restrict __entry,
 			struct dirent64 **__restrict __result)
      __nonnull ((1, 2, 3));
+libc_hidden_proto(readdir64_r)
 # endif
 #endif	/* POSIX or misc */
 
@@ -214,6 +220,7 @@ extern long int telldir (DIR *__dirp) __THROW __nonnull ((1));
 
 /* Return the file descriptor used by DIRP.  */
 extern int dirfd (DIR *__dirp) __THROW __nonnull ((1));
+libc_hidden_proto(dirfd)
 
 # if 0 /* defined __OPTIMIZE__ && defined _DIR_dirfd */
 #  define dirfd(dirp)	_DIR_dirfd (dirp)

+ 4 - 0
include/err.h

@@ -36,22 +36,26 @@ extern void warn (__const char *__format, ...)
      __attribute__ ((__format__ (__printf__, 1, 2)));
 extern void vwarn (__const char *__format, __gnuc_va_list)
      __attribute__ ((__format__ (__printf__, 1, 0)));
+libc_hidden_proto(vwarn)
 
 /* Likewise, but without ": " and the standard error string.  */
 extern void warnx (__const char *__format, ...)
      __attribute__ ((__format__ (__printf__, 1, 2)));
 extern void vwarnx (__const char *__format, __gnuc_va_list)
      __attribute__ ((__format__ (__printf__, 1, 0)));
+libc_hidden_proto(vwarnx)
 
 /* Likewise, and then exit with STATUS.  */
 extern void err (int __status, __const char *__format, ...)
      __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));
 extern void verr (int __status, __const char *__format, __gnuc_va_list)
      __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
+libc_hidden_proto(verr)
 extern void errx (int __status, __const char *__format, ...)
      __attribute__ ((__noreturn__, __format__ (__printf__, 2, 3)));
 extern void verrx (int __status, __const char *, __gnuc_va_list)
      __attribute__ ((__noreturn__, __format__ (__printf__, 2, 0)));
+libc_hidden_proto(verrx)
 
 __END_DECLS
 

+ 4 - 0
include/fcntl.h

@@ -82,6 +82,7 @@ extern int __REDIRECT (fcntl, (int __fd, int __cmd, ...), fcntl64);
 #endif
 #ifdef __USE_LARGEFILE64
 extern int fcntl64 (int __fd, int __cmd, ...);
+libc_hidden_proto(fcntl64)
 #endif
 
 /* Open FILE and return a new file descriptor for it, or -1 on error.
@@ -103,6 +104,7 @@ extern int __REDIRECT (open, (__const char *__file, int __oflag, ...), open64)
 #endif
 #ifdef __USE_LARGEFILE64
 extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1));
+libc_hidden_proto(open64)
 #endif
 
 #if 0 /*def __USE_GNU*/
@@ -167,6 +169,7 @@ extern int creat64 (__const char *__file, __mode_t __mode) __nonnull ((1));
 
 # ifndef __USE_FILE_OFFSET64
 extern int lockf (int __fd, int __cmd, __off_t __len);
+libc_hidden_proto(lockf)
 # else
 # ifdef __REDIRECT
 extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
@@ -176,6 +179,7 @@ extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
 # endif
 # ifdef __USE_LARGEFILE64
 extern int lockf64 (int __fd, int __cmd, __off64_t __len);
+libc_hidden_proto(lockf64)
 # endif
 #endif
 

+ 1 - 0
include/fnmatch.h

@@ -64,6 +64,7 @@ extern "C" {
    returning zero if it matches, FNM_NOMATCH if not.  */
 extern int fnmatch (__const char *__pattern, __const char *__name,
 		    int __flags);
+libc_hidden_proto(fnmatch)
 
 #ifdef	__cplusplus
 }

+ 5 - 0
include/glob.h

@@ -173,9 +173,11 @@ typedef struct
 extern int glob (__const char *__restrict __pattern, int __flags,
 		 int (*__errfunc) (__const char *, int),
 		 glob_t *__restrict __pglob) __THROW;
+libc_hidden_proto(glob)
 
 /* Free storage allocated in PGLOB by a previous `glob' call.  */
 extern void globfree (glob_t *__pglob) __THROW;
+libc_hidden_proto(globfree)
 #else
 extern int __REDIRECT_NTH (glob, (__const char *__restrict __pattern,
 				  int __flags,
@@ -189,8 +191,10 @@ extern void __REDIRECT_NTH (globfree, (glob_t *__pglob), globfree64);
 extern int glob64 (__const char *__restrict __pattern, int __flags,
 		   int (*__errfunc) (__const char *, int),
 		   glob64_t *__restrict __pglob) __THROW;
+libc_hidden_proto(glob64)
 
 extern void globfree64 (glob64_t *__pglob) __THROW;
+libc_hidden_proto(globfree64)
 #endif
 
 
@@ -201,6 +205,7 @@ extern void globfree64 (glob64_t *__pglob) __THROW;
    This function is not part of the interface specified by POSIX.2
    but several programs want to use it.  */
 extern int glob_pattern_p (__const char *__pattern, int __quote) __THROW;
+libc_hidden_proto(glob_pattern_p)
 #endif
 
 __END_DECLS

+ 5 - 0
include/grp.h

@@ -133,6 +133,7 @@ extern struct group *getgrnam (__const char *__name);
 extern int getgrent_r (struct group *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct group **__restrict __result);
+libc_hidden_proto(getgrent_r)
 # endif
 
 /* Search for an entry with a matching group ID.
@@ -142,6 +143,7 @@ extern int getgrent_r (struct group *__restrict __resultbuf,
 extern int getgrgid_r (__gid_t __gid, struct group *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct group **__restrict __result);
+libc_hidden_proto(getgrgid_r)
 
 /* Search for an entry with a matching group name.
 
@@ -151,6 +153,7 @@ extern int getgrnam_r (__const char *__restrict __name,
 		       struct group *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct group **__restrict __result);
+libc_hidden_proto(getgrnam_r)
 
 # ifdef	__USE_SVID
 /* Read a group entry from STREAM.  This function is not standardized
@@ -164,6 +167,7 @@ extern int fgetgrent_r (FILE *__restrict __stream,
 			struct group *__restrict __resultbuf,
 			char *__restrict __buffer, size_t __buflen,
 			struct group **__restrict __result);
+libc_hidden_proto(fgetgrent_r)
 # endif
 
 #endif	/* POSIX or reentrant */
@@ -192,6 +196,7 @@ extern int getgrouplist (__const char *__user, __gid_t __group,
 
 /* Set the group set for the current user to GROUPS (N of them).  */
 extern int setgroups (size_t __n, __const __gid_t *__groups) __THROW;
+libc_hidden_proto(setgroups)
 
 /* Initialize the group set for the current user
    by reading the group database and using all groups

+ 2 - 0
include/langinfo.h

@@ -603,6 +603,7 @@ enum
    it is usually in read-only memory and cannot be modified.  */
 
 extern char *nl_langinfo (nl_item __item) __THROW;
+libc_hidden_proto(nl_langinfo)
 
 
 #ifdef __UCLIBC_HAS_XLOCALE__
@@ -615,6 +616,7 @@ extern char *nl_langinfo (nl_item __item) __THROW;
 
 /* Just like nl_langinfo but get the information from the locale object L.  */
 extern char *nl_langinfo_l (nl_item __item, __locale_t l);
+libc_hidden_proto(nl_langinfo_l)
 #endif
 #endif
 

+ 2 - 0
include/libc-internal.h

@@ -46,8 +46,10 @@
 /* sources are built w/ _GNU_SOURCE, this gets undefined */
 #ifdef __USE_GNU
 extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen);
+libc_hidden_proto(__xpg_strerror_r)
 #else
 extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen);
+libc_hidden_proto(__glibc_strerror_r)
 #endif
 
 /* #include <pthread.h> */

+ 3 - 0
include/locale.h

@@ -128,6 +128,7 @@ extern char *setlocale (int __category, __const char *__locale) __THROW;
 
 /* Return the numeric/monetary information for the current locale.  */
 extern struct lconv *localeconv (void) __THROW;
+libc_hidden_proto(localeconv)
 
 __END_NAMESPACE_STD
 
@@ -157,6 +158,7 @@ typedef __locale_t locale_t;
    made by OR'ing together LC_*_MASK bits above.  */
 extern __locale_t newlocale (int __category_mask, __const char *__locale,
 			     __locale_t __base) __THROW;
+libc_hidden_proto(newlocale)
 
 /* These are the bits that can be set in the CATEGORY_MASK argument to
    `newlocale'.  In the GNU implementation, LC_FOO_MASK has the value
@@ -204,6 +206,7 @@ extern __locale_t newlocale (int __category_mask, __const char *__locale,
 /* Return a duplicate of the set of locale in DATASET.  All usage
    counters are increased if necessary.  */
 extern __locale_t duplocale (__locale_t __dataset) __THROW;
+libc_hidden_proto(duplocale)
 
 /* Free the data associated with a locale dataset previously returned
    by a call to `setlocale_r'.  */

+ 3 - 0
include/malloc.h

@@ -146,6 +146,7 @@ struct mallinfo {
 
 /* Returns a copy of the updated current mallinfo. */
 extern struct mallinfo mallinfo __MALLOC_P ((void));
+libc_hidden_proto(mallinfo)
 
 /* Release all but __pad bytes of freed top-most memory back to the
    system. Return 1 if successful, else 0. */
@@ -189,7 +190,9 @@ extern int mallopt __MALLOC_P ((int __param, int __val));
  * if it returns. If __uc_malloc_failed is NULL, uclibc will _exit(1).
  * NB: do not use stdio in __uc_malloc_failed handler! */
 extern void *__uc_malloc(size_t size);
+libc_hidden_proto(__uc_malloc)
 extern void (*__uc_malloc_failed)(size_t size);
+libc_hidden_proto(__uc_malloc_failed)
 
 #ifdef __cplusplus
 } /* end of extern "C" */

+ 3 - 0
include/mntent.h

@@ -65,6 +65,7 @@ struct mntent
 /* Prepare to begin reading and/or writing mount table entries from the
    beginning of FILE.  MODE is as for `fopen'.  */
 extern FILE *setmntent (__const char *__file, __const char *__mode) __THROW;
+libc_hidden_proto(setmntent)
 
 /* Read one mount table entry from STREAM.  Returns a pointer to storage
    reused on the next call, or null for EOF or error (use feof/ferror to
@@ -77,6 +78,7 @@ extern struct mntent *getmntent_r (FILE *__restrict __stream,
 				   struct mntent *__restrict __result,
 				   char *__restrict __buffer,
 				   int __bufsize) __THROW;
+libc_hidden_proto(getmntent_r)
 #endif
 
 /* Write the mount table entry described by MNT to STREAM.
@@ -86,6 +88,7 @@ extern int addmntent (FILE *__restrict __stream,
 
 /* Close a stream opened with `setmntent'.  */
 extern int endmntent (FILE *__stream) __THROW;
+libc_hidden_proto(endmntent)
 
 /* Search MNT->mnt_opts for an option matching OPT.
    Returns the address of the substring, or null if none found.  */

+ 3 - 0
include/net/if.h

@@ -192,13 +192,16 @@ __BEGIN_DECLS
 
 /* Convert an interface name to an index, and vice versa.  */
 extern unsigned int if_nametoindex (__const char *__ifname) __THROW;
+libc_hidden_proto(if_nametoindex)
 extern char *if_indextoname (unsigned int __ifindex, char *__ifname) __THROW;
 
 /* Return a list of all interfaces and their indices.  */
 extern struct if_nameindex *if_nameindex (void) __THROW;
+libc_hidden_proto(if_nameindex)
 
 /* Free the data returned from if_nameindex.  */
 extern void if_freenameindex (struct if_nameindex *__ptr) __THROW;
+libc_hidden_proto(if_freenameindex)
 
 __END_DECLS
 

+ 28 - 0
include/netdb.h

@@ -64,6 +64,7 @@ extern int h_errno;
 
 /* Function to get address of global `h_errno' variable.  */
 extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
+libc_hidden_proto(__h_errno_location)
 
 #ifdef _LIBC
 # define __set_h_errno(x) (h_errno = (x))
@@ -94,6 +95,7 @@ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
 /* Print error indicated by `h_errno' variable on standard error.  STR
    if non-null is printed before the error string.  */
 extern void herror (__const char *__str) __THROW;
+libc_hidden_proto(herror)
 
 /* Return string associated with error ERR_NUM.  */
 extern __const char *hstrerror (int __err_num) __THROW;
@@ -138,12 +140,14 @@ extern struct hostent *gethostent (void);
    marked with __THROW.  */
 extern struct hostent *gethostbyaddr (__const void *__addr, __socklen_t __len,
 				      int __type);
+libc_hidden_proto(gethostbyaddr)
 
 /* Return entry from host data base for host with NAME.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern struct hostent *gethostbyname (__const char *__name);
+libc_hidden_proto(gethostbyname)
 
 #ifdef __USE_MISC
 /* Return entry from host data base for host with NAME.  AF must be
@@ -170,6 +174,7 @@ extern int gethostent_r (struct hostent *__restrict __result_buf,
 			 char *__restrict __buf, size_t __buflen,
 			 struct hostent **__restrict __result,
 			 int *__restrict __h_errnop);
+libc_hidden_proto(gethostent_r)
 
 extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len,
 			    int __type,
@@ -177,18 +182,21 @@ extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len,
 			    char *__restrict __buf, size_t __buflen,
 			    struct hostent **__restrict __result,
 			    int *__restrict __h_errnop);
+libc_hidden_proto(gethostbyaddr_r)
 
 extern int gethostbyname_r (__const char *__restrict __name,
 			    struct hostent *__restrict __result_buf,
 			    char *__restrict __buf, size_t __buflen,
 			    struct hostent **__restrict __result,
 			    int *__restrict __h_errnop);
+libc_hidden_proto(gethostbyname_r)
 
 extern int gethostbyname2_r (__const char *__restrict __name, int __af,
 			     struct hostent *__restrict __result_buf,
 			     char *__restrict __buf, size_t __buflen,
 			     struct hostent **__restrict __result,
 			     int *__restrict __h_errnop);
+libc_hidden_proto(gethostbyname2_r)
 #endif	/* misc */
 
 
@@ -198,12 +206,14 @@ extern int gethostbyname2_r (__const char *__restrict __name, int __af,
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void setnetent (int __stay_open);
+libc_hidden_proto(setnetent)
 
 /* Close network data base files and clear `stay open' flag.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void endnetent (void);
+libc_hidden_proto(endnetent)
 
 /* Get next entry from network data base file.  Open data base if
    necessary.
@@ -211,6 +221,7 @@ extern void endnetent (void);
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern struct netent *getnetent (void);
+libc_hidden_proto(getnetent)
 
 /* Return entry from network data base which address match NET and
    type TYPE.
@@ -273,12 +284,14 @@ struct servent
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void setservent (int __stay_open);
+libc_hidden_proto(setservent)
 
 /* Close service data base files and clear `stay open' flag.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void endservent (void);
+libc_hidden_proto(endservent)
 
 /* Get next entry from service data base file.  Open data base if
    necessary.
@@ -301,6 +314,7 @@ extern struct servent *getservbyname (__const char *__name,
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern struct servent *getservbyport (int __port, __const char *__proto);
+libc_hidden_proto(getservbyport)
 
 
 #ifdef	__USE_MISC
@@ -314,17 +328,20 @@ extern struct servent *getservbyport (int __port, __const char *__proto);
 extern int getservent_r (struct servent *__restrict __result_buf,
 			 char *__restrict __buf, size_t __buflen,
 			 struct servent **__restrict __result);
+libc_hidden_proto(getservent_r)
 
 extern int getservbyname_r (__const char *__restrict __name,
 			    __const char *__restrict __proto,
 			    struct servent *__restrict __result_buf,
 			    char *__restrict __buf, size_t __buflen,
 			    struct servent **__restrict __result);
+libc_hidden_proto(getservbyname_r)
 
 extern int getservbyport_r (int __port, __const char *__restrict __proto,
 			    struct servent *__restrict __result_buf,
 			    char *__restrict __buf, size_t __buflen,
 			    struct servent **__restrict __result);
+libc_hidden_proto(getservbyport_r)
 #endif	/* misc */
 
 
@@ -342,12 +359,14 @@ struct protoent
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void setprotoent (int __stay_open);
+libc_hidden_proto(setprotoent)
 
 /* Close protocol data base files and clear `stay open' flag.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void endprotoent (void);
+libc_hidden_proto(endprotoent)
 
 /* Get next entry from protocol data base file.  Open data base if
    necessary.
@@ -380,16 +399,19 @@ extern struct protoent *getprotobynumber (int __proto);
 extern int getprotoent_r (struct protoent *__restrict __result_buf,
 			  char *__restrict __buf, size_t __buflen,
 			  struct protoent **__restrict __result);
+libc_hidden_proto(getprotoent_r)
 
 extern int getprotobyname_r (__const char *__restrict __name,
 			     struct protoent *__restrict __result_buf,
 			     char *__restrict __buf, size_t __buflen,
 			     struct protoent **__restrict __result);
+libc_hidden_proto(getprotobyname_r)
 
 extern int getprotobynumber_r (int __proto,
 			       struct protoent *__restrict __result_buf,
 			       char *__restrict __buf, size_t __buflen,
 			       struct protoent **__restrict __result);
+libc_hidden_proto(getprotobynumber_r)
 
 
 #ifdef __UCLIBC_HAS_NETGROUP__
@@ -447,6 +469,7 @@ extern int getnetgrent_r (char **__restrict __hostp,
 /* ruserpass - remote password check.
    This function also exists in glibc but is undocumented */
 extern int ruserpass(const char *host, const char **aname, const char **apass);
+libc_hidden_proto(ruserpass)
 
 
 #ifdef __USE_BSD
@@ -509,6 +532,7 @@ extern int rexec_af (char **__restrict __ahost, int __rport,
 		     __const char *__restrict __pass,
 		     __const char *__restrict __cmd, int *__restrict __fd2p,
 		     sa_family_t __af);
+libc_hidden_proto(rexec_af)
 
 /* Check whether user REMUSER on system RHOST is allowed to login as LOCUSER.
    If SUSER is not zero the user tries to become superuser.  Return 0 if
@@ -544,6 +568,7 @@ extern int ruserok_af (__const char *__rhost, int __suser,
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern int rresvport (int *__alport);
+libc_hidden_proto(rresvport)
 
 #if 0
 /* FIXME */
@@ -641,9 +666,11 @@ extern int getaddrinfo (__const char *__restrict __name,
 			__const char *__restrict __service,
 			__const struct addrinfo *__restrict __req,
 			struct addrinfo **__restrict __pai);
+libc_hidden_proto(getaddrinfo)
 
 /* Free `addrinfo' structure AI including associated storage.  */
 extern void freeaddrinfo (struct addrinfo *__ai) __THROW;
+libc_hidden_proto(freeaddrinfo)
 
 /* Convert error return from getaddrinfo() to a string.  */
 extern __const char *gai_strerror (int __ecode) __THROW;
@@ -656,6 +683,7 @@ extern int getnameinfo (__const struct sockaddr *__restrict __sa,
 			socklen_t __salen, char *__restrict __host,
 			socklen_t __hostlen, char *__restrict __serv,
 			socklen_t __servlen, unsigned int __flags);
+libc_hidden_proto(getnameinfo)
 #endif	/* POSIX */
 
 __END_DECLS

+ 1 - 0
include/netinet/ether.h

@@ -33,6 +33,7 @@ __BEGIN_DECLS
 extern char *ether_ntoa (__const struct ether_addr *__addr) __THROW;
 extern char *ether_ntoa_r (__const struct ether_addr *__addr, char *__buf)
      __THROW;
+libc_hidden_proto(ether_ntoa_r)
 
 /* Convert ASCII string S to 48 bit Ethernet address.  */
 extern struct ether_addr *ether_aton (__const char *__asc) __THROW;

+ 2 - 0
include/netinet/in.h

@@ -206,6 +206,7 @@ struct in6_addr
 
 extern const struct in6_addr in6addr_any;        /* :: */
 extern const struct in6_addr in6addr_loopback;   /* ::1 */
+libc_hidden_proto(in6addr_loopback)
 #define IN6ADDR_ANY_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } }
 #define IN6ADDR_LOOPBACK_INIT { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } }
 
@@ -429,6 +430,7 @@ extern uint16_t htons (uint16_t __hostshort)
 
 /* Bind socket to a privileged IP port.  */
 extern int bindresvport (int __sockfd, struct sockaddr_in *__sock_in) __THROW;
+libc_hidden_proto(bindresvport)
 
 /* The IPv6 version of this function.  */
 extern int bindresvport6 (int __sockfd, struct sockaddr_in6 *__sock_in)

+ 4 - 0
include/pwd.h

@@ -140,17 +140,20 @@ extern struct passwd *getpwnam (__const char *__name);
 extern int getpwent_r (struct passwd *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct passwd **__restrict __result);
+libc_hidden_proto(getpwent_r)
 # endif
 
 extern int getpwuid_r (__uid_t __uid,
 		       struct passwd *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct passwd **__restrict __result);
+libc_hidden_proto(getpwuid_r)
 
 extern int getpwnam_r (__const char *__restrict __name,
 		       struct passwd *__restrict __resultbuf,
 		       char *__restrict __buffer, size_t __buflen,
 		       struct passwd **__restrict __result);
+libc_hidden_proto(getpwnam_r)
 
 
 # ifdef	__USE_SVID
@@ -165,6 +168,7 @@ extern int fgetpwent_r (FILE *__restrict __stream,
 			struct passwd *__restrict __resultbuf,
 			char *__restrict __buffer, size_t __buflen,
 			struct passwd **__restrict __result);
+libc_hidden_proto(fgetpwent_r)
 # endif
 
 #endif	/* POSIX or reentrant */

+ 3 - 0
include/resolv.h

@@ -310,12 +310,15 @@ void		p_query (const u_char *) __THROW;
 void		res_close (void) __THROW;
 #endif
 int		res_init (void) __THROW;
+libc_hidden_proto(res_init)
 int		res_isourserver (const struct sockaddr_in *) __THROW;
 int		res_mkquery (int, const char *, int, int, const u_char *,
 			     int, const u_char *, u_char *, int) __THROW;
 int		res_query (const char *, int, int, u_char *, int) __THROW;
+libc_hidden_proto(res_query)
 int		res_querydomain (const char *, const char *, int, int,
 				 u_char *, int) __THROW;
+libc_hidden_proto(res_querydomain)
 int		res_search (const char *, int, int, u_char *, int) __THROW;
 int		res_send (const u_char *, int, u_char *, int) __THROW;
 __END_DECLS

+ 4 - 0
include/rpc/auth.h

@@ -171,8 +171,11 @@ extern struct opaque_auth _null_auth;
  */
 extern AUTH *authunix_create (char *__machname, __uid_t __uid, __gid_t __gid,
 			      int __len, __gid_t *__aup_gids);
+libc_hidden_proto(authunix_create)
 extern AUTH *authunix_create_default (void);
+libc_hidden_proto(authunix_create_default)
 extern AUTH *authnone_create (void) __THROW;
+libc_hidden_proto(authnone_create)
 extern AUTH *authdes_create (const char *__servername, u_int __window,
 			     struct sockaddr *__syncaddr, des_block *__ckey)
      __THROW;
@@ -218,6 +221,7 @@ extern int key_get_conv (char *, des_block *);
  * XDR an opaque authentication struct.
  */
 extern bool_t xdr_opaque_auth (XDR *, struct opaque_auth *) __THROW;
+libc_hidden_proto(xdr_opaque_auth)
 
 __END_DECLS
 

+ 1 - 0
include/rpc/auth_des.h

@@ -105,6 +105,7 @@ extern int getsecretkey (__const char *__name, char *__key,
 
 extern int rtime (struct sockaddr_in *__addrp, struct rpc_timeval *__timep,
 		  struct rpc_timeval *__timeout) __THROW;
+libc_hidden_proto(rtime)
 
 __END_DECLS
 

+ 1 - 0
include/rpc/auth_unix.h

@@ -74,6 +74,7 @@ struct authunix_parms
 
 extern bool_t xdr_authunix_parms (XDR *__xdrs, struct authunix_parms *__p)
      __THROW;
+libc_hidden_proto(xdr_authunix_parms)
 
 /*
  * If a response verifier has flavor AUTH_SHORT,

+ 10 - 2
include/rpc/clnt.h

@@ -310,6 +310,7 @@ extern CLIENT *clnt_create (__const char *__host, __const u_long __prog,
 extern CLIENT *clnttcp_create (struct sockaddr_in *__raddr, u_long __prog,
 			       u_long __version, int *__sockp, u_int __sendsz,
 			       u_int __recvsz) __THROW;
+libc_hidden_proto(clnttcp_create)
 
 /*
  * UDP based rpc.
@@ -335,12 +336,12 @@ extern CLIENT *clnttcp_create (struct sockaddr_in *__raddr, u_long __prog,
 extern CLIENT *clntudp_create (struct sockaddr_in *__raddr, u_long __program,
 			       u_long __version, struct timeval __wait_resend,
 			       int *__sockp) __THROW;
+libc_hidden_proto(clntudp_create)
 extern CLIENT *clntudp_bufcreate (struct sockaddr_in *__raddr,
 				  u_long __program, u_long __version,
 				  struct timeval __wait_resend, int *__sockp,
 				  u_int __sendsz, u_int __recvsz) __THROW;
-
-
+libc_hidden_proto(clntudp_bufcreate)
 
 
 /*
@@ -357,6 +358,7 @@ extern CLIENT *clntudp_bufcreate (struct sockaddr_in *__raddr,
 extern CLIENT *clntunix_create  (struct sockaddr_un *__raddr, u_long __program,
 				 u_long __version, int *__sockp,
 				 u_int __sendsz, u_int __recvsz) __THROW;
+libc_hidden_proto(clntunix_create)
 
 
 extern int callrpc (__const char *__host, __const u_long __prognum,
@@ -364,12 +366,14 @@ extern int callrpc (__const char *__host, __const u_long __prognum,
 		    __const xdrproc_t __inproc, __const char *__in,
 		    __const xdrproc_t __outproc, char *__out) __THROW;
 extern int _rpc_dtablesize (void) __THROW;
+libc_hidden_proto(_rpc_dtablesize)
 
 /*
  * Print why creation failed
  */
 extern void clnt_pcreateerror (__const char *__msg);	/* stderr */
 extern char *clnt_spcreateerror(__const char *__msg) __THROW;	/* string */
+libc_hidden_proto(clnt_spcreateerror)
 
 /*
  * Like clnt_perror(), but is more verbose in its output
@@ -381,8 +385,11 @@ extern void clnt_perrno (enum clnt_stat __num);		/* stderr */
  */
 extern void clnt_perror (CLIENT *__clnt, __const char *__msg);
 							/* stderr */
+libc_hidden_proto(clnt_perror)
 extern char *clnt_sperror (CLIENT *__clnt, __const char *__msg) __THROW;
 							/* string */
+libc_hidden_proto(clnt_sperror)
+
 
 /*
  * If a creation fails, the following allows the user to figure out why.
@@ -400,6 +407,7 @@ extern struct rpc_createerr rpc_createerr;
  * Copy error message to buffer.
  */
 extern char *clnt_sperrno (enum clnt_stat __num) __THROW;	/* string */
+libc_hidden_proto(clnt_sperrno)
 
 /*
  * get the port number on the host for the rpc program,version and proto

+ 5 - 0
include/rpc/netdb.h

@@ -51,10 +51,15 @@ struct rpcent
 };
 
 extern void setrpcent (int __stayopen) __THROW;
+libc_hidden_proto(setrpcent)
 extern void endrpcent (void) __THROW;
+libc_hidden_proto(endrpcent)
 extern struct rpcent *getrpcbyname (__const char *__name) __THROW;
+libc_hidden_proto(getrpcbyname)
 extern struct rpcent *getrpcbynumber (int __number) __THROW;
+libc_hidden_proto(getrpcbynumber)
 extern struct rpcent *getrpcent (void) __THROW;
+libc_hidden_proto(getrpcent)
 
 #if defined __USE_MISC && defined __UCLIBC_HAS_REENTRANT_RPC__
 extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf,

+ 3 - 0
include/rpc/pmap_clnt.h

@@ -71,8 +71,10 @@ typedef bool_t (*resultproc_t) (caddr_t resp, struct sockaddr_in *raddr);
 
 extern bool_t pmap_set (__const u_long __program, __const u_long __vers,
 			int __protocol, u_short __port) __THROW;
+libc_hidden_proto(pmap_set)
 extern bool_t pmap_unset (__const u_long __program, __const u_long __vers)
      __THROW;
+libc_hidden_proto(pmap_unset)
 extern struct pmaplist *pmap_getmaps (struct sockaddr_in *__address) __THROW;
 extern enum clnt_stat pmap_rmtcall (struct sockaddr_in *__addr,
 				    __const u_long __prog,
@@ -92,6 +94,7 @@ extern u_short pmap_getport (struct sockaddr_in *__address,
 			     __const u_long __program,
 			     __const u_long __version, u_int __protocol)
      __THROW;
+libc_hidden_proto(pmap_getport)
 
 __END_DECLS
 

+ 2 - 0
include/rpc/pmap_prot.h

@@ -95,6 +95,7 @@ struct pmap {
 };
 
 extern bool_t xdr_pmap (XDR *__xdrs, struct pmap *__regs) __THROW;
+libc_hidden_proto(xdr_pmap)
 
 struct pmaplist {
 	struct pmap	pml_map;
@@ -102,6 +103,7 @@ struct pmaplist {
 };
 
 extern bool_t xdr_pmaplist (XDR *__xdrs, struct pmaplist **__rp) __THROW;
+libc_hidden_proto(xdr_pmaplist)
 
 __END_DECLS
 

+ 3 - 0
include/rpc/pmap_rmt.h

@@ -53,6 +53,8 @@ struct rmtcallargs {
 
 extern bool_t xdr_rmtcall_args (XDR *__xdrs, struct rmtcallargs *__crp)
      __THROW;
+libc_hidden_proto(xdr_rmtcall_args)
+
 
 struct rmtcallres {
 	u_long *port_ptr;
@@ -62,6 +64,7 @@ struct rmtcallres {
 };
 
 extern bool_t xdr_rmtcallres (XDR *__xdrs, struct rmtcallres *__crp) __THROW;
+libc_hidden_proto(xdr_rmtcallres)
 
 __END_DECLS
 

+ 6 - 0
include/rpc/rpc.h

@@ -84,10 +84,12 @@ __BEGIN_DECLS
 
 /* Global variables, protected for multi-threaded applications.  */
 extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__));
+libc_hidden_proto(__rpc_thread_svc_fdset)
 #define svc_fdset (*__rpc_thread_svc_fdset ())
 
 extern struct rpc_createerr *__rpc_thread_createerr (void)
      __attribute__ ((__const__));
+libc_hidden_proto(__rpc_thread_createerr)
 #define get_rpc_createerr() (*__rpc_thread_createerr ())
 /* The people who "engineered" RPC should bee punished for naming the
    data structure and the variable the same.  We cannot always define the
@@ -100,13 +102,17 @@ extern struct rpc_createerr *__rpc_thread_createerr (void)
 
 extern struct pollfd **__rpc_thread_svc_pollfd (void)
      __attribute__ ((__const__));
+libc_hidden_proto(__rpc_thread_svc_pollfd)
 #define svc_pollfd (*__rpc_thread_svc_pollfd ())
 
 extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
+libc_hidden_proto(__rpc_thread_svc_max_pollfd)
 #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
 
 extern bool_t xdr_accepted_reply (XDR *xdrs, struct accepted_reply *ar);
+libc_hidden_proto(xdr_accepted_reply)
 extern bool_t xdr_rejected_reply (XDR *xdrs, struct rejected_reply *rr);
+libc_hidden_proto(xdr_rejected_reply)
 
 __END_DECLS
 

+ 3 - 0
include/rpc/rpc_msg.h

@@ -171,6 +171,7 @@ struct rpc_msg {
  * 	struct rpc_msg *cmsg;
  */
 extern bool_t	xdr_callmsg (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW;
+libc_hidden_proto(xdr_callmsg)
 
 /*
  * XDR routine to pre-serialize the static part of a rpc message.
@@ -179,6 +180,7 @@ extern bool_t	xdr_callmsg (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW;
  * 	struct rpc_msg *cmsg;
  */
 extern bool_t	xdr_callhdr (XDR *__xdrs, struct rpc_msg *__cmsg) __THROW;
+libc_hidden_proto(xdr_callhdr)
 
 /*
  * XDR routine to handle a rpc reply.
@@ -197,6 +199,7 @@ libc_hidden_proto(xdr_replymsg)
  */
 extern void	_seterr_reply (struct rpc_msg *__msg, struct rpc_err *__error)
      __THROW;
+libc_hidden_proto(_seterr_reply)
 
 __END_DECLS
 

+ 15 - 1
include/rpc/svc.h

@@ -173,6 +173,7 @@ typedef void (*__dispatch_fn_t) (struct svc_req*, SVCXPRT*);
 extern bool_t svc_register (SVCXPRT *__xprt, rpcprog_t __prog,
 			    rpcvers_t __vers, __dispatch_fn_t __dispatch,
 			    rpcprot_t __protocol) __THROW;
+libc_hidden_proto(svc_register)
 
 /*
  * Service un-registration
@@ -182,6 +183,7 @@ extern bool_t svc_register (SVCXPRT *__xprt, rpcprog_t __prog,
  *	rpcvers_t vers;
  */
 extern void svc_unregister (rpcprog_t __prog, rpcvers_t __vers) __THROW;
+libc_hidden_proto(svc_unregister)
 
 /*
  * Transport registration.
@@ -190,6 +192,7 @@ extern void svc_unregister (rpcprog_t __prog, rpcvers_t __vers) __THROW;
  *	SVCXPRT *xprt;
  */
 extern void xprt_register (SVCXPRT *__xprt) __THROW;
+libc_hidden_proto(xprt_register)
 
 /*
  * Transport un-register
@@ -198,7 +201,7 @@ extern void xprt_register (SVCXPRT *__xprt) __THROW;
  *	SVCXPRT *xprt;
  */
 extern void xprt_unregister (SVCXPRT *__xprt) __THROW;
-
+libc_hidden_proto(xprt_unregister)
 
 /*
  * When the service routine is called, it must first check to see if it
@@ -228,8 +231,10 @@ extern void xprt_unregister (SVCXPRT *__xprt) __THROW;
 
 extern bool_t	svc_sendreply (SVCXPRT *xprt, xdrproc_t __xdr_results,
 			       caddr_t __xdr_location) __THROW;
+libc_hidden_proto(svc_sendreply)
 
 extern void	svcerr_decode (SVCXPRT *__xprt) __THROW;
+libc_hidden_proto(svcerr_decode)
 
 extern void	svcerr_weakauth (SVCXPRT *__xprt) __THROW;
 
@@ -237,10 +242,13 @@ extern void	svcerr_noproc (SVCXPRT *__xprt) __THROW;
 
 extern void	svcerr_progvers (SVCXPRT *__xprt, rpcvers_t __low_vers,
 				 rpcvers_t __high_vers) __THROW;
+libc_hidden_proto(svcerr_progvers)
 
 extern void	svcerr_auth (SVCXPRT *__xprt, enum auth_stat __why) __THROW;
+libc_hidden_proto(svcerr_auth)
 
 extern void	svcerr_noprog (SVCXPRT *__xprt) __THROW;
+libc_hidden_proto(svcerr_noprog)
 
 extern void	svcerr_systemerr (SVCXPRT *__xprt) __THROW;
 
@@ -270,9 +278,13 @@ extern fd_set svc_fdset;
  * also see clnt.h for protocol numbers.
  */
 extern void svc_getreq (int __rdfds) __THROW;
+libc_hidden_proto(svc_getreq)
 extern void svc_getreq_common (const int __fd) __THROW;
+libc_hidden_proto(svc_getreq_common)
 extern void svc_getreqset (fd_set *__readfds) __THROW;
+libc_hidden_proto(svc_getreqset)
 extern void svc_getreq_poll (struct pollfd *, const int) __THROW;
+libc_hidden_proto(svc_getreq_poll)
 extern void svc_exit (void) __THROW;
 extern void svc_run (void) __THROW;
 
@@ -294,8 +306,10 @@ extern SVCXPRT *svcraw_create (void) __THROW;
  * Udp based rpc.
  */
 extern SVCXPRT *svcudp_create (int __sock) __THROW;
+libc_hidden_proto(svcudp_create)
 extern SVCXPRT *svcudp_bufcreate (int __sock, u_int __sendsz, u_int __recvsz)
      __THROW;
+libc_hidden_proto(svcudp_bufcreate)
 
 /*
  * Tcp based rpc.

+ 1 - 0
include/rpc/svc_auth.h

@@ -48,6 +48,7 @@ __BEGIN_DECLS
  */
 extern enum auth_stat _authenticate (struct svc_req *__rqst,
 				     struct rpc_msg *__msg) __THROW;
+libc_hidden_proto(_authenticate)
 
 __END_DECLS
 

+ 21 - 0
include/rpc/xdr.h

@@ -293,14 +293,23 @@ struct xdr_discrim
  * also, the XDR structure is always updated by some of these calls.
  */
 extern bool_t xdr_void (void) __THROW;
+libc_hidden_proto(xdr_void)
 extern bool_t xdr_short (XDR *__xdrs, short *__sp) __THROW;
+libc_hidden_proto(xdr_short)
 extern bool_t xdr_u_short (XDR *__xdrs, u_short *__usp) __THROW;
+libc_hidden_proto(xdr_u_short)
 extern bool_t xdr_int (XDR *__xdrs, int *__ip) __THROW;
+libc_hidden_proto(xdr_int)
 extern bool_t xdr_u_int (XDR *__xdrs, u_int *__up) __THROW;
+libc_hidden_proto(xdr_u_int)
 extern bool_t xdr_long (XDR *__xdrs, long *__lp) __THROW;
+libc_hidden_proto(xdr_long)
 extern bool_t xdr_u_long (XDR *__xdrs, u_long *__ulp) __THROW;
+libc_hidden_proto(xdr_u_long)
 extern bool_t xdr_hyper (XDR *__xdrs, quad_t *__llp) __THROW;
+libc_hidden_proto(xdr_hyper)
 extern bool_t xdr_u_hyper (XDR *__xdrs, u_quad_t *__ullp) __THROW;
+libc_hidden_proto(xdr_u_hyper)
 extern bool_t xdr_longlong_t (XDR *__xdrs, quad_t *__llp) __THROW;
 extern bool_t xdr_u_longlong_t (XDR *__xdrs, u_quad_t *__ullp) __THROW;
 extern bool_t xdr_int8_t (XDR *__xdrs, int8_t *__ip) __THROW;
@@ -312,17 +321,24 @@ extern bool_t xdr_uint32_t (XDR *__xdrs, uint32_t *__up) __THROW;
 extern bool_t xdr_int64_t (XDR *__xdrs, int64_t *__ip) __THROW;
 extern bool_t xdr_uint64_t (XDR *__xdrs, uint64_t *__up) __THROW;
 extern bool_t xdr_bool (XDR *__xdrs, bool_t *__bp) __THROW;
+libc_hidden_proto(xdr_bool)
 extern bool_t xdr_enum (XDR *__xdrs, enum_t *__ep) __THROW;
+libc_hidden_proto(xdr_enum)
 extern bool_t xdr_array (XDR * _xdrs, caddr_t *__addrp, u_int *__sizep,
 			 u_int __maxsize, u_int __elsize, xdrproc_t __elproc)
      __THROW;
+libc_hidden_proto(xdr_array)
 extern bool_t xdr_bytes (XDR *__xdrs, char **__cpp, u_int *__sizep,
 			 u_int __maxsize) __THROW;
+libc_hidden_proto(xdr_bytes)
 extern bool_t xdr_opaque (XDR *__xdrs, caddr_t __cp, u_int __cnt) __THROW;
+libc_hidden_proto(xdr_opaque)
 extern bool_t xdr_string (XDR *__xdrs, char **__cpp, u_int __maxsize) __THROW;
+libc_hidden_proto(xdr_string)
 extern bool_t xdr_union (XDR *__xdrs, enum_t *__dscmp, char *__unp,
 			 __const struct xdr_discrim *__choices,
 			 xdrproc_t dfault) __THROW;
+libc_hidden_proto(xdr_union)
 extern bool_t xdr_char (XDR *__xdrs, char *__cp) __THROW;
 extern bool_t xdr_u_char (XDR *__xdrs, u_char *__cp) __THROW;
 extern bool_t xdr_vector (XDR *__xdrs, char *__basep, u_int __nelem,
@@ -331,6 +347,7 @@ extern bool_t xdr_float (XDR *__xdrs, float *__fp) __THROW;
 extern bool_t xdr_double (XDR *__xdrs, double *__dp) __THROW;
 extern bool_t xdr_reference (XDR *__xdrs, caddr_t *__xpp, u_int __size,
 			     xdrproc_t __proc) __THROW;
+libc_hidden_proto(xdr_reference)
 extern bool_t xdr_pointer (XDR *__xdrs, char **__objpp,
 			   u_int __obj_size, xdrproc_t __xdr_obj) __THROW;
 extern bool_t xdr_wrapstring (XDR *__xdrs, char **__cpp) __THROW;
@@ -368,15 +385,19 @@ extern void xdrrec_create (XDR *__xdrs, u_int __sendsize,
 			   u_int __recvsize, caddr_t __tcp_handle,
 			   int (*__readit) (char *, char *, int),
 			   int (*__writeit) (char *, char *, int)) __THROW;
+libc_hidden_proto(xdrrec_create)
 
 /* make end of xdr record */
 extern bool_t xdrrec_endofrecord (XDR *__xdrs, bool_t __sendnow) __THROW;
+libc_hidden_proto(xdrrec_endofrecord)
 
 /* move to beginning of next record */
 extern bool_t xdrrec_skiprecord (XDR *__xdrs) __THROW;
+libc_hidden_proto(xdrrec_skiprecord)
 
 /* true if no more input */
 extern bool_t xdrrec_eof (XDR *__xdrs) __THROW;
+libc_hidden_proto(xdrrec_eof)
 
 /* free memory buffers for xdr */
 extern void xdr_free (xdrproc_t __proc, char *__objp) __THROW;

+ 7 - 0
include/search.h

@@ -106,8 +106,11 @@ struct hsearch_data
    same time.  */
 extern int hsearch_r (ENTRY __item, ACTION __action, ENTRY **__retval,
 		      struct hsearch_data *__htab) __THROW;
+libc_hidden_proto(hsearch_r)
 extern int hcreate_r (size_t __nel, struct hsearch_data *__htab) __THROW;
+libc_hidden_proto(hcreate_r)
 extern void hdestroy_r (struct hsearch_data *__htab) __THROW;
+libc_hidden_proto(hdestroy_r)
 #endif
 
 
@@ -129,11 +132,13 @@ VISIT;
    by *ROOTP and insert a new element if not found.  */
 extern void *tsearch (__const void *__key, void **__rootp,
 		      __compar_fn_t __compar);
+libc_hidden_proto(tsearch)
 
 /* Search for an entry matching the given KEY in the tree pointed to
    by *ROOTP.  If no matching entry is available return NULL.  */
 extern void *tfind (__const void *__key, void *__const *__rootp,
 		    __compar_fn_t __compar);
+libc_hidden_proto(tfind)
 
 /* Remove the element matching KEY from the tree pointed to by *ROOTP.  */
 extern void *tdelete (__const void *__restrict __key,
@@ -157,6 +162,7 @@ typedef void (*__free_fn_t) (void *__nodep);
 
 /* Destroy the whole tree, call FREEFCT for each node or leaf.  */
 extern void tdestroy (void *__root, __free_fn_t __freefct);
+libc_hidden_proto(tdestroy)
 #endif
 
 
@@ -164,6 +170,7 @@ extern void tdestroy (void *__root, __free_fn_t __freefct);
    [BASE,BASE+NMEMB*SIZE).  */
 extern void *lfind (__const void *__key, __const void *__base,
 		    size_t *__nmemb, size_t __size, __compar_fn_t __compar);
+libc_hidden_proto(lfind)
 
 /* Perform linear search for KEY by comparing by COMPAR function in
    array [BASE,BASE+NMEMB*SIZE) and insert entry if not found.  */

+ 4 - 0
include/shadow.h

@@ -120,18 +120,22 @@ extern int putspent (__const struct spwd *__p, FILE *__stream);
    therefore not marked with __THROW.  */
 extern int getspent_r (struct spwd *__result_buf, char *__buffer,
 		       size_t __buflen, struct spwd **__result);
+libc_hidden_proto(getspent_r)
 
 extern int getspnam_r (__const char *__name, struct spwd *__result_buf,
 		       char *__buffer, size_t __buflen,
 		       struct spwd **__result);
+libc_hidden_proto(getspnam_r)
 
 extern int sgetspent_r (__const char *__string, struct spwd *__result_buf,
 			char *__buffer, size_t __buflen,
 			struct spwd **__result);
+libc_hidden_proto(sgetspent_r)
 
 extern int fgetspent_r (FILE *__stream, struct spwd *__result_buf,
 			char *__buffer, size_t __buflen,
 			struct spwd **__result);
+libc_hidden_proto(fgetspent_r)
 #endif	/* misc */
 
 

+ 19 - 2
include/signal.h

@@ -92,6 +92,7 @@ __BEGIN_NAMESPACE_STD
 #if defined __USE_BSD || !defined __UCLIBC_HAS_OBSOLETE_SYSV_SIGNAL__
 extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      __THROW;
+libc_hidden_proto(signal)
 #else
 /* Make sure the used `signal' implementation is the SVID version. */
 # ifdef __REDIRECT_NTH
@@ -116,6 +117,7 @@ extern __sighandler_t bsd_signal (int __sig, __sighandler_t __handler)
    If PID is < -1, send SIG to all processes in process group - PID.  */
 #ifdef __USE_POSIX
 extern int kill (__pid_t __pid, int __sig) __THROW;
+libc_hidden_proto(kill)
 #endif /* Use POSIX.  */
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
@@ -128,6 +130,7 @@ extern int killpg (__pid_t __pgrp, int __sig) __THROW;
 __BEGIN_NAMESPACE_STD
 /* Raise signal SIG, i.e., send SIG to yourself.  */
 extern int raise (int __sig) __THROW;
+libc_hidden_proto(raise)
 __END_NAMESPACE_STD
 
 #ifdef __USE_SVID
@@ -152,11 +155,13 @@ extern void psignal (int __sig, __const char *__s);
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern int __sigpause (int __sig_or_mask, int __is_sig);
+libc_hidden_proto(__sigpause)
 
 #ifdef __FAVOR_BSD
 /* Set the mask of blocked signals to MASK,
    wait for a signal to arrive, and then restore the mask.  */
 extern int sigpause (int __mask) __THROW __attribute_deprecated__;
+libc_hidden_proto(sigpause)
 # define sigpause(mask) __sigpause ((mask), 0)
 #else
 # ifdef __USE_XOPEN
@@ -176,10 +181,14 @@ extern int sigpause (int __mask) __THROW __attribute_deprecated__;
 # define sigmask(sig)	__sigmask(sig)
 
 /* Block signals in MASK, returning the old mask.  */
-extern int sigblock (int __mask) __THROW __attribute_deprecated__;
+extern int sigblock (int __mask) __THROW;
+/* collides with libc_hidden_proto: __attribute_deprecated__; */
+libc_hidden_proto(sigblock)
 
 /* Set the mask of blocked signals to MASK, returning the old mask.  */
-extern int sigsetmask (int __mask) __THROW __attribute_deprecated__;
+extern int sigsetmask (int __mask) __THROW;
+/* collides with libc_hidden_proto: __attribute_deprecated__; */
+libc_hidden_proto(sigsetmask)
 
 /* Return currently selected signal mask.  */
 extern int siggetmask (void) __THROW __attribute_deprecated__;
@@ -212,15 +221,19 @@ typedef __sighandler_t sig_t;
 
 /* Clear all signals from SET.  */
 extern int sigemptyset (sigset_t *__set) __THROW __nonnull ((1));
+libc_hidden_proto(sigemptyset)
 
 /* Set all signals in SET.  */
 extern int sigfillset (sigset_t *__set) __THROW __nonnull ((1));
+libc_hidden_proto(sigfillset)
 
 /* Add SIGNO to SET.  */
 extern int sigaddset (sigset_t *__set, int __signo) __THROW __nonnull ((1));
+libc_hidden_proto(sigaddset)
 
 /* Remove SIGNO from SET.  */
 extern int sigdelset (sigset_t *__set, int __signo) __THROW __nonnull ((1));
+libc_hidden_proto(sigdelset)
 
 /* Return 1 if SIGNO is in SET, 0 if not.  */
 extern int sigismember (__const sigset_t *__set, int __signo)
@@ -254,6 +267,7 @@ libc_hidden_proto(sigprocmask)
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern int sigsuspend (__const sigset_t *__set) __nonnull ((1));
+libc_hidden_proto(sigsuspend)
 
 /* Get and/or set the action for signal SIG.  */
 extern int sigaction (int __sig, __const struct sigaction *__restrict __act,
@@ -270,6 +284,7 @@ extern int sigpending (sigset_t *__set) __THROW __nonnull ((1));
    __THROW.  */
 extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
      __nonnull ((1, 2));
+libc_hidden_proto(sigwait)
 
 # if defined __USE_POSIX199309 && defined __UCLIBC_HAS_REALTIME__
 /* Select any of pending signals from SET and place information in INFO.
@@ -278,6 +293,7 @@ extern int sigwait (__const sigset_t *__restrict __set, int *__restrict __sig)
    __THROW.  */
 extern int sigwaitinfo (__const sigset_t *__restrict __set,
 			siginfo_t *__restrict __info) __nonnull ((1));
+libc_hidden_proto(sigwaitinfo)
 
 /* Select any of pending signals from SET and place information in INFO.
    Wait the time specified by TIMEOUT if no signal is pending.
@@ -288,6 +304,7 @@ extern int sigtimedwait (__const sigset_t *__restrict __set,
 			 siginfo_t *__restrict __info,
 			 __const struct timespec *__restrict __timeout)
      __nonnull ((1));
+libc_hidden_proto(sigtimedwait)
 
 /* Send signal SIG to the process PID.  Associate data in VAL with the
    signal.  */

+ 41 - 0
include/stdio.h

@@ -143,6 +143,7 @@ extern FILE *stderr;        /* Standard error output stream.  */
 __BEGIN_NAMESPACE_STD
 /* Remove file FILENAME.  */
 extern int remove (__const char *__filename) __THROW;
+libc_hidden_proto(remove)
 /* Rename file OLD to NEW.  */
 extern int rename (__const char *__old, __const char *__new) __THROW;
 __END_NAMESPACE_STD
@@ -203,6 +204,7 @@ libc_hidden_proto(fclose)
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern int fflush (FILE *__stream);
+libc_hidden_proto(fflush)
 __END_NAMESPACE_STD
 
 #ifdef __USE_MISC
@@ -213,6 +215,7 @@ __END_NAMESPACE_STD
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern int fflush_unlocked (FILE *__stream);
+libc_hidden_proto(fflush_unlocked)
 #endif
 
 #ifdef __USE_GNU
@@ -269,6 +272,7 @@ extern FILE *freopen64 (__const char *__restrict __filename,
 #ifdef	__USE_POSIX
 /* Create a new stream that refers to an existing system file descriptor.  */
 extern FILE *fdopen (int __fd, __const char *__modes) __THROW __wur;
+libc_hidden_proto(fdopen)
 #endif
 
 #ifdef	__USE_GNU
@@ -278,6 +282,7 @@ extern FILE *fdopen (int __fd, __const char *__modes) __THROW __wur;
 extern FILE *fopencookie (void *__restrict __magic_cookie,
 			  __const char *__restrict __modes,
 			  _IO_cookie_io_functions_t __io_funcs) __THROW __wur;
+libc_hidden_proto(fopencookie)
 
 /* Create a new stream that refers to a memory buffer.  */
 extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
@@ -288,6 +293,7 @@ extern FILE *fmemopen (void *__s, size_t __len, __const char *__modes)
    and the number of characters written on fflush or fclose.  */
 extern FILE *open_memstream (char **__restrict __bufloc,
 			     size_t *__restrict __sizeloc) __THROW __wur;
+libc_hidden_proto(open_memstream)
 #endif
 #endif
 
@@ -301,6 +307,7 @@ extern void setbuf (FILE *__restrict __stream, char *__restrict __buf) __THROW;
    else allocate an internal buffer N bytes long.  */
 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
 		    int __modes, size_t __n) __THROW;
+libc_hidden_proto(setvbuf)
 __END_NAMESPACE_STD
 
 #ifdef	__USE_BSD
@@ -356,10 +363,12 @@ __BEGIN_NAMESPACE_C99
 extern int snprintf (char *__restrict __s, size_t __maxlen,
 		     __const char *__restrict __format, ...)
      __THROW __attribute__ ((__format__ (__printf__, 3, 4)));
+libc_hidden_proto(snprintf)
 
 extern int vsnprintf (char *__restrict __s, size_t __maxlen,
 		      __const char *__restrict __format, __gnuc_va_list __arg)
      __THROW __attribute__ ((__format__ (__printf__, 3, 0)));
+libc_hidden_proto(vsnprintf)
 __END_NAMESPACE_C99
 #endif
 
@@ -369,6 +378,7 @@ __END_NAMESPACE_C99
 extern int vasprintf (char **__restrict __ptr, __const char *__restrict __f,
 		      __gnuc_va_list __arg)
      __THROW __attribute__ ((__format__ (__printf__, 2, 0))) __wur;
+libc_hidden_proto(vasprintf)
 #if 0 /* uClibc: disabled */
 extern int __asprintf (char **__restrict __ptr,
 		       __const char *__restrict __fmt, ...)
@@ -377,6 +387,7 @@ extern int __asprintf (char **__restrict __ptr,
 extern int asprintf (char **__restrict __ptr,
 		     __const char *__restrict __fmt, ...)
      __THROW __attribute__ ((__format__ (__printf__, 2, 3))) __wur;
+libc_hidden_proto(asprintf)
 
 /* Write formatted output to a file descriptor.
 
@@ -387,6 +398,7 @@ extern int asprintf (char **__restrict __ptr,
 extern int vdprintf (int __fd, __const char *__restrict __fmt,
 		     __gnuc_va_list __arg)
      __attribute__ ((__format__ (__printf__, 2, 0)));
+libc_hidden_proto(vdprintf)
 extern int dprintf (int __fd, __const char *__restrict __fmt, ...)
      __attribute__ ((__format__ (__printf__, 2, 3)));
 #endif
@@ -399,6 +411,7 @@ __BEGIN_NAMESPACE_STD
    marked with __THROW.  */
 extern int fscanf (FILE *__restrict __stream,
 		   __const char *__restrict __format, ...) __wur;
+libc_hidden_proto(fscanf)
 /* Read formatted input from stdin.
 
    This function is a possible cancellation point and therefore not
@@ -407,6 +420,7 @@ extern int scanf (__const char *__restrict __format, ...) __wur;
 /* Read formatted input from S.  */
 extern int sscanf (__const char *__restrict __s,
 		   __const char *__restrict __format, ...) __THROW;
+libc_hidden_proto(sscanf)
 __END_NAMESPACE_STD
 
 #ifdef	__USE_ISOC99
@@ -418,6 +432,7 @@ __BEGIN_NAMESPACE_C99
 extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
 		    __gnuc_va_list __arg)
      __attribute__ ((__format__ (__scanf__, 2, 0))) __wur;
+libc_hidden_proto(vfscanf)
 
 /* Read formatted input from stdin into argument list ARG.
 
@@ -425,11 +440,13 @@ extern int vfscanf (FILE *__restrict __s, __const char *__restrict __format,
    marked with __THROW.  */
 extern int vscanf (__const char *__restrict __format, __gnuc_va_list __arg)
      __attribute__ ((__format__ (__scanf__, 1, 0))) __wur;
+libc_hidden_proto(vscanf)
 
 /* Read formatted input from S into argument list ARG.  */
 extern int vsscanf (__const char *__restrict __s,
 		    __const char *__restrict __format, __gnuc_va_list __arg)
      __THROW __attribute__ ((__format__ (__scanf__, 2, 0)));
+libc_hidden_proto(vsscanf)
 __END_NAMESPACE_C99
 #endif /* Use ISO C9x.  */
 
@@ -440,6 +457,7 @@ __BEGIN_NAMESPACE_STD
    These functions are possible cancellation points and therefore not
    marked with __THROW.  */
 extern int fgetc (FILE *__stream);
+libc_hidden_proto(fgetc)
 extern int getc (FILE *__stream);
 
 /* Read a character from stdin.
@@ -459,7 +477,9 @@ __END_NAMESPACE_STD
    These functions are possible cancellation points and therefore not
    marked with __THROW.  */
 extern int getc_unlocked (FILE *__stream);
+libc_hidden_proto(getc_unlocked)
 extern int getchar_unlocked (void);
+libc_hidden_proto(getchar_unlocked)
 
 /* SUSv3 allows getc_unlocked to be a macro */
 #define getc_unlocked(_fp) __GETC_UNLOCKED(_fp)
@@ -473,6 +493,7 @@ extern int getchar_unlocked (void);
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern int fgetc_unlocked (FILE *__stream);
+libc_hidden_proto(fgetc_unlocked)
 #endif /* Use MISC.  */
 
 
@@ -485,7 +506,9 @@ __BEGIN_NAMESPACE_STD
    These functions is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern int fputc (int __c, FILE *__stream);
+libc_hidden_proto(fputc)
 extern int putc (int __c, FILE *__stream);
+libc_hidden_proto(putc)
 
 /* Write a character to stdout.
 
@@ -506,6 +529,7 @@ __END_NAMESPACE_STD
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern int fputc_unlocked (int __c, FILE *__stream);
+libc_hidden_proto(fputc_unlocked)
 #endif /* Use MISC.  */
 
 #if defined __USE_POSIX || defined __USE_MISC
@@ -514,6 +538,7 @@ extern int fputc_unlocked (int __c, FILE *__stream);
    These functions are possible cancellation points and therefore not
    marked with __THROW.  */
 extern int putc_unlocked (int __c, FILE *__stream);
+libc_hidden_proto(putc_unlocked)
 extern int putchar_unlocked (int __c);
 
 /* SUSv3 allows putc_unlocked to be a macro */
@@ -557,6 +582,7 @@ __END_NAMESPACE_STD
    therefore not marked with __THROW.  */
 extern char *fgets_unlocked (char *__restrict __s, int __n,
 			     FILE *__restrict __stream) __wur;
+libc_hidden_proto(fgets_unlocked)
 #endif
 
 
@@ -579,6 +605,7 @@ extern __ssize_t __getdelim (char **__restrict __lineptr,
 extern __ssize_t getdelim (char **__restrict __lineptr,
 			     size_t *__restrict __n, int __delimiter,
 			     FILE *__restrict __stream) __wur;
+libc_hidden_proto(getdelim)
 
 /* Like `getdelim', but reads up to a newline.
 
@@ -589,6 +616,7 @@ extern __ssize_t getdelim (char **__restrict __lineptr,
 extern __ssize_t getline (char **__restrict __lineptr,
 			    size_t *__restrict __n,
 			    FILE *__restrict __stream) __wur;
+libc_hidden_proto(getline)
 #endif
 
 
@@ -612,6 +640,7 @@ extern int puts (__const char *__s);
    This function is a possible cancellation points and therefore not
    marked with __THROW.  */
 extern int ungetc (int __c, FILE *__stream);
+libc_hidden_proto(ungetc)
 
 
 /* Read chunks of generic data from STREAM.
@@ -620,12 +649,14 @@ extern int ungetc (int __c, FILE *__stream);
    marked with __THROW.  */
 extern size_t fread (void *__restrict __ptr, size_t __size,
 		     size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fread)
 /* Write chunks of generic data to STREAM.
 
    This function is a possible cancellation points and therefore not
    marked with __THROW.  */
 extern size_t fwrite (__const void *__restrict __ptr, size_t __size,
 		      size_t __n, FILE *__restrict __s) __wur;
+libc_hidden_proto(fwrite)
 __END_NAMESPACE_STD
 
 #ifdef __USE_GNU
@@ -637,6 +668,7 @@ __END_NAMESPACE_STD
    therefore not marked with __THROW.  */
 extern int fputs_unlocked (__const char *__restrict __s,
 			   FILE *__restrict __stream);
+libc_hidden_proto(fputs_unlocked)
 #endif
 
 #ifdef __USE_MISC
@@ -648,8 +680,10 @@ extern int fputs_unlocked (__const char *__restrict __s,
    therefore not marked with __THROW.  */
 extern size_t fread_unlocked (void *__restrict __ptr, size_t __size,
 			      size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fread_unlocked)
 extern size_t fwrite_unlocked (__const void *__restrict __ptr, size_t __size,
 			       size_t __n, FILE *__restrict __stream) __wur;
+libc_hidden_proto(fwrite_unlocked)
 #endif
 
 
@@ -659,16 +693,19 @@ __BEGIN_NAMESPACE_STD
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern int fseek (FILE *__stream, long int __off, int __whence);
+libc_hidden_proto(fseek)
 /* Return the current position of STREAM.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern long int ftell (FILE *__stream) __wur;
+libc_hidden_proto(ftell)
 /* Rewind to the beginning of STREAM.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void rewind (FILE *__stream);
+libc_hidden_proto(rewind)
 __END_NAMESPACE_STD
 
 /* The Single Unix Specification, Version 2, specifies an alternative,
@@ -728,7 +765,9 @@ __END_NAMESPACE_STD
 
 #ifdef __USE_LARGEFILE64
 extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence);
+libc_hidden_proto(fseeko64)
 extern __off64_t ftello64 (FILE *__stream) __wur;
+libc_hidden_proto(ftello64)
 extern int fgetpos64 (FILE *__restrict __stream, fpos64_t *__restrict __pos);
 extern int fsetpos64 (FILE *__stream, __const fpos64_t *__pos);
 #endif
@@ -772,11 +811,13 @@ extern __const char *__const sys_errlist[];
 #ifdef	__USE_POSIX
 /* Return the system file descriptor for STREAM.  */
 extern int fileno (FILE *__stream) __THROW __wur;
+libc_hidden_proto(fileno)
 #endif /* Use POSIX.  */
 
 #ifdef __USE_MISC
 /* Faster version when locking is not required.  */
 extern int fileno_unlocked (FILE *__stream) __THROW __wur;
+libc_hidden_proto(fileno_unlocked)
 #endif
 
 

+ 1 - 0
include/stdio_ext.h

@@ -81,6 +81,7 @@ extern void _flushlbf (void);
 
 /* Set locking status of stream FP to TYPE.  */
 extern int __fsetlocking (FILE *__fp, int __type) __THROW;
+libc_hidden_proto(__fsetlocking)
 
 __END_DECLS
 

+ 25 - 0
include/stdlib.h

@@ -145,6 +145,7 @@ extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
 #ifdef __UCLIBC_HAS_WCHAR__
 #define	MB_CUR_MAX	(_stdlib_mb_cur_max ())
 extern size_t _stdlib_mb_cur_max (void) __THROW __wur;
+libc_hidden_proto(_stdlib_mb_cur_max)
 #endif
 
 
@@ -157,9 +158,11 @@ extern double atof (__const char *__nptr)
 /* Convert a string to an integer.  */
 extern int atoi (__const char *__nptr)
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
+libc_hidden_proto(atoi)
 /* Convert a string to a long integer.  */
 extern long int atol (__const char *__nptr)
      __THROW __attribute_pure__ __nonnull ((1)) __wur;
+libc_hidden_proto(atol)
 __END_NAMESPACE_STD
 
 #if defined __USE_ISOC99 || defined __USE_MISC
@@ -176,6 +179,7 @@ __BEGIN_NAMESPACE_STD
 extern double strtod (__const char *__restrict __nptr,
 		      char **__restrict __endptr)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(strtod)
 __END_NAMESPACE_STD
 
 #ifdef	__USE_ISOC99
@@ -196,10 +200,12 @@ __BEGIN_NAMESPACE_STD
 extern long int strtol (__const char *__restrict __nptr,
 			char **__restrict __endptr, int __base)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(strtol)
 /* Convert a string to an unsigned long integer.  */
 extern unsigned long int strtoul (__const char *__restrict __nptr,
 				  char **__restrict __endptr, int __base)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(strtoul)
 __END_NAMESPACE_STD
 
 #ifdef __USE_BSD
@@ -222,6 +228,7 @@ __extension__
 extern long long int strtoll (__const char *__restrict __nptr,
 			      char **__restrict __endptr, int __base)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(strtoll)
 /* Convert a string to an unsigned quadword integer.  */
 __extension__
 extern unsigned long long int strtoull (__const char *__restrict __nptr,
@@ -253,11 +260,13 @@ __END_NAMESPACE_C99
 extern long int strtol_l (__const char *__restrict __nptr,
 			  char **__restrict __endptr, int __base,
 			  __locale_t __loc) __THROW __nonnull ((1, 4)) __wur;
+libc_hidden_proto(strtol_l)
 
 extern unsigned long int strtoul_l (__const char *__restrict __nptr,
 				    char **__restrict __endptr,
 				    int __base, __locale_t __loc)
      __THROW __nonnull ((1, 4)) __wur;
+libc_hidden_proto(strtoul_l)
 
 __extension__
 extern long long int strtoll_l (__const char *__restrict __nptr,
@@ -311,6 +320,7 @@ extern long int a64l (__const char *__s)
    We provide both interfaces to the same random number generator.  */
 /* Return a random long integer between 0 and RAND_MAX inclusive.  */
 extern long int random (void) __THROW;
+libc_hidden_proto(random)
 
 /* Seed the random number generator with the given number.  */
 extern void srandom (unsigned int __seed) __THROW;
@@ -345,18 +355,22 @@ struct random_data
 
 extern int random_r (struct random_data *__restrict __buf,
 		     int32_t *__restrict __result) __THROW __nonnull ((1, 2));
+libc_hidden_proto(random_r)
 
 extern int srandom_r (unsigned int __seed, struct random_data *__buf)
      __THROW __nonnull ((2));
+libc_hidden_proto(srandom_r)
 
 extern int initstate_r (unsigned int __seed, char *__restrict __statebuf,
 			size_t __statelen,
 			struct random_data *__restrict __buf)
      __THROW __nonnull ((2, 4));
+libc_hidden_proto(initstate_r)
 
 extern int setstate_r (char *__restrict __statebuf,
 		       struct random_data *__restrict __buf)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(setstate_r)
 # endif	/* Use misc.  */
 #endif	/* Use SVID || extended X/Open || BSD. */
 
@@ -419,16 +433,19 @@ extern int drand48_r (struct drand48_data *__restrict __buffer,
 extern int erand48_r (unsigned short int __xsubi[3],
 		      struct drand48_data *__restrict __buffer,
 		      double *__restrict __result) __THROW __nonnull ((1, 2));
+libc_hidden_proto(erand48_r)
 #endif /* __UCLIBC_HAS_FLOATS__ */
 
 /* Return non-negative, long integer in [0,2^31).  */
 extern int lrand48_r (struct drand48_data *__restrict __buffer,
 		      long int *__restrict __result)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(lrand48_r)
 extern int nrand48_r (unsigned short int __xsubi[3],
 		      struct drand48_data *__restrict __buffer,
 		      long int *__restrict __result)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(nrand48_r)
 
 /* Return signed, long integers in [-2^31,2^31).  */
 extern int mrand48_r (struct drand48_data *__restrict __buffer,
@@ -438,13 +455,16 @@ extern int jrand48_r (unsigned short int __xsubi[3],
 		      struct drand48_data *__restrict __buffer,
 		      long int *__restrict __result)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(jrand48_r)
 
 /* Seed random number generator.  */
 extern int srand48_r (long int __seedval, struct drand48_data *__buffer)
      __THROW __nonnull ((2));
+libc_hidden_proto(srand48_r)
 
 extern int seed48_r (unsigned short int __seed16v[3],
 		     struct drand48_data *__buffer) __THROW __nonnull ((1, 2));
+libc_hidden_proto(seed48_r)
 
 extern int lcong48_r (unsigned short int __param[7],
 		      struct drand48_data *__buffer)
@@ -552,9 +572,11 @@ extern int putenv (char *__string) __THROW __nonnull ((1));
    If REPLACE is nonzero, overwrite an existing value.  */
 extern int setenv (__const char *__name, __const char *__value, int __replace)
      __THROW __nonnull ((2));
+libc_hidden_proto(setenv)
 
 /* Remove the variable NAME from the environment.  */
 extern int unsetenv (__const char *__name) __THROW;
+libc_hidden_proto(unsetenv)
 #endif
 
 /* The following is used by uClibc in atexit.c and sysconf.c */
@@ -665,6 +687,7 @@ extern void *bsearch (__const void *__key, __const void *__base,
    using COMPAR to perform the comparisons.  */
 extern void qsort (void *__base, size_t __nmemb, size_t __size,
 		   __compar_fn_t __compar) __nonnull ((1, 4));
+libc_hidden_proto(qsort)
 
 
 /* Return the absolute value of X.  */
@@ -845,6 +868,7 @@ extern char *ptsname (int __fd) __THROW __wur;
    Return 0 on success, otherwise an error number.  */
 extern int ptsname_r (int __fd, char *__buf, size_t __buflen)
      __THROW __nonnull ((2));
+libc_hidden_proto(ptsname_r)
 # endif
 # if defined __UCLIBC_HAS_GETPT__
 /* Open a master pseudo terminal and return its file descriptor.  */
@@ -864,6 +888,7 @@ extern int getloadavg (double __loadavg[], int __nelem)
 #include <stdint.h>
 extern uint32_t arc4random(void);
 extern void arc4random_stir(void);
+libc_hidden_proto(arc4random_stir)
 extern void arc4random_addrandom(unsigned char *, int);
 #endif
 

+ 2 - 0
include/string.h

@@ -307,6 +307,7 @@ __END_NAMESPACE_STD
    ERRNUM.  */
 extern int __xpg_strerror_r (int __errnum, char *__buf, size_t __buflen)
      __THROW __nonnull ((2));
+libc_hidden_proto(__xpg_strerror_r)
 #  ifdef __REDIRECT_NTH
 extern int __REDIRECT_NTH (strerror_r,
 			   (int __errnum, char *__buf, size_t __buflen),
@@ -319,6 +320,7 @@ extern int __REDIRECT_NTH (strerror_r,
    used.  */
 extern char *__glibc_strerror_r (int __errnum, char *__buf, size_t __buflen)
      __THROW __nonnull ((2));
+libc_hidden_proto(__glibc_strerror_r)
 #  ifdef __REDIRECT_NTH
 extern char * __REDIRECT_NTH (strerror_r,
 			   (int __errnum, char *__buf, size_t __buflen),

+ 2 - 0
include/sys/mman.h

@@ -76,6 +76,7 @@ extern void *mmap64 (void *__addr, size_t __len, int __prot,
 /* Deallocate any mapping for the region starting at ADDR and extending LEN
    bytes.  Returns 0 if successful, -1 for errors (and sets errno).  */
 extern int munmap (void *__addr, size_t __len) __THROW;
+libc_hidden_proto(munmap)
 
 /* Change the memory protection of the region starting at ADDR and
    extending LEN bytes to PROT.  Returns 0 if successful, -1 for errors
@@ -157,6 +158,7 @@ extern int mincore (void *__start, size_t __len, unsigned char *__vec)
    resides after a successful call.  */
 extern void *mremap (void *__addr, size_t __old_len, size_t __new_len,
 		     int __flags, ...) __THROW;
+libc_hidden_proto(mremap)
 
 #ifdef __UCLIBC_LINUX_SPECIFIC__
 /* Remap arbitrary pages of a shared backing store within an existing

+ 1 - 0
include/sys/poll.h

@@ -70,6 +70,7 @@ libc_hidden_proto(poll)
 extern int ppoll (struct pollfd *__fds, nfds_t __nfds,
 		  __const struct timespec *__timeout,
 		  __const __sigset_t *__ss);
+libc_hidden_proto(ppoll)
 #endif
 
 __END_DECLS

+ 4 - 0
include/sys/resource.h

@@ -50,6 +50,7 @@ typedef int __priority_which_t;
 #ifndef __USE_FILE_OFFSET64
 extern int getrlimit (__rlimit_resource_t __resource,
 		      struct rlimit *__rlimits) __THROW;
+libc_hidden_proto(getrlimit)
 #else
 # ifdef __REDIRECT_NTH
 extern int __REDIRECT_NTH (getrlimit, (__rlimit_resource_t __resource,
@@ -69,6 +70,7 @@ extern int getrlimit64 (__rlimit_resource_t __resource,
 #ifndef __USE_FILE_OFFSET64
 extern int setrlimit (__rlimit_resource_t __resource,
 		      __const struct rlimit *__rlimits) __THROW;
+libc_hidden_proto(setrlimit)
 #else
 # ifdef __REDIRECT_NTH
 extern int __REDIRECT_NTH (setrlimit, (__rlimit_resource_t __resource,
@@ -92,11 +94,13 @@ extern int getrusage (__rusage_who_t __who, struct rusage *__usage) __THROW;
    (as specified by WHO) is used.  A lower priority number means higher
    priority.  Priorities range from PRIO_MIN to PRIO_MAX (above).  */
 extern int getpriority (__priority_which_t __which, id_t __who) __THROW;
+libc_hidden_proto(getpriority)
 
 /* Set the priority of all processes specified by WHICH and WHO (see above)
    to PRIO.  Returns 0 on success, -1 on errors.  */
 extern int setpriority (__priority_which_t __which, id_t __who, int __prio)
      __THROW;
+libc_hidden_proto(setpriority)
 
 __END_DECLS
 

+ 1 - 0
include/sys/select.h

@@ -110,6 +110,7 @@ extern int select (int __nfds, fd_set *__restrict __readfds,
 		   fd_set *__restrict __writefds,
 		   fd_set *__restrict __exceptfds,
 		   struct timeval *__restrict __timeout);
+libc_hidden_proto(select)
 
 #ifdef __USE_XOPEN2K
 /* Same as above only that the TIMEOUT value is given with higher

+ 12 - 0
include/sys/socket.h

@@ -110,10 +110,12 @@ extern int socketpair (int __domain, int __type, int __protocol,
 /* Give the socket FD the local address ADDR (which is LEN bytes long).  */
 extern int bind (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len)
      __THROW;
+libc_hidden_proto(bind)
 
 /* Put the local address of FD into *ADDR and its length in *LEN.  */
 extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
 			socklen_t *__restrict __len) __THROW;
+libc_hidden_proto(getsockname)
 
 /* Open a connection on socket FD to peer at ADDR (which LEN bytes long).
    For connectionless socket types, just set the default address to send to
@@ -123,6 +125,7 @@ extern int getsockname (int __fd, __SOCKADDR_ARG __addr,
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern int connect (int __fd, __CONST_SOCKADDR_ARG __addr, socklen_t __len);
+libc_hidden_proto(connect)
 
 /* Put the address of the peer connected to socket FD into *ADDR
    (which is *LEN bytes long), and its actual length into *LEN.  */
@@ -135,6 +138,7 @@ extern int getpeername (int __fd, __SOCKADDR_ARG __addr,
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags);
+libc_hidden_proto(send)
 
 /* Read N bytes into BUF from socket FD.
    Returns the number read or -1 for errors.
@@ -142,6 +146,7 @@ extern ssize_t send (int __fd, __const void *__buf, size_t __n, int __flags);
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
+libc_hidden_proto(recv)
 
 /* Send N bytes of BUF on socket FD to peer at address ADDR (which is
    ADDR_LEN bytes long).  Returns the number sent, or -1 for errors.
@@ -151,6 +156,7 @@ extern ssize_t recv (int __fd, void *__buf, size_t __n, int __flags);
 extern ssize_t sendto (int __fd, __const void *__buf, size_t __n,
 		       int __flags, __CONST_SOCKADDR_ARG __addr,
 		       socklen_t __addr_len);
+libc_hidden_proto(sendto)
 
 /* Read N bytes into BUF through socket FD.
    If ADDR is not NULL, fill in *ADDR_LEN bytes of it with tha address of
@@ -162,6 +168,7 @@ extern ssize_t sendto (int __fd, __const void *__buf, size_t __n,
 extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
 			 int __flags, __SOCKADDR_ARG __addr,
 			 socklen_t *__restrict __addr_len);
+libc_hidden_proto(recvfrom)
 
 
 /* Send a message described MESSAGE on socket FD.
@@ -171,6 +178,7 @@ extern ssize_t recvfrom (int __fd, void *__restrict __buf, size_t __n,
    __THROW.  */
 extern ssize_t sendmsg (int __fd, __const struct msghdr *__message,
 			int __flags);
+libc_hidden_proto(sendmsg)
 
 /* Receive a message as described by MESSAGE from socket FD.
    Returns the number of bytes read or -1 for errors.
@@ -178,6 +186,7 @@ extern ssize_t sendmsg (int __fd, __const struct msghdr *__message,
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern ssize_t recvmsg (int __fd, struct msghdr *__message, int __flags);
+libc_hidden_proto(recvmsg)
 
 
 /* Put the current value for socket FD's option OPTNAME at protocol level LEVEL
@@ -192,12 +201,14 @@ extern int getsockopt (int __fd, int __level, int __optname,
    Returns 0 on success, -1 for errors.  */
 extern int setsockopt (int __fd, int __level, int __optname,
 		       __const void *__optval, socklen_t __optlen) __THROW;
+libc_hidden_proto(setsockopt)
 
 
 /* Prepare to accept connections on socket FD.
    N connection requests will be queued before further requests are refused.
    Returns 0 on success, -1 for errors.  */
 extern int listen (int __fd, int __n) __THROW;
+libc_hidden_proto(listen)
 
 /* Await a connection on socket FD.
    When a connection arrives, open a new socket to communicate with it,
@@ -209,6 +220,7 @@ extern int listen (int __fd, int __n) __THROW;
    __THROW.  */
 extern int accept (int __fd, __SOCKADDR_ARG __addr,
 		   socklen_t *__restrict __addr_len);
+libc_hidden_proto(accept)
 
 /* Shut down all or part of the connection open on socket FD.
    HOW determines what to shut down:

+ 6 - 0
include/sys/stat.h

@@ -228,6 +228,8 @@ extern int __REDIRECT_NTH (fstat, (int __fd, struct stat *__buf), fstat64)
 extern int stat64 (__const char *__restrict __file,
 		   struct stat64 *__restrict __buf) __THROW __nonnull ((1, 2));
 extern int fstat64 (int __fd, struct stat64 *__buf) __THROW __nonnull ((2));
+libc_hidden_proto(stat64)
+libc_hidden_proto(fstat64)
 #endif
 
 #ifdef __USE_ATFILE
@@ -275,6 +277,7 @@ extern int __REDIRECT_NTH (lstat,
 extern int lstat64 (__const char *__restrict __file,
 		    struct stat64 *__restrict __buf)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(lstat64)
 # endif
 #endif
 
@@ -282,6 +285,7 @@ extern int lstat64 (__const char *__restrict __file,
    If FILE is a symbolic link, this affects its target instead.  */
 extern int chmod (__const char *__file, __mode_t __mode)
      __THROW __nonnull ((1));
+libc_hidden_proto(chmod)
 
 #if 0 /*def __USE_BSD*/
 /* Set file access permissions for FILE to MODE.
@@ -318,6 +322,7 @@ extern __mode_t getumask (void) __THROW;
 /* Create a new directory named PATH, with permission bits MODE.  */
 extern int mkdir (__const char *__path, __mode_t __mode)
      __THROW __nonnull ((1));
+libc_hidden_proto(mkdir)
 
 #ifdef __USE_ATFILE
 /* Like mkdir, create a new directory with permission bits MODE.  But
@@ -333,6 +338,7 @@ extern int mkdirat (int __fd, __const char *__path, __mode_t __mode)
 #if defined __USE_MISC || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 extern int mknod (__const char *__path, __mode_t __mode, __dev_t __dev)
      __THROW __nonnull ((1));
+libc_hidden_proto(mknod)
 #endif
 
 #ifdef __USE_ATFILE

+ 2 - 0
include/sys/statfs.h

@@ -43,6 +43,7 @@ extern int __REDIRECT_NTH (statfs,
 #ifdef __USE_LARGEFILE64
 extern int statfs64 (__const char *__file, struct statfs64 *__buf)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(statfs64)
 #endif
 
 #if defined __UCLIBC_LINUX_SPECIFIC__
@@ -62,6 +63,7 @@ extern int __REDIRECT_NTH (fstatfs, (int __fildes, struct statfs *__buf),
 #ifdef __USE_LARGEFILE64
 extern int fstatfs64 (int __fildes, struct statfs64 *__buf)
      __THROW __nonnull ((2));
+libc_hidden_proto(fstatfs64)
 #endif
 #endif /* __UCLIBC_LINUX_SPECIFIC__ */
 

+ 2 - 0
include/sys/statvfs.h

@@ -52,6 +52,7 @@ __BEGIN_DECLS
 extern int statvfs (__const char *__restrict __file,
 		    struct statvfs *__restrict __buf)
      __THROW __nonnull ((1, 2));
+libc_hidden_proto(statvfs)
 #else
 # ifdef __REDIRECT
 extern int __REDIRECT (statvfs,
@@ -73,6 +74,7 @@ extern int statvfs64 (__const char *__restrict __file,
 #ifndef __USE_FILE_OFFSET64
 extern int fstatvfs (int __fildes, struct statvfs *__buf)
      __THROW __nonnull ((2));
+libc_hidden_proto(fstatvfs)
 #else
 # ifdef __REDIRECT
 extern int __REDIRECT (fstatvfs, (int __fildes, struct statvfs *__buf),

+ 4 - 0
include/sys/syslog.h

@@ -179,12 +179,14 @@ __BEGIN_DECLS
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void closelog (void);
+libc_hidden_proto(closelog)
 
 /* Open connection to system logger.
 
    This function is a possible cancellation point and therefore not
    marked with __THROW.  */
 extern void openlog (__const char *__ident, int __option, int __facility);
+libc_hidden_proto(openlog)
 
 /* Set the log mask level.  */
 extern int setlogmask (int __mask) __THROW;
@@ -195,6 +197,7 @@ extern int setlogmask (int __mask) __THROW;
    marked with __THROW.  */
 extern void syslog (int __pri, __const char *__fmt, ...)
      __attribute__ ((__format__ (__printf__, 2, 3)));
+libc_hidden_proto(syslog)
 
 #ifdef __USE_BSD
 /* Generate a log message using FMT and using arguments pointed to by AP.
@@ -205,6 +208,7 @@ extern void syslog (int __pri, __const char *__fmt, ...)
    therefore not marked with __THROW.  */
 extern void vsyslog (int __pri, __const char *__fmt, __gnuc_va_list __ap)
      __attribute__ ((__format__ (__printf__, 2, 0)));
+libc_hidden_proto(vsyslog)
 #endif
 
 __END_DECLS

+ 3 - 0
include/sys/time.h

@@ -79,6 +79,7 @@ libc_hidden_proto(gettimeofday)
 extern int settimeofday (__const struct timeval *__tv,
 			 __const struct timezone *__tz)
      __THROW __nonnull ((1));
+libc_hidden_proto(settimeofday)
 
 /* Adjust the current time of day by the amount in DELTA.
    If OLDDELTA is not NULL, it is filled in with the amount
@@ -133,12 +134,14 @@ extern int getitimer (__itimer_which_t __which,
 extern int setitimer (__itimer_which_t __which,
 		      __const struct itimerval *__restrict __new,
 		      struct itimerval *__restrict __old) __THROW;
+libc_hidden_proto(setitimer)
 
 /* Change the access time of FILE to TVP[0] and the modification time of
    FILE to TVP[1].  If TVP is a null pointer, use the current time instead.
    Returns 0 on success, -1 on errors.  */
 extern int utimes (__const char *__file, __const struct timeval __tvp[2])
      __THROW __nonnull ((1));
+libc_hidden_proto(utimes)
 
 #if 0 /*def __USE_BSD*/
 /* Same as `utimes', but does not follow symbolic links.  */

+ 1 - 0
include/sys/times.h

@@ -47,6 +47,7 @@ struct tms
    Return the elapsed real time, or (clock_t) -1 for errors.
    All times are in CLK_TCKths of a second.  */
 extern clock_t times (struct tms *__buffer) __THROW;
+libc_hidden_proto(times)
 
 __END_DECLS
 

+ 1 - 0
include/sys/timex.h

@@ -118,6 +118,7 @@ __BEGIN_DECLS
 
 extern int __adjtimex (struct timex *__ntx) __THROW;
 extern int adjtimex (struct timex *__ntx) __THROW;
+libc_hidden_proto(adjtimex)
 
 #if defined __UCLIBC_NTP_LEGACY__
 extern int ntp_gettime (struct ntptimeval *__ntv) __THROW;

+ 1 - 0
include/sys/utsname.h

@@ -67,6 +67,7 @@ struct utsname
 
 /* Put information about the system in NAME.  */
 extern int uname (struct utsname *__name) __THROW;
+libc_hidden_proto(uname)
 
 
 __END_DECLS

+ 2 - 0
include/sys/wait.h

@@ -137,6 +137,7 @@ extern __pid_t wait (__WAIT_STATUS __stat_loc);
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern __pid_t waitpid (__pid_t __pid, int *__stat_loc, int __options);
+libc_hidden_proto(waitpid)
 
 #if defined __USE_SVID || defined __USE_XOPEN
 # define __need_siginfo_t
@@ -178,6 +179,7 @@ struct rusage;
 /* PID is like waitpid.  Other args are like wait3.  */
 extern __pid_t wait4 (__pid_t __pid, __WAIT_STATUS __stat_loc, int __options,
 		      struct rusage *__usage) __THROW;
+libc_hidden_proto(wait4)
 #endif /* Use BSD.  */
 
 

+ 4 - 0
include/termios.h

@@ -53,9 +53,11 @@ extern speed_t cfgetispeed (__const struct termios *__termios_p) __THROW;
 
 /* Set the output baud rate stored in *TERMIOS_P to SPEED.  */
 extern int cfsetospeed (struct termios *__termios_p, speed_t __speed) __THROW;
+libc_hidden_proto(cfsetospeed)
 
 /* Set the input baud rate stored in *TERMIOS_P to SPEED.  */
 extern int cfsetispeed (struct termios *__termios_p, speed_t __speed) __THROW;
+libc_hidden_proto(cfsetispeed)
 
 #ifdef	__USE_BSD
 /* Set both the input and output baud rates in *TERMIOS_OP to SPEED.  */
@@ -65,11 +67,13 @@ extern int cfsetspeed (struct termios *__termios_p, speed_t __speed) __THROW;
 
 /* Put the state of FD into *TERMIOS_P.  */
 extern int tcgetattr (int __fd, struct termios *__termios_p) __THROW;
+libc_hidden_proto(tcgetattr)
 
 /* Set the state of FD to *TERMIOS_P.
    Values for OPTIONAL_ACTIONS (TCSA*) are in <bits/termios.h>.  */
 extern int tcsetattr (int __fd, int __optional_actions,
 		      __const struct termios *__termios_p) __THROW;
+libc_hidden_proto(tcsetattr)
 
 
 #ifdef	__USE_BSD

+ 11 - 0
include/time.h

@@ -205,6 +205,7 @@ extern time_t mktime (struct tm *__tp) __THROW;
 extern size_t strftime (char *__restrict __s, size_t __maxsize,
 			__const char *__restrict __format,
 			__const struct tm *__restrict __tp) __THROW;
+libc_hidden_proto(strftime)
 __END_NAMESPACE_STD
 
 # ifdef __USE_XOPEN
@@ -213,6 +214,7 @@ __END_NAMESPACE_STD
 extern char *strptime (__const char *__restrict __s,
 		       __const char *__restrict __fmt, struct tm *__tp)
      __THROW;
+libc_hidden_proto(strptime)
 # endif
 
 #ifdef __UCLIBC_HAS_XLOCALE__
@@ -225,10 +227,12 @@ extern size_t strftime_l (char *__restrict __s, size_t __maxsize,
 			  __const char *__restrict __format,
 			  __const struct tm *__restrict __tp,
 			  __locale_t __loc) __THROW;
+libc_hidden_proto(strftime_l)
 
 extern char *strptime_l (__const char *__restrict __s,
 			 __const char *__restrict __fmt, struct tm *__tp,
 			 __locale_t __loc) __THROW;
+libc_hidden_proto(strptime_l)
 # endif
 #endif
 
@@ -241,6 +245,7 @@ extern struct tm *gmtime (__const time_t *__timer) __THROW;
 /* Return the `struct tm' representation
    of *TIMER in the local timezone.  */
 extern struct tm *localtime (__const time_t *__timer) __THROW;
+libc_hidden_proto(localtime)
 __END_NAMESPACE_STD
 
 # if defined __USE_POSIX || defined __USE_MISC
@@ -253,15 +258,18 @@ extern struct tm *gmtime_r (__const time_t *__restrict __timer,
    using *TP to store the result.  */
 extern struct tm *localtime_r (__const time_t *__restrict __timer,
 			       struct tm *__restrict __tp) __THROW;
+libc_hidden_proto(localtime_r)
 # endif	/* POSIX or misc */
 
 __BEGIN_NAMESPACE_STD
 /* Return a string of the form "Day Mon dd hh:mm:ss yyyy\n"
    that is the representation of TP in this format.  */
 extern char *asctime (__const struct tm *__tp) __THROW;
+libc_hidden_proto(asctime)
 
 /* Equivalent to `asctime (localtime (timer))'.  */
 extern char *ctime (__const time_t *__timer) __THROW;
+libc_hidden_proto(ctime)
 __END_NAMESPACE_STD
 
 # if defined __USE_POSIX || defined __USE_MISC
@@ -271,6 +279,7 @@ __END_NAMESPACE_STD
    that is the representation of TP in this format.  */
 extern char *asctime_r (__const struct tm *__restrict __tp,
 			char *__restrict __buf) __THROW;
+libc_hidden_proto(asctime_r)
 
 /* Equivalent to `asctime_r (localtime_r (timer, *TMP*), buf)'.  */
 extern char *ctime_r (__const time_t *__restrict __timer,
@@ -294,6 +303,7 @@ extern char *tzname[2];
 /* Set time conversion information from the TZ environment variable.
    If TZ is not defined, a locale-dependent default is used.  */
 extern void tzset (void) __THROW;
+libc_hidden_proto(tzset)
 # endif
 
 # if defined __USE_SVID || defined __USE_XOPEN
@@ -337,6 +347,7 @@ extern int dysize (int __year) __THROW  __attribute__ ((__const__));
    __THROW.  */
 extern int nanosleep (__const struct timespec *__requested_time,
 		      struct timespec *__remaining);
+libc_hidden_proto(nanosleep)
 
 
 /* Get resolution of clock CLOCK_ID.  */

+ 3 - 0
include/ttyent.h

@@ -56,9 +56,12 @@ struct ttyent {
 __BEGIN_DECLS
 
 extern struct ttyent *getttyent (void) __THROW;
+libc_hidden_proto(getttyent)
 extern struct ttyent *getttynam (__const char *__tty) __THROW;
 extern int setttyent (void) __THROW;
+libc_hidden_proto(setttyent)
 extern int endttyent (void) __THROW;
+libc_hidden_proto(endttyent)
 
 __END_DECLS
 

+ 48 - 0
include/unistd.h

@@ -310,6 +310,7 @@ extern __off64_t __REDIRECT_NTH (lseek,
 #ifdef __USE_LARGEFILE64
 extern __off64_t lseek64 (int __fd, __off64_t __offset, int __whence)
      __THROW;
+libc_hidden_proto(lseek64)
 #endif
 
 /* Close the file descriptor FD.
@@ -384,6 +385,7 @@ extern ssize_t pwrite64 (int __fd, __const void *__buf, size_t __n,
    bytes written on PIPEDES[1] can be read from PIPEDES[0].
    Returns 0 if successful, -1 if not.  */
 extern int pipe (int __pipedes[2]) __THROW __wur;
+libc_hidden_proto(pipe)
 
 /* Schedule an alarm.  In SECONDS seconds, the process will get a SIGALRM.
    If SECONDS is zero, any currently scheduled alarm will be cancelled.
@@ -393,6 +395,7 @@ extern int pipe (int __pipedes[2]) __THROW __wur;
    to 0 and check its value after calling `alarm', and this might tell you.
    The signal may come late due to processor scheduling.  */
 extern unsigned int alarm (unsigned int __seconds) __THROW;
+libc_hidden_proto(alarm)
 
 /* Make the process sleep for SECONDS seconds, or until a signal arrives
    and is not ignored.  The function returns the number of seconds less
@@ -405,6 +408,7 @@ extern unsigned int alarm (unsigned int __seconds) __THROW;
    This function is a cancellation point and therefore not marked with
    __THROW.  */
 extern unsigned int sleep (unsigned int __seconds);
+libc_hidden_proto(sleep)
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 /* Set an alarm to go off (generating a SIGALRM signal) in VALUE
@@ -434,6 +438,7 @@ extern int pause (void);
 /* Change the owner and group of FILE.  */
 extern int chown (__const char *__file, __uid_t __owner, __gid_t __group)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(chown)
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 /* Change the owner and group of the file that FD is open on.  */
@@ -457,10 +462,12 @@ extern int fchownat (int __fd, __const char *__file, __uid_t __owner,
 
 /* Change the process's working directory to PATH.  */
 extern int chdir (__const char *__path) __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(chdir)
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 /* Change the process's working directory to the one FD is open on.  */
 extern int fchdir (int __fd) __THROW __wur;
+libc_hidden_proto(fchdir)
 #endif
 
 /* Get the pathname of the current working directory,
@@ -471,6 +478,7 @@ extern int fchdir (int __fd) __THROW __wur;
    bytes long, unless SIZE == 0, in which case it is as
    big as necessary.  */
 extern char *getcwd (char *__buf, size_t __size) __THROW __wur;
+libc_hidden_proto(getcwd)
 
 #ifdef	__USE_GNU
 /* Return a malloc'd string containing the current directory name.
@@ -493,6 +501,7 @@ extern int dup (int __fd) __THROW __wur;
 
 /* Duplicate FD to FD2, closing FD2 and making it open on the same file.  */
 extern int dup2 (int __fd, int __fd2) __THROW;
+libc_hidden_proto(dup2)
 
 /* NULL-terminated array of "NAME=VALUE" environment variables.  */
 extern char **__environ;
@@ -505,6 +514,7 @@ extern char **environ;
    environment ENVP.  ARGV and ENVP are terminated by NULL pointers.  */
 extern int execve (__const char *__path, char *__const __argv[],
 		   char *__const __envp[]) __THROW __nonnull ((1));
+libc_hidden_proto(execve)
 
 #if 0 /*def __USE_GNU*/
 /* Execute the file FD refers to, overlaying the running program image.
@@ -517,27 +527,32 @@ extern int fexecve (int __fd, char *__const __argv[], char *__const __envp[])
 /* Execute PATH with arguments ARGV and environment from `environ'.  */
 extern int execv (__const char *__path, char *__const __argv[])
      __THROW __nonnull ((1));
+libc_hidden_proto(execv)
 
 /* Execute PATH with all arguments after PATH until a NULL pointer,
    and the argument after that for environment.  */
 extern int execle (__const char *__path, __const char *__arg, ...)
      __THROW __nonnull ((1));
+libc_hidden_proto(execle)
 
 /* Execute PATH with all arguments after PATH until
    a NULL pointer and environment from `environ'.  */
 extern int execl (__const char *__path, __const char *__arg, ...)
      __THROW __nonnull ((1));
+libc_hidden_proto(execl)
 
 /* Execute FILE, searching in the `PATH' environment variable if it contains
    no slashes, with arguments ARGV and environment from `environ'.  */
 extern int execvp (__const char *__file, char *__const __argv[])
      __THROW __nonnull ((1));
+libc_hidden_proto(execvp)
 
 /* Execute FILE, searching in the `PATH' environment variable if
    it contains no slashes, with all arguments after FILE until a
    NULL pointer and environment from `environ'.  */
 extern int execlp (__const char *__file, __const char *__arg, ...)
      __THROW __nonnull ((1));
+libc_hidden_proto(execlp)
 
 
 #if defined __USE_MISC || defined __USE_XOPEN
@@ -565,6 +580,7 @@ extern long int fpathconf (int __fd, int __name) __THROW;
 
 /* Get the value of the system variable NAME.  */
 extern long int sysconf (int __name) __THROW;
+libc_hidden_proto(sysconf)
 
 #ifdef	__USE_POSIX2
 /* Get the value of the string-valued system variable NAME.  */
@@ -602,6 +618,7 @@ extern __pid_t getpgid (__pid_t __pid) __THROW;
    If PID is zero, the current process's process group ID is set.
    If PGID is zero, the process ID of the process is used.  */
 extern int setpgid (__pid_t __pid, __pid_t __pgid) __THROW;
+libc_hidden_proto(setpgid)
 
 #if defined __USE_SVID || defined __USE_BSD || defined __USE_XOPEN_EXTENDED
 /* Both System V and BSD have `setpgrp' functions, but with different
@@ -636,28 +653,35 @@ extern int __REDIRECT_NTH (setpgrp, (__pid_t __pid, __pid_t __pgrp), setpgid);
    The process group IDs of the session and the calling process
    are set to the process ID of the calling process, which is returned.  */
 extern __pid_t setsid (void) __THROW;
+libc_hidden_proto(setsid)
 
 #ifdef __USE_XOPEN_EXTENDED
 /* Return the session ID of the given process.  */
 extern __pid_t getsid (__pid_t __pid) __THROW;
+libc_hidden_proto(getsid)
 #endif
 
 /* Get the real user ID of the calling process.  */
 extern __uid_t getuid (void) __THROW;
+libc_hidden_proto(getuid)
 
 /* Get the effective user ID of the calling process.  */
 extern __uid_t geteuid (void) __THROW;
+libc_hidden_proto(geteuid)
 
 /* Get the real group ID of the calling process.  */
 extern __gid_t getgid (void) __THROW;
+libc_hidden_proto(getgid)
 
 /* Get the effective group ID of the calling process.  */
 extern __gid_t getegid (void) __THROW;
+libc_hidden_proto(getegid)
 
 /* If SIZE is zero, return the number of supplementary groups
    the calling process is in.  Otherwise, fill in the group IDs
    of its supplementary groups in LIST and return the number written.  */
 extern int getgroups (int __size, __gid_t __list[]) __THROW __wur;
+libc_hidden_proto(getgroups)
 
 #if 0 /*def	__USE_GNU*/
 /* Return nonzero iff the calling process is in group GID.  */
@@ -674,11 +698,13 @@ extern int setuid (__uid_t __uid) __THROW;
 /* Set the real user ID of the calling process to RUID,
    and the effective user ID of the calling process to EUID.  */
 extern int setreuid (__uid_t __ruid, __uid_t __euid) __THROW;
+libc_hidden_proto(setreuid)
 #endif
 
 #if defined __USE_BSD || defined __USE_XOPEN2K
 /* Set the effective user ID of the calling process to UID.  */
 extern int seteuid (__uid_t __uid) __THROW;
+libc_hidden_proto(seteuid)
 #endif /* Use BSD.  */
 
 /* Set the group ID of the calling process to GID.
@@ -691,6 +717,7 @@ extern int setgid (__gid_t __gid) __THROW;
 /* Set the real group ID of the calling process to RGID,
    and the effective group ID of the calling process to EGID.  */
 extern int setregid (__gid_t __rgid, __gid_t __egid) __THROW;
+libc_hidden_proto(setregid)
 #endif
 
 #if defined __USE_BSD || defined __USE_XOPEN2K
@@ -714,12 +741,14 @@ extern int getresgid (__gid_t *__rgid, __gid_t *__egid, __gid_t *__sgid)
    of the calling process to RUID, EUID, and SUID, respectively.  */
 extern int setresuid (__uid_t __ruid, __uid_t __euid, __uid_t __suid)
      __THROW;
+libc_hidden_proto(setresuid)
 #endif
 
 /* Set the real group ID, effective group ID, and saved-set group ID,
    of the calling process to RGID, EGID, and SGID, respectively.  */
 extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid)
      __THROW;
+libc_hidden_proto(setresgid)
 #endif
 
 
@@ -728,6 +757,7 @@ extern int setresgid (__gid_t __rgid, __gid_t __egid, __gid_t __sgid)
    Return -1 for errors, 0 to the new process,
    and the process ID of the new process to the old process.  */
 extern __pid_t fork (void) __THROW;
+libc_hidden_proto(fork)
 #endif
 
 #if defined __USE_BSD || defined __USE_XOPEN_EXTENDED
@@ -736,6 +766,7 @@ extern __pid_t fork (void) __THROW;
    replaced by a call to `execve'.  Return -1 for errors, 0 to the new process,
    and the process ID of the new process to the old process.  */
 extern __pid_t vfork (void) __THROW;
+libc_hidden_proto(vfork)
 #endif /* Use BSD. */
 
 
@@ -747,10 +778,13 @@ extern char *ttyname (int __fd) __THROW;
    open on in BUF.  Return 0 on success, otherwise an error number.  */
 extern int ttyname_r (int __fd, char *__buf, size_t __buflen)
      __THROW __nonnull ((2)) __wur;
+libc_hidden_proto(ttyname_r)
 
 /* Return 1 if FD is a valid descriptor associated
    with a terminal, zero if not.  */
 extern int isatty (int __fd) __THROW;
+libc_hidden_proto(isatty)
+
 
 #if 0 /*defined __USE_BSD \
     || (defined __USE_XOPEN_EXTENDED && !defined __USE_UNIX98)*/
@@ -783,6 +817,7 @@ extern int symlink (__const char *__from, __const char *__to)
 extern ssize_t readlink (__const char *__restrict __path,
 			 char *__restrict __buf, size_t __len)
      __THROW __nonnull ((1, 2)) __wur;
+libc_hidden_proto(readlink)
 #endif /* Use BSD.  */
 
 #ifdef __USE_ATFILE
@@ -798,6 +833,7 @@ extern ssize_t readlinkat (int __fd, __const char *__restrict __path,
 
 /* Remove the link NAME.  */
 extern int unlink (__const char *__name) __THROW __nonnull ((1));
+libc_hidden_proto(unlink)
 
 #ifdef __USE_ATFILE
 /* Remove the link NAME relative to FD.  */
@@ -807,10 +843,12 @@ extern int unlinkat (int __fd, __const char *__name, int __flag)
 
 /* Remove the directory PATH.  */
 extern int rmdir (__const char *__path) __THROW __nonnull ((1));
+libc_hidden_proto(rmdir)
 
 
 /* Return the foreground process group ID of FD.  */
 extern __pid_t tcgetpgrp (int __fd) __THROW;
+libc_hidden_proto(tcgetpgrp)
 
 /* Set the foreground process group ID of FD set PGRP_ID.  */
 extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __THROW;
@@ -821,6 +859,7 @@ extern int tcsetpgrp (int __fd, __pid_t __pgrp_id) __THROW;
    This function is a possible cancellation points and therefore not
    marked with __THROW.  */
 extern char *getlogin (void);
+libc_hidden_proto(getlogin)
 #if defined __USE_REENTRANT || defined __USE_POSIX199506
 /* Return at most NAME_LEN characters of the login name of the user in NAME.
    If it cannot be determined or some other error occurred, return the error
@@ -852,6 +891,7 @@ extern int setlogin (__const char *__name) __THROW __nonnull ((1));
    The result is null-terminated if LEN is large enough for the full
    name and the terminator.  */
 extern int gethostname (char *__name, size_t __len) __THROW __nonnull ((1));
+libc_hidden_proto(gethostname)
 #endif
 
 
@@ -871,6 +911,7 @@ extern int sethostid (long int __id) __THROW __wur;
    The NIS domain name is usually the empty string when not using NIS.  */
 extern int getdomainname (char *__name, size_t __len)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(getdomainname)
 extern int setdomainname (__const char *__name, size_t __len)
      __THROW __nonnull ((1)) __wur;
 #endif
@@ -951,17 +992,20 @@ extern void sync (void) __THROW;
 /* Return the number of bytes in a page.  This is the system's page size,
    which is not necessarily the same as the hardware page size.  */
 extern int getpagesize (void)  __THROW __attribute__ ((__const__));
+libc_hidden_proto(getpagesize)
 
 
 /* Return the maximum number of file descriptors
    the current process could possibly have.  */
 extern int getdtablesize (void) __THROW;
+libc_hidden_proto(getdtablesize)
 
 
 /* Truncate FILE to LENGTH bytes.  */
 # ifndef __USE_FILE_OFFSET64
 extern int truncate (__const char *__file, __off_t __length)
      __THROW __nonnull ((1)) __wur;
+libc_hidden_proto(truncate)
 # else
 #  ifdef __REDIRECT_NTH
 extern int __REDIRECT_NTH (truncate,
@@ -983,6 +1027,7 @@ extern int truncate64 (__const char *__file, __off64_t __length)
 /* Truncate the file FD is open on to LENGTH bytes.  */
 # ifndef __USE_FILE_OFFSET64
 extern int ftruncate (int __fd, __off_t __length) __THROW __wur;
+libc_hidden_proto(ftruncate)
 # else
 #  ifdef __REDIRECT_NTH
 extern int __REDIRECT_NTH (ftruncate, (int __fd, __off64_t __length),
@@ -993,6 +1038,7 @@ extern int __REDIRECT_NTH (ftruncate, (int __fd, __off64_t __length),
 # endif
 # ifdef __USE_LARGEFILE64
 extern int ftruncate64 (int __fd, __off64_t __length) __THROW __wur;
+libc_hidden_proto(ftruncate64)
 # endif
 
 #endif /* Use BSD || X/Open Unix || POSIX 2003.  */
@@ -1049,6 +1095,7 @@ extern long int syscall (long int __sysno, ...) __THROW;
 
 # ifndef __USE_FILE_OFFSET64
 extern int lockf (int __fd, int __cmd, __off_t __len) __wur;
+libc_hidden_proto(lockf)
 # else
 #  ifdef __REDIRECT
 extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len),
@@ -1059,6 +1106,7 @@ extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len),
 # endif
 # ifdef __USE_LARGEFILE64
 extern int lockf64 (int __fd, int __cmd, __off64_t __len) __wur;
+libc_hidden_proto(lockf64)
 # endif
 #endif /* Use misc and F_LOCK not already defined.  */
 

+ 1 - 0
include/utime.h

@@ -46,6 +46,7 @@ struct utimbuf
 extern int utime (__const char *__file,
 		  __const struct utimbuf *__file_times)
      __THROW __nonnull ((1));
+libc_hidden_proto(utime)
 
 __END_DECLS
 

+ 2 - 0
include/utmp.h

@@ -64,6 +64,7 @@ extern struct utmp *getutent (void) __THROW;
 
 /* Reset the input stream to the beginning of the file.  */
 extern void setutent (void) __THROW;
+libc_hidden_proto(setutent)
 
 /* Close the current open file.  */
 extern void endutent (void) __THROW;
@@ -71,6 +72,7 @@ extern void endutent (void) __THROW;
 /* Search forward from the current point in the utmp file until the
    next entry with a ut_type matching ID->ut_type.  */
 extern struct utmp *getutid (__const struct utmp *__id) __THROW;
+libc_hidden_proto(getutid)
 
 /* Search forward from the current point in the utmp file until the
    next entry with a ut_line matching LINE->ut_line.  */

+ 40 - 0
include/wchar.h

@@ -152,6 +152,7 @@ extern wchar_t *wcsncpy (wchar_t *__restrict __dest,
 /* Append SRC onto DEST.  */
 extern wchar_t *wcscat (wchar_t *__restrict __dest,
 			__const wchar_t *__restrict __src) __THROW;
+libc_hidden_proto(wcscat)
 /* Append no more than N wide-characters of SRC onto DEST.  */
 extern wchar_t *wcsncat (wchar_t *__restrict __dest,
 			 __const wchar_t *__restrict __src, size_t __n)
@@ -160,6 +161,7 @@ extern wchar_t *wcsncat (wchar_t *__restrict __dest,
 /* Compare S1 and S2.  */
 extern int wcscmp (__const wchar_t *__s1, __const wchar_t *__s2)
      __THROW __attribute_pure__;
+libc_hidden_proto(wcscmp)
 /* Compare N wide-characters of S1 and S2.  */
 extern int wcsncmp (__const wchar_t *__s1, __const wchar_t *__s2, size_t __n)
      __THROW __attribute_pure__;
@@ -168,10 +170,12 @@ __END_NAMESPACE_C99
 #ifdef __USE_GNU
 /* Compare S1 and S2, ignoring case.  */
 extern int wcscasecmp (__const wchar_t *__s1, __const wchar_t *__s2) __THROW;
+libc_hidden_proto(wcscasecmp)
 
 /* Compare no more than N chars of S1 and S2, ignoring case.  */
 extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
 			size_t __n) __THROW;
+libc_hidden_proto(wcsncasecmp)
 
 #ifdef __UCLIBC_HAS_XLOCALE__
 /* Similar to the two functions above but take the information from
@@ -180,9 +184,11 @@ extern int wcsncasecmp (__const wchar_t *__s1, __const wchar_t *__s2,
 
 extern int wcscasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
 			 __locale_t __loc) __THROW;
+libc_hidden_proto(wcscasecmp_l)
 
 extern int wcsncasecmp_l (__const wchar_t *__s1, __const wchar_t *__s2,
 			  size_t __n, __locale_t __loc) __THROW;
+libc_hidden_proto(wcsncasecmp_l)
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 #endif
 
@@ -190,11 +196,13 @@ __BEGIN_NAMESPACE_C99
 /* Compare S1 and S2, both interpreted as appropriate to the
    LC_COLLATE category of the current locale.  */
 extern int wcscoll (__const wchar_t *__s1, __const wchar_t *__s2) __THROW;
+libc_hidden_proto(wcscoll)
 /* Transform S2 into array pointed to by S1 such that if wcscmp is
    applied to two transformed strings the result is the as applying
    `wcscoll' to the original strings.  */
 extern size_t wcsxfrm (wchar_t *__restrict __s1,
 		       __const wchar_t *__restrict __s2, size_t __n) __THROW;
+libc_hidden_proto(wcsxfrm)
 __END_NAMESPACE_C99
 
 #ifdef __USE_GNU
@@ -206,12 +214,14 @@ __END_NAMESPACE_C99
    LC_COLLATE category of the given locale.  */
 extern int wcscoll_l (__const wchar_t *__s1, __const wchar_t *__s2,
 		      __locale_t __loc) __THROW;
+libc_hidden_proto(wcscoll_l)
 
 /* Transform S2 into array pointed to by S1 such that if wcscmp is
    applied to two transformed strings the result is the as applying
    `wcscoll' to the original strings.  */
 extern size_t wcsxfrm_l (wchar_t *__s1, __const wchar_t *__s2,
 			 size_t __n, __locale_t __loc) __THROW;
+libc_hidden_proto(wcsxfrm_l)
 
 #endif /* __UCLIBC_HAS_XLOCALE__ */
 
@@ -244,9 +254,11 @@ extern size_t wcscspn (__const wchar_t *__wcs, __const wchar_t *__reject)
    consists entirely of wide characters in  ACCEPT.  */
 extern size_t wcsspn (__const wchar_t *__wcs, __const wchar_t *__accept)
      __THROW __attribute_pure__;
+libc_hidden_proto(wcsspn)
 /* Find the first occurrence in WCS of any character in ACCEPT.  */
 extern wchar_t *wcspbrk (__const wchar_t *__wcs, __const wchar_t *__accept)
      __THROW __attribute_pure__;
+libc_hidden_proto(wcspbrk)
 /* Find the first occurrence of NEEDLE in HAYSTACK.  */
 extern wchar_t *wcsstr (__const wchar_t *__haystack, __const wchar_t *__needle)
      __THROW __attribute_pure__;
@@ -258,6 +270,7 @@ extern wchar_t *wcstok (wchar_t *__restrict __s,
 
 /* Return the number of wide characters in S.  */
 extern size_t wcslen (__const wchar_t *__s) __THROW __attribute_pure__;
+libc_hidden_proto(wcslen)
 __END_NAMESPACE_C99
 
 #ifdef __USE_XOPEN
@@ -270,6 +283,7 @@ extern wchar_t *wcswcs (__const wchar_t *__haystack, __const wchar_t *__needle)
 /* Return the number of wide characters in S, but at most MAXLEN.  */
 extern size_t wcsnlen (__const wchar_t *__s, size_t __maxlen)
      __THROW __attribute_pure__;
+libc_hidden_proto(wcsnlen)
 #endif
 
 
@@ -277,6 +291,7 @@ __BEGIN_NAMESPACE_C99
 /* Search N wide characters of S for C.  */
 extern wchar_t *wmemchr (__const wchar_t *__s, wchar_t __c, size_t __n)
      __THROW __attribute_pure__;
+libc_hidden_proto(wmemchr)
 
 /* Compare N wide characters of S1 and S2.  */
 extern int wmemcmp (__const wchar_t *__restrict __s1,
@@ -286,6 +301,7 @@ extern int wmemcmp (__const wchar_t *__restrict __s1,
 /* Copy N wide characters of SRC to DEST.  */
 extern wchar_t *wmemcpy (wchar_t *__restrict __s1,
 			 __const wchar_t *__restrict __s2, size_t __n) __THROW;
+libc_hidden_proto(wmemcpy)
 
 /* Copy N wide characters of SRC to DEST, guaranteeing
    correct behavior for overlapping strings.  */
@@ -302,6 +318,7 @@ __END_NAMESPACE_C99
 extern wchar_t *wmempcpy (wchar_t *__restrict __s1,
 			  __const wchar_t *__restrict __s2, size_t __n)
      __THROW;
+libc_hidden_proto(wmempcpy)
 #endif
 
 
@@ -309,6 +326,7 @@ __BEGIN_NAMESPACE_C99
 /* Determine whether C constitutes a valid (one-byte) multibyte
    character.  */
 extern wint_t btowc (int __c) __THROW;
+libc_hidden_proto(btowc)
 
 /* Determine whether C corresponds to a member of the extended
    character set whose multibyte representation is a single byte.  */
@@ -317,16 +335,19 @@ extern int wctob (wint_t __c) __THROW;
 /* Determine whether PS points to an object representing the initial
    state.  */
 extern int mbsinit (__const mbstate_t *__ps) __THROW __attribute_pure__;
+libc_hidden_proto(mbsinit)
 
 /* Write wide character representation of multibyte character pointed
    to by S to PWC.  */
 extern size_t mbrtowc (wchar_t *__restrict __pwc,
 		       __const char *__restrict __s, size_t __n,
 		       mbstate_t *__p) __THROW;
+libc_hidden_proto(mbrtowc)
 
 /* Write multibyte representation of wide character WC to S.  */
 extern size_t wcrtomb (char *__restrict __s, wchar_t __wc,
 		       mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(wcrtomb)
 
 /* Return number of bytes in multibyte character pointed to by S.  */
 #if 0 /* uClibc: disabled */
@@ -335,18 +356,21 @@ extern size_t __mbrlen (__const char *__restrict __s, size_t __n,
 #endif
 extern size_t mbrlen (__const char *__restrict __s, size_t __n,
 		      mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(mbrlen)
 
 /* Write wide character representation of multibyte character string
    SRC to DST.  */
 extern size_t mbsrtowcs (wchar_t *__restrict __dst,
 			 __const char **__restrict __src, size_t __len,
 			 mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(mbsrtowcs)
 
 /* Write multibyte character representation of wide character string
    SRC to DST.  */
 extern size_t wcsrtombs (char *__restrict __dst,
 			 __const wchar_t **__restrict __src, size_t __len,
 			 mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(wcsrtombs)
 __END_NAMESPACE_C99
 
 
@@ -356,6 +380,7 @@ __END_NAMESPACE_C99
 extern size_t mbsnrtowcs (wchar_t *__restrict __dst,
 			  __const char **__restrict __src, size_t __nmc,
 			  size_t __len, mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(mbsnrtowcs)
 
 /* Write multibyte character representation of at most NWC characters
    from the wide character string SRC to DST.  */
@@ -363,6 +388,7 @@ extern size_t wcsnrtombs (char *__restrict __dst,
 			  __const wchar_t **__restrict __src,
 			  size_t __nwc, size_t __len,
 			  mbstate_t *__restrict __ps) __THROW;
+libc_hidden_proto(wcsnrtombs)
 #endif	/* use GNU */
 
 
@@ -374,6 +400,7 @@ extern int wcwidth (wchar_t __c) __THROW;
 /* Determine number of column positions required for first N wide
    characters (or fewer if S ends before this) in S.  */
 extern int wcswidth (__const wchar_t *__s, size_t __n) __THROW;
+libc_hidden_proto(wcswidth)
 #endif	/* Use X/Open.  */
 
 
@@ -540,6 +567,7 @@ extern int vfwprintf (__FILE *__restrict __s,
 		      __const wchar_t *__restrict __format,
 		      __gnuc_va_list __arg)
      /* __attribute__ ((__format__ (__wprintf__, 2, 0))) */;
+libc_hidden_proto(vfwprintf)
 /* Write formatted output to stdout from argument list ARG.
 
    This function is a possible cancellation point and therefore not
@@ -553,6 +581,7 @@ extern int vswprintf (wchar_t *__restrict __s, size_t __n,
 		      __const wchar_t *__restrict __format,
 		      __gnuc_va_list __arg)
      __THROW /* __attribute__ ((__format__ (__wprintf__, 3, 0))) */;
+libc_hidden_proto(vswprintf)
 
 
 /* Read formatted input from STREAM.
@@ -587,6 +616,7 @@ extern int vfwscanf (__FILE *__restrict __s,
 		     __const wchar_t *__restrict __format,
 		     __gnuc_va_list __arg)
      /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
+libc_hidden_proto(vfwscanf)
 /* Read formatted input from stdin into argument list ARG.
 
    This function is a possible cancellation point and therefore not
@@ -599,6 +629,7 @@ extern int vswscanf (__const wchar_t *__restrict __s,
 		     __const wchar_t *__restrict __format,
 		     __gnuc_va_list __arg)
      __THROW /* __attribute__ ((__format__ (__wscanf__, 2, 0))) */;
+libc_hidden_proto(vswscanf)
 
 __END_NAMESPACE_C99
 #endif /* Use ISO C99. */
@@ -610,6 +641,7 @@ __BEGIN_NAMESPACE_C99
    These functions are possible cancellation points and therefore not
    marked with __THROW.  */
 extern wint_t fgetwc (__FILE *__stream);
+libc_hidden_proto(fgetwc)
 extern wint_t getwc (__FILE *__stream);
 
 /* Read a character from stdin.
@@ -647,6 +679,7 @@ extern wchar_t *fgetws (wchar_t *__restrict __ws, int __n,
    marked with __THROW.  */
 extern int fputws (__const wchar_t *__restrict __ws,
 		   __FILE *__restrict __stream);
+libc_hidden_proto(fputws)
 
 
 /* Push a character back onto the input buffer of STREAM.
@@ -654,6 +687,7 @@ extern int fputws (__const wchar_t *__restrict __ws,
    This function is a possible cancellation points and therefore not
    marked with __THROW.  */
 extern wint_t ungetwc (wint_t __wc, __FILE *__stream);
+libc_hidden_proto(ungetwc)
 __END_NAMESPACE_C99
 
 
@@ -675,6 +709,7 @@ extern wint_t getwchar_unlocked (void);
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern wint_t fgetwc_unlocked (__FILE *__stream);
+libc_hidden_proto(fgetwc_unlocked)
 
 /* Faster version when locking is not necessary.
 
@@ -683,6 +718,7 @@ extern wint_t fgetwc_unlocked (__FILE *__stream);
    or due to the implementation it is a cancellation point and
    therefore not marked with __THROW.  */
 extern wint_t fputwc_unlocked (wchar_t __wc, __FILE *__stream);
+libc_hidden_proto(fputwc_unlocked)
 
 /* These are defined to be equivalent to the `char' functions defined
    in POSIX.1:1996.
@@ -703,6 +739,7 @@ extern wint_t putwchar_unlocked (wchar_t __wc);
    therefore not marked with __THROW.  */
 extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
 				 __FILE *__restrict __stream);
+libc_hidden_proto(fgetws_unlocked)
 
 /* This function does the same as `fputws' but does not lock the stream.
 
@@ -712,6 +749,7 @@ extern wchar_t *fgetws_unlocked (wchar_t *__restrict __ws, int __n,
    therefore not marked with __THROW.  */
 extern int fputws_unlocked (__const wchar_t *__restrict __ws,
 			    __FILE *__restrict __stream);
+libc_hidden_proto(fputws_unlocked)
 #endif
 
 
@@ -722,6 +760,7 @@ __BEGIN_NAMESPACE_C99
 extern size_t wcsftime (wchar_t *__restrict __s, size_t __maxsize,
 			__const wchar_t *__restrict __format,
 			__const struct tm *__restrict __tp) __THROW;
+libc_hidden_proto(wcsftime)
 __END_NAMESPACE_C99
 
 # if defined __USE_GNU && defined __UCLIBC_HAS_XLOCALE__
@@ -733,6 +772,7 @@ extern size_t wcsftime_l (wchar_t *__restrict __s, size_t __maxsize,
 			  __const wchar_t *__restrict __format,
 			  __const struct tm *__restrict __tp,
 			  __locale_t __loc) __THROW;
+libc_hidden_proto(wcsftime_l)
 # endif
 
 /* The X/Open standard demands that most of the functions defined in

+ 15 - 0
include/wctype.h

@@ -120,6 +120,7 @@ __BEGIN_NAMESPACE_C99
 /* Test for any wide character for which `iswalpha' or `iswdigit' is
    true.  */
 extern int iswalnum (wint_t __wc) __THROW;
+libc_hidden_proto(iswalnum)
 
 /* Test for any wide character for which `iswupper' or 'iswlower' is
    true, or any wide character that is one of a locale-specific set of
@@ -142,6 +143,7 @@ extern int iswgraph (wint_t __wc) __THROW;
    or is one of a locale-specific set of wide characters for which
    none of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true.  */
 extern int iswlower (wint_t __wc) __THROW;
+libc_hidden_proto(iswlower)
 
 /* Test for any printing wide character.  */
 extern int iswprint (wint_t __wc) __THROW;
@@ -160,6 +162,7 @@ extern int iswspace (wint_t __wc) __THROW;
    or is one of a locale-specific set of wide character for which none
    of `iswcntrl', `iswdigit', `iswpunct', or `iswspace' is true.  */
 extern int iswupper (wint_t __wc) __THROW;
+libc_hidden_proto(iswspace)
 
 /* Test for any wide character that corresponds to a hexadecimal-digit
    character equivalent to that performed be the functions described
@@ -180,10 +183,12 @@ extern int iswblank (wint_t __wc) __THROW;
 /* Construct value that describes a class of wide characters identified
    by the string argument PROPERTY.  */
 extern wctype_t wctype (__const char *__property) __THROW;
+libc_hidden_proto(wctype)
 
 /* Determine whether the wide-character WC has the property described by
    DESC.  */
 extern int iswctype (wint_t __wc, wctype_t __desc) __THROW;
+libc_hidden_proto(iswctype)
 __END_NAMESPACE_C99
 
 
@@ -204,9 +209,11 @@ __USING_NAMESPACE_C99(wctrans_t)
 __BEGIN_NAMESPACE_C99
 /* Converts an uppercase letter to the corresponding lowercase letter.  */
 extern wint_t towlower (wint_t __wc) __THROW;
+libc_hidden_proto(towlower)
 
 /* Converts an lowercase letter to the corresponding uppercase letter.  */
 extern wint_t towupper (wint_t __wc) __THROW;
+libc_hidden_proto(towupper)
 __END_NAMESPACE_C99
 
 __END_DECLS
@@ -228,9 +235,11 @@ __BEGIN_NAMESPACE_C99
 /* Construct value that describes a mapping between wide characters
    identified by the string argument PROPERTY.  */
 extern wctrans_t wctrans (__const char *__property) __THROW;
+libc_hidden_proto(wctrans)
 
 /* Map the wide character WC using the mapping described by DESC.  */
 extern wint_t towctrans (wint_t __wc, wctrans_t __desc) __THROW;
+libc_hidden_proto(towctrans)
 __END_NAMESPACE_C99
 
 #if defined(__USE_GNU) && defined(__UCLIBC_HAS_XLOCALE__)
@@ -275,6 +284,7 @@ extern int iswpunct_l (wint_t __wc, __locale_t __locale) __THROW;
    set of wide characters for which none of `iswalnum', `iswgraph', or
    `iswpunct' is true.  */
 extern int iswspace_l (wint_t __wc, __locale_t __locale) __THROW;
+libc_hidden_proto(iswspace_l)
 
 /* Test for any wide character that corresponds to an uppercase letter
    or is one of a locale-specific set of wide character for which none
@@ -295,11 +305,13 @@ extern int iswblank_l (wint_t __wc, __locale_t __locale) __THROW;
    by the string argument PROPERTY.  */
 extern wctype_t wctype_l (__const char *__property, __locale_t __locale)
      __THROW;
+libc_hidden_proto(wctype_l)
 
 /* Determine whether the wide-character WC has the property described by
    DESC.  */
 extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale)
      __THROW;
+libc_hidden_proto(iswctype_l)
 
 
 /*
@@ -308,9 +320,11 @@ extern int iswctype_l (wint_t __wc, wctype_t __desc, __locale_t __locale)
 
 /* Converts an uppercase letter to the corresponding lowercase letter.  */
 extern wint_t towlower_l (wint_t __wc, __locale_t __locale) __THROW;
+libc_hidden_proto(towlower_l)
 
 /* Converts an lowercase letter to the corresponding uppercase letter.  */
 extern wint_t towupper_l (wint_t __wc, __locale_t __locale) __THROW;
+libc_hidden_proto(towupper_l)
 
 /* Construct value that describes a mapping between wide characters
    identified by the string argument PROPERTY.  */
@@ -320,6 +334,7 @@ extern wctrans_t wctrans_l (__const char *__property, __locale_t __locale)
 /* Map the wide character WC using the mapping described by DESC.  */
 extern wint_t towctrans_l (wint_t __wc, wctrans_t __desc,
 			   __locale_t __locale) __THROW;
+libc_hidden_proto(towctrans_l)
 
 # endif /* Use GNU.  */
 

+ 1 - 0
include/wordexp.h

@@ -65,6 +65,7 @@ extern int wordexp (__const char *__restrict __words,
 
 /* Free the storage allocated by a `wordexp' call.  */
 extern void wordfree (wordexp_t *__wordexp) __THROW;
+libc_hidden_proto(wordfree)
 
 __END_DECLS
 

+ 7 - 7
libc/inet/addr.c

@@ -48,7 +48,7 @@
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
 /* libc_hidden_proto(__ctype_b) */
 #endif
-libc_hidden_proto(inet_aton)
+/* libc_hidden_proto(inet_aton) */
 int inet_aton(const char *cp, struct in_addr *addrptr)
 {
 	in_addr_t addr;
@@ -103,9 +103,9 @@ libc_hidden_def(inet_aton)
 #endif
 
 #ifdef L_inet_addr
-libc_hidden_proto(inet_aton)
+/* libc_hidden_proto(inet_aton) */
 
-libc_hidden_proto(inet_addr)
+/* libc_hidden_proto(inet_addr) */
 in_addr_t inet_addr(const char *cp)
 {
 	struct in_addr a;
@@ -122,7 +122,7 @@ libc_hidden_def(inet_addr)
 
 #define INET_NTOA_MAX_LEN	16	/* max 12 digits + 3 '.'s + 1 nul */
 
-libc_hidden_proto(inet_ntoa_r)
+/* libc_hidden_proto(inet_ntoa_r) */
 char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
 {
 	in_addr_t addr = ntohl(in.s_addr);
@@ -144,7 +144,7 @@ char *inet_ntoa_r(struct in_addr in, char buf[INET_NTOA_MAX_LEN])
 }
 libc_hidden_def(inet_ntoa_r)
 
-libc_hidden_proto(inet_ntoa)
+/* libc_hidden_proto(inet_ntoa) */
 char *inet_ntoa(struct in_addr in)
 {
 	static char buf[INET_NTOA_MAX_LEN];
@@ -162,7 +162,7 @@ libc_hidden_def(inet_ntoa)
  * Formulate an Internet address from network + host.  Used in
  * building addresses stored in the ifnet structure.
  */
-libc_hidden_proto(inet_makeaddr)
+/* libc_hidden_proto(inet_makeaddr) */
 struct in_addr inet_makeaddr(in_addr_t net, in_addr_t host)
 {
 	in_addr_t addr;
@@ -206,7 +206,7 @@ in_addr_t inet_lnaof(struct in_addr in)
  * Return the network number from an internet
  * address; handles class a/b/c network #'s.
  */
-libc_hidden_proto(inet_netof)
+/* libc_hidden_proto(inet_netof) */
 in_addr_t
 inet_netof(struct in_addr in)
 {

+ 1 - 1
libc/inet/ether_addr.c

@@ -31,7 +31,7 @@
 #include <netinet/ether.h>
 #include <netinet/if_ether.h>
 
-libc_hidden_proto(ether_ntoa_r)
+/* libc_hidden_proto(ether_ntoa_r) */
 /* libc_hidden_proto(sprintf) */
 #ifdef __UCLIBC_HAS_XLOCALE__
 /* libc_hidden_proto(__ctype_b_loc) */

+ 11 - 11
libc/inet/getaddrinfo.c

@@ -79,17 +79,17 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* libc_hidden_proto(socket) */
 /* libc_hidden_proto(close) */
-libc_hidden_proto(getservbyname_r)
-libc_hidden_proto(gethostbyname2_r)
-libc_hidden_proto(gethostbyaddr_r)
-libc_hidden_proto(inet_pton)
-libc_hidden_proto(inet_ntop)
-libc_hidden_proto(strtoul)
-libc_hidden_proto(if_nametoindex)
-libc_hidden_proto(__h_errno_location)
+/* libc_hidden_proto(getservbyname_r) */
+/* libc_hidden_proto(gethostbyname2_r) */
+/* libc_hidden_proto(gethostbyaddr_r) */
+/* libc_hidden_proto(inet_pton) */
+/* libc_hidden_proto(inet_ntop) */
+/* libc_hidden_proto(strtoul) */
+/* libc_hidden_proto(if_nametoindex) */
+/* libc_hidden_proto(__h_errno_location) */
 /* libc_hidden_proto(uname) */
 #ifdef __UCLIBC_HAS_IPV6__
-libc_hidden_proto(in6addr_loopback)
+/* libc_hidden_proto(in6addr_loopback) */
 #endif
 
 #define GAIH_OKIFUNSPEC 0x0100
@@ -775,7 +775,7 @@ static const struct gaih gaih[] = {
 	{ PF_UNSPEC, NULL }
 };
 
-libc_hidden_proto(freeaddrinfo)
+/* libc_hidden_proto(freeaddrinfo) */
 void
 freeaddrinfo(struct addrinfo *ai)
 {
@@ -789,7 +789,7 @@ freeaddrinfo(struct addrinfo *ai)
 }
 libc_hidden_def(freeaddrinfo)
 
-libc_hidden_proto(getaddrinfo)
+/* libc_hidden_proto(getaddrinfo) */
 int
 getaddrinfo(const char *name, const char *service,
 	     const struct addrinfo *hints, struct addrinfo **pai)

+ 3 - 3
libc/inet/getnetbyad.c

@@ -20,9 +20,9 @@
 #include <netdb.h>
 #include <unistd.h>
 
-libc_hidden_proto(setnetent)
-libc_hidden_proto(getnetent)
-libc_hidden_proto(endnetent)
+/* libc_hidden_proto(setnetent) */
+/* libc_hidden_proto(getnetent) */
+/* libc_hidden_proto(endnetent) */
 
 extern smallint _net_stayopen attribute_hidden;
 

+ 3 - 3
libc/inet/getnetbynm.c

@@ -22,9 +22,9 @@
 #include <unistd.h>
 
 /* Experimentally off - libc_hidden_proto(strcmp) */
-libc_hidden_proto(setnetent)
-libc_hidden_proto(getnetent)
-libc_hidden_proto(endnetent)
+/* libc_hidden_proto(setnetent) */
+/* libc_hidden_proto(getnetent) */
+/* libc_hidden_proto(endnetent) */
 
 extern smallint _net_stayopen attribute_hidden;
 

+ 5 - 5
libc/inet/getnetent.c

@@ -25,8 +25,8 @@
 
 /* libc_hidden_proto(fopen) */
 /* libc_hidden_proto(fclose) */
-libc_hidden_proto(inet_network)
-libc_hidden_proto(rewind)
+/* libc_hidden_proto(inet_network) */
+/* libc_hidden_proto(rewind) */
 /* libc_hidden_proto(fgets) */
 /* libc_hidden_proto(abort) */
 
@@ -44,7 +44,7 @@ static char *net_aliases[MAXALIASES];
 
 smallint _net_stayopen attribute_hidden;
 
-libc_hidden_proto(setnetent)
+/* libc_hidden_proto(setnetent) */
 void setnetent(int f)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -58,7 +58,7 @@ void setnetent(int f)
 }
 libc_hidden_def(setnetent)
 
-libc_hidden_proto(endnetent)
+/* libc_hidden_proto(endnetent) */
 void endnetent(void)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -84,7 +84,7 @@ static char * any(register char *cp, char *match)
     return ((char *)0);
 }
 
-libc_hidden_proto(getnetent)
+/* libc_hidden_proto(getnetent) */
 struct netent *getnetent(void)
 {
     char *p;

+ 7 - 7
libc/inet/getproto.c

@@ -65,8 +65,8 @@
 /* libc_hidden_proto(fopen) */
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strpbrk) */
-libc_hidden_proto(atoi)
-libc_hidden_proto(rewind)
+/* libc_hidden_proto(atoi) */
+/* libc_hidden_proto(rewind) */
 /* libc_hidden_proto(fgets) */
 /* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
@@ -93,7 +93,7 @@ static void __initbuf(void)
     }
 }
 
-libc_hidden_proto(setprotoent)
+/* libc_hidden_proto(setprotoent) */
 void setprotoent(int f)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -106,7 +106,7 @@ void setprotoent(int f)
 }
 libc_hidden_def(setprotoent)
 
-libc_hidden_proto(endprotoent)
+/* libc_hidden_proto(endprotoent) */
 void endprotoent(void)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -119,7 +119,7 @@ void endprotoent(void)
 }
 libc_hidden_def(endprotoent)
 
-libc_hidden_proto(getprotoent_r)
+/* libc_hidden_proto(getprotoent_r) */
 int getprotoent_r(struct protoent *result_buf,
 		  char *buf, size_t buflen,
 		  struct protoent **result)
@@ -210,7 +210,7 @@ struct protoent * getprotoent(void)
 }
 
 
-libc_hidden_proto(getprotobyname_r)
+/* libc_hidden_proto(getprotobyname_r) */
 int getprotobyname_r(const char *name,
 		    struct protoent *result_buf,
 		    char *buf, size_t buflen,
@@ -247,7 +247,7 @@ struct protoent * getprotobyname(const char *name)
 }
 
 
-libc_hidden_proto(getprotobynumber_r)
+/* libc_hidden_proto(getprotobynumber_r) */
 int getprotobynumber_r (int proto_num,
 			struct protoent *result_buf,
 			char *buf, size_t buflen,

+ 8 - 8
libc/inet/getservice.c

@@ -68,8 +68,8 @@
 /* Experimentally off - libc_hidden_proto(strpbrk) */
 /* libc_hidden_proto(fopen) */
 /* libc_hidden_proto(fclose) */
-libc_hidden_proto(atoi)
-libc_hidden_proto(rewind)
+/* libc_hidden_proto(atoi) */
+/* libc_hidden_proto(rewind) */
 /* libc_hidden_proto(fgets) */
 /* libc_hidden_proto(abort) */
 
@@ -96,7 +96,7 @@ static void __initbuf(void)
     }
 }
 
-libc_hidden_proto(setservent)
+/* libc_hidden_proto(setservent) */
 void setservent(int f)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -109,7 +109,7 @@ void setservent(int f)
 }
 libc_hidden_def(setservent)
 
-libc_hidden_proto(endservent)
+/* libc_hidden_proto(endservent) */
 void endservent(void)
 {
     __UCLIBC_MUTEX_LOCK(mylock);
@@ -122,7 +122,7 @@ void endservent(void)
 }
 libc_hidden_def(endservent)
 
-libc_hidden_proto(getservent_r)
+/* libc_hidden_proto(getservent_r) */
 int getservent_r(struct servent * result_buf,
 		 char * buf, size_t buflen,
 		 struct servent ** result)
@@ -213,7 +213,7 @@ struct servent * getservent(void)
     return result;
 }
 
-libc_hidden_proto(getservbyname_r)
+/* libc_hidden_proto(getservbyname_r) */
 int getservbyname_r(const char *name, const char *proto,
 	struct servent * result_buf, char * buf, size_t buflen,
 	struct servent ** result)
@@ -251,7 +251,7 @@ struct servent *getservbyname(const char *name, const char *proto)
 }
 
 
-libc_hidden_proto(getservbyport_r)
+/* libc_hidden_proto(getservbyport_r) */
 int getservbyport_r(int port, const char *proto,
 	struct servent * result_buf, char * buf,
 	size_t buflen, struct servent ** result)
@@ -273,7 +273,7 @@ int getservbyport_r(int port, const char *proto,
 }
 libc_hidden_def(getservbyport_r)
 
-libc_hidden_proto(getservbyport)
+/* libc_hidden_proto(getservbyport) */
 struct servent * getservbyport(int port, const char *proto)
 {
     struct servent *result;

+ 2 - 2
libc/inet/herror.c

@@ -24,7 +24,7 @@
 #include <netdb.h>
 
 /* libc_hidden_proto(fprintf) */
-libc_hidden_proto(__h_errno_location)
+/* libc_hidden_proto(__h_errno_location) */
 
 static const char error_msg[] = "Resolver error";
 static const char *const h_errlist[] = {
@@ -39,7 +39,7 @@ static const int h_nerr = { sizeof(h_errlist)/sizeof(h_errlist[0]) };
 /*
  * herror -- print the error indicated by the h_errno value.
  */
-libc_hidden_proto(herror)
+/* libc_hidden_proto(herror) */
 void herror(const char *s)
 {
 	static const char colon_space[] = ": ";

+ 4 - 4
libc/inet/hostid.c

@@ -20,10 +20,10 @@
 /* libc_hidden_proto(close) */
 /* libc_hidden_proto(read) */
 /* libc_hidden_proto(write) */
-libc_hidden_proto(getuid)
-libc_hidden_proto(geteuid)
-libc_hidden_proto(gethostbyname_r)
-libc_hidden_proto(gethostname)
+/* libc_hidden_proto(getuid) */
+/* libc_hidden_proto(geteuid) */
+/* libc_hidden_proto(gethostbyname_r) */
+/* libc_hidden_proto(gethostname) */
 
 #define HOSTID "/etc/hostid"
 

+ 3 - 3
libc/inet/if_index.c

@@ -45,7 +45,7 @@
 
 extern int __opensock(void) attribute_hidden;
 
-libc_hidden_proto(if_nametoindex)
+/* libc_hidden_proto(if_nametoindex) */
 unsigned int
 if_nametoindex(const char* ifname)
 {
@@ -75,7 +75,7 @@ if_nametoindex(const char* ifname)
 }
 libc_hidden_def(if_nametoindex)
 
-libc_hidden_proto(if_freenameindex)
+/* libc_hidden_proto(if_freenameindex) */
 void
 if_freenameindex (struct if_nameindex *ifn)
 {
@@ -89,7 +89,7 @@ if_freenameindex (struct if_nameindex *ifn)
 }
 libc_hidden_def(if_freenameindex)
 
-libc_hidden_proto(if_nameindex)
+/* libc_hidden_proto(if_nameindex) */
 #if !__ASSUME_NETLINK_SUPPORT
 struct if_nameindex *
 if_nameindex (void)

+ 4 - 4
libc/inet/ifaddrs.c

@@ -42,12 +42,12 @@
 /* libc_hidden_proto(socket) */
 /* libc_hidden_proto(close) */
 /* Experimentally off - libc_hidden_proto(time) */
-libc_hidden_proto(sendto)
-libc_hidden_proto(recvmsg)
-libc_hidden_proto(bind)
+/* libc_hidden_proto(sendto) */
+/* libc_hidden_proto(recvmsg) */
+/* libc_hidden_proto(bind) */
 /* Experimentally off - libc_hidden_proto(memset) */
 /* Experimentally off - libc_hidden_proto(mempcpy) */
-libc_hidden_proto(getsockname)
+/* libc_hidden_proto(getsockname) */
 /* libc_hidden_proto(fclose) */
 /* libc_hidden_proto(abort) */
 

+ 1 - 1
libc/inet/in6_addr.c

@@ -24,7 +24,7 @@
 #ifdef __UCLIBC_HAS_IPV6__
 const struct in6_addr in6addr_any =
 { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 } } };
-libc_hidden_proto(in6addr_loopback)
+/* libc_hidden_proto(in6addr_loopback) */
 const struct in6_addr in6addr_loopback =
 { { { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 } } };
 libc_hidden_data_def(in6addr_loopback)

+ 1 - 1
libc/inet/inet_net.c

@@ -49,7 +49,7 @@
  * The library routines call this routine to interpret
  * network numbers.
  */
-libc_hidden_proto(inet_network)
+/* libc_hidden_proto(inet_network) */
 in_addr_t
 inet_network(const char *cp)
 {

+ 2 - 2
libc/inet/ntop.c

@@ -358,7 +358,7 @@ inet_pton6(const char *src, u_char *dst)
  * author:
  *	Paul Vixie, 1996.
  */
-libc_hidden_proto(inet_ntop)
+/* libc_hidden_proto(inet_ntop) */
 const char *
 inet_ntop(int af, const void *src, char *dst, socklen_t size)
 {
@@ -389,7 +389,7 @@ libc_hidden_def(inet_ntop)
  * author:
  *	Paul Vixie, 1996.
  */
-libc_hidden_proto(inet_pton)
+/* libc_hidden_proto(inet_pton) */
 int
 inet_pton(int af, const char *src, void *dst)
 {

+ 29 - 28
libc/inet/resolv.c

@@ -181,44 +181,45 @@
 /* libc_hidden_proto(close) */
 /* libc_hidden_proto(fopen) */
 /* libc_hidden_proto(fclose) */
-libc_hidden_proto(random)
-libc_hidden_proto(getservbyport)
-libc_hidden_proto(gethostname)
-libc_hidden_proto(uname)
-libc_hidden_proto(inet_addr)
-libc_hidden_proto(inet_aton)
-libc_hidden_proto(inet_pton)
-libc_hidden_proto(inet_ntop)
-libc_hidden_proto(connect)
+/* libc_hidden_proto(random) */
+/* libc_hidden_proto(getservbyport) */
+/* libc_hidden_proto(gethostname) */
+/* libc_hidden_proto(uname) */
+/* libc_hidden_proto(inet_addr) */
+/* libc_hidden_proto(inet_aton) */
+/* libc_hidden_proto(inet_pton) */
+/* libc_hidden_proto(inet_ntop) */
+/* libc_hidden_proto(connect) */
 /* libc_hidden_proto(poll) */
-libc_hidden_proto(select)
-libc_hidden_proto(recv)
-libc_hidden_proto(send)
+/* libc_hidden_proto(select) */
+/* libc_hidden_proto(recv) */
+/* libc_hidden_proto(send) */
 /* libc_hidden_proto(printf) */
 /* libc_hidden_proto(sprintf) */
-libc_hidden_proto(snprintf)
+/* libc_hidden_proto(snprintf) */
 /* libc_hidden_proto(fgets) */
-libc_hidden_proto(getnameinfo)
-libc_hidden_proto(gethostbyname)
-libc_hidden_proto(gethostbyname_r)
-libc_hidden_proto(gethostbyname2_r)
-libc_hidden_proto(gethostbyaddr)
-libc_hidden_proto(gethostbyaddr_r)
-libc_hidden_proto(ns_name_uncompress)
-libc_hidden_proto(ns_name_unpack)
-libc_hidden_proto(ns_name_ntop)
-libc_hidden_proto(res_init)
-libc_hidden_proto(res_query)
-libc_hidden_proto(res_querydomain)
-libc_hidden_proto(gethostent_r)
+/* libc_hidden_proto(getnameinfo) */
+/* libc_hidden_proto(gethostbyname) */
+/* libc_hidden_proto(gethostbyname_r) */
+/* libc_hidden_proto(gethostbyname2_r) */
+/* libc_hidden_proto(gethostbyaddr) */
+/* libc_hidden_proto(gethostbyaddr_r) */
+/* libc_hidden_proto(ns_name_uncompress) */
+/* libc_hidden_proto(ns_name_unpack) */
+/* libc_hidden_proto(ns_name_ntop) */
+/* 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(__h_errno_location)
+/* libc_hidden_proto(__h_errno_location) */
 #ifdef __UCLIBC_HAS_XLOCALE__
 /* libc_hidden_proto(__ctype_b_loc) */
 #elif defined __UCLIBC_HAS_CTYPE_TABLES__
 /* libc_hidden_proto(__ctype_b) */
 #endif
-int __libc_getdomainname(char *name, size_t len);
+
+extern int __libc_getdomainname(char *name, size_t len);
 libc_hidden_proto(__libc_getdomainname)
 
 

+ 2 - 2
libc/inet/rpc/auth_none.c

@@ -40,7 +40,7 @@
 #include "rpc_private.h"
 
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_opaque_auth)
+/* libc_hidden_proto(xdr_opaque_auth) */
 
 #define MAX_MARSHAL_SIZE 20
 
@@ -74,7 +74,7 @@ struct authnone_private_s {
 static struct authnone_private_s *authnone_private;
 #endif
 
-libc_hidden_proto(authnone_create)
+/* libc_hidden_proto(authnone_create) */
 AUTH *
 authnone_create (void)
 {

+ 9 - 9
libc/inet/rpc/auth_unix.c

@@ -57,14 +57,14 @@
 #endif
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
-libc_hidden_proto(sysconf)
-libc_hidden_proto(getegid)
-libc_hidden_proto(geteuid)
-libc_hidden_proto(getgroups)
-libc_hidden_proto(gethostname)
+/* libc_hidden_proto(sysconf) */
+/* libc_hidden_proto(getegid) */
+/* libc_hidden_proto(geteuid) */
+/* libc_hidden_proto(getgroups) */
+/* libc_hidden_proto(gethostname) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_authunix_parms)
-libc_hidden_proto(xdr_opaque_auth)
+/* libc_hidden_proto(xdr_authunix_parms) */
+/* libc_hidden_proto(xdr_opaque_auth) */
 /* libc_hidden_proto(gettimeofday) */
 /* libc_hidden_proto(fputs) */
 /* libc_hidden_proto(perror) */
@@ -109,7 +109,7 @@ static bool_t marshal_new_auth (AUTH *) internal_function;
  * Create a unix style authenticator.
  * Returns an auth handle with the given stuff in it.
  */
-libc_hidden_proto(authunix_create)
+/* libc_hidden_proto(authunix_create) */
 AUTH *
 authunix_create (char *machname, uid_t uid, gid_t gid, int len,
 		 gid_t *aup_gids)
@@ -182,7 +182,7 @@ libc_hidden_def(authunix_create)
  * Returns an auth handle with parameters determined by doing lots of
  * syscalls.
  */
-libc_hidden_proto(authunix_create_default)
+/* libc_hidden_proto(authunix_create_default) */
 AUTH *
 authunix_create_default (void)
 {

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

@@ -39,17 +39,17 @@
 #include <rpc/auth.h>
 #include <rpc/auth_unix.h>
 
-libc_hidden_proto(xdr_string)
-libc_hidden_proto(xdr_u_int)
-libc_hidden_proto(xdr_array)
-libc_hidden_proto(xdr_u_long)
-libc_hidden_proto(xdr_u_short)
+/* libc_hidden_proto(xdr_string) */
+/* libc_hidden_proto(xdr_u_int) */
+/* libc_hidden_proto(xdr_array) */
+/* libc_hidden_proto(xdr_u_long) */
+/* libc_hidden_proto(xdr_u_short) */
 
 /*
  * XDR for unix authentication parameters.
  * Unfortunately, none of these can be declared const.
  */
-libc_hidden_proto(xdr_authunix_parms)
+/* libc_hidden_proto(xdr_authunix_parms) */
 bool_t
 xdr_authunix_parms (XDR * xdrs, struct authunix_parms *p)
 {

+ 2 - 2
libc/inet/rpc/bindresvport.c

@@ -41,13 +41,13 @@
 #include <netinet/in.h>
 
 /* Experimentally off - libc_hidden_proto(memset) */
-libc_hidden_proto(bind)
+/* libc_hidden_proto(bind) */
 /* libc_hidden_proto(getpid) */
 
 /*
  * Bind a socket to a privileged IP port
  */
-libc_hidden_proto(bindresvport)
+/* libc_hidden_proto(bindresvport) */
 int
 bindresvport (int sd, struct sockaddr_in *sin)
 {

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

@@ -44,12 +44,12 @@
 /* Experimentally off - libc_hidden_proto(memset) */
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strcpy) */
-libc_hidden_proto(clnttcp_create)
-libc_hidden_proto(clntudp_create)
-libc_hidden_proto(clntunix_create)
-libc_hidden_proto(getprotobyname_r)
-libc_hidden_proto(gethostbyname_r)
-libc_hidden_proto(__rpc_thread_createerr)
+/* libc_hidden_proto(clnttcp_create) */
+/* libc_hidden_proto(clntudp_create) */
+/* libc_hidden_proto(clntunix_create) */
+/* libc_hidden_proto(getprotobyname_r) */
+/* libc_hidden_proto(gethostbyname_r) */
+/* libc_hidden_proto(__rpc_thread_createerr) */
 
 /*
  * Generic client creation: takes (hostname, program-number, protocol) and

+ 5 - 5
libc/inet/rpc/clnt_perror.c

@@ -54,7 +54,7 @@ static char sccsid[] = "@(#)clnt_perror.c 1.15 87/10/07 Copyr 1984 Sun Micro";
 /* Experimentally off - libc_hidden_proto(strcpy) */
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* libc_hidden_proto(sprintf) */
-libc_hidden_proto(__glibc_strerror_r)
+/* libc_hidden_proto(__glibc_strerror_r) */
 /* libc_hidden_proto(fputs) */
 #ifdef USE_IN_LIBIO
 /* libc_hidden_proto(fwprintf) */
@@ -186,7 +186,7 @@ static const struct rpc_errtab rpc_errlist[] =
 /*
  * This interface for use by clntrpc
  */
-libc_hidden_proto(clnt_sperrno)
+/* libc_hidden_proto(clnt_sperrno) */
 char *
 clnt_sperrno (enum clnt_stat stat)
 {
@@ -217,7 +217,7 @@ clnt_perrno (enum clnt_stat num)
 /*
  * Print reply error info
  */
-libc_hidden_proto(clnt_sperror)
+/* libc_hidden_proto(clnt_sperror) */
 char *
 clnt_sperror (CLIENT * rpch, const char *msg)
 {
@@ -303,7 +303,7 @@ clnt_sperror (CLIENT * rpch, const char *msg)
 }
 libc_hidden_def(clnt_sperror)
 
-libc_hidden_proto(clnt_perror)
+/* libc_hidden_proto(clnt_perror) */
 void
 clnt_perror (CLIENT * rpch, const char *msg)
 {
@@ -316,7 +316,7 @@ clnt_perror (CLIENT * rpch, const char *msg)
 }
 libc_hidden_def(clnt_perror)
 
-libc_hidden_proto(clnt_spcreateerror)
+/* libc_hidden_proto(clnt_spcreateerror) */
 char *
 clnt_spcreateerror (const char *msg)
 {

+ 5 - 5
libc/inet/rpc/clnt_raw.c

@@ -49,13 +49,13 @@ static char sccsid[] = "@(#)clnt_raw.c 1.22 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/xdr.h>
 
 /* libc_hidden_proto(perror) */
-libc_hidden_proto(authnone_create)
+/* libc_hidden_proto(authnone_create) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_callhdr)
+/* libc_hidden_proto(xdr_callhdr) */
 /* libc_hidden_proto(xdr_replymsg) */
-libc_hidden_proto(xdr_opaque_auth)
-libc_hidden_proto(svc_getreq)
-libc_hidden_proto(_seterr_reply)
+/* libc_hidden_proto(xdr_opaque_auth) */
+/* libc_hidden_proto(svc_getreq) */
+/* libc_hidden_proto(_seterr_reply) */
 
 #define MCALL_MSG_SIZE 24
 

+ 2 - 2
libc/inet/rpc/clnt_simple.c

@@ -54,8 +54,8 @@ static char sccsid[] = "@(#)clnt_simple.c 1.35 87/08/11 Copyr 1984 Sun Micro";
 /* Experimentally off - libc_hidden_proto(strcmp) */
 /* Experimentally off - libc_hidden_proto(strncpy) */
 /* libc_hidden_proto(close) */
-libc_hidden_proto(clntudp_create)
-libc_hidden_proto(gethostbyname_r)
+/* libc_hidden_proto(clntudp_create) */
+/* libc_hidden_proto(gethostbyname_r) */
 
 struct callrpc_private_s
   {

+ 13 - 13
libc/inet/rpc/clnt_tcp.c

@@ -69,22 +69,22 @@ static char sccsid[] = "@(#)clnt_tcp.c 1.37 87/10/05 Copyr 1984 Sun Micro";
 /* libc_hidden_proto(read) */
 /* libc_hidden_proto(write) */
 /* libc_hidden_proto(close) */
-libc_hidden_proto(authnone_create)
-libc_hidden_proto(xdrrec_create)
-libc_hidden_proto(xdrrec_endofrecord)
-libc_hidden_proto(xdrrec_skiprecord)
-libc_hidden_proto(xdr_callhdr)
+/* libc_hidden_proto(authnone_create) */
+/* libc_hidden_proto(xdrrec_create) */
+/* libc_hidden_proto(xdrrec_endofrecord) */
+/* libc_hidden_proto(xdrrec_skiprecord) */
+/* libc_hidden_proto(xdr_callhdr) */
 /* libc_hidden_proto(xdr_replymsg) */
-libc_hidden_proto(xdr_opaque_auth)
+/* libc_hidden_proto(xdr_opaque_auth) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_void)
-libc_hidden_proto(pmap_getport)
-libc_hidden_proto(_seterr_reply)
-libc_hidden_proto(connect)
-libc_hidden_proto(bindresvport)
+/* libc_hidden_proto(xdr_void) */
+/* libc_hidden_proto(pmap_getport) */
+/* libc_hidden_proto(_seterr_reply) */
+/* libc_hidden_proto(connect) */
+/* libc_hidden_proto(bindresvport) */
 /* libc_hidden_proto(poll) */
 /* libc_hidden_proto(fputs) */
-libc_hidden_proto(__rpc_thread_createerr)
+/* libc_hidden_proto(__rpc_thread_createerr) */
 #ifdef USE_IN_LIBIO
 /* libc_hidden_proto(fwprintf) */
 #endif
@@ -141,7 +141,7 @@ static struct clnt_ops tcp_ops =
  * NB: The rpch->cl_auth is set null authentication.  Caller may wish to set this
  * something more useful.
  */
-libc_hidden_proto(clnttcp_create)
+/* libc_hidden_proto(clnttcp_create) */
 CLIENT *
 clnttcp_create (struct sockaddr_in *raddr, u_long prog, u_long vers,
 		int *sockp, u_int sendsz, u_int recvsz)

+ 14 - 14
libc/inet/rpc/clnt_udp.c

@@ -67,23 +67,23 @@ static char sccsid[] = "@(#)clnt_udp.c 1.39 87/08/11 Copyr 1984 Sun Micro";
 /* libc_hidden_proto(socket) */
 /* libc_hidden_proto(close) */
 /* CMSG_NXTHDR is using it */
-libc_hidden_proto(__cmsg_nxthdr)
+/* libc_hidden_proto(__cmsg_nxthdr) */
 
-libc_hidden_proto(authnone_create)
+/* libc_hidden_proto(authnone_create) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_callhdr)
+/* libc_hidden_proto(xdr_callhdr) */
 /* libc_hidden_proto(xdr_replymsg) */
-libc_hidden_proto(xdr_opaque_auth)
-libc_hidden_proto(pmap_getport)
-libc_hidden_proto(_seterr_reply)
-libc_hidden_proto(setsockopt)
-libc_hidden_proto(bindresvport)
-libc_hidden_proto(recvfrom)
-libc_hidden_proto(sendto)
-libc_hidden_proto(recvmsg)
+/* libc_hidden_proto(xdr_opaque_auth) */
+/* libc_hidden_proto(pmap_getport) */
+/* libc_hidden_proto(_seterr_reply) */
+/* libc_hidden_proto(setsockopt) */
+/* libc_hidden_proto(bindresvport) */
+/* libc_hidden_proto(recvfrom) */
+/* libc_hidden_proto(sendto) */
+/* libc_hidden_proto(recvmsg) */
 /* libc_hidden_proto(poll) */
 /* libc_hidden_proto(fputs) */
-libc_hidden_proto(__rpc_thread_createerr)
+/* libc_hidden_proto(__rpc_thread_createerr) */
 
 extern u_long _create_xid (void) attribute_hidden;
 
@@ -144,7 +144,7 @@ struct cu_data
  * sendsz and recvsz are the maximum allowable packet sizes that can be
  * sent and received.
  */
-libc_hidden_proto(clntudp_bufcreate)
+/* libc_hidden_proto(clntudp_bufcreate) */
 CLIENT *
 clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version,
 		   struct timeval wait, int *sockp, u_int sendsz,
@@ -245,7 +245,7 @@ fooy:
 }
 libc_hidden_def(clntudp_bufcreate)
 
-libc_hidden_proto(clntudp_create)
+/* libc_hidden_proto(clntudp_create) */
 CLIENT *
 clntudp_create (struct sockaddr_in *raddr, u_long program, u_long version, struct timeval wait, int *sockp)
 {

+ 16 - 16
libc/inet/rpc/clnt_unix.c

@@ -68,25 +68,25 @@
 /* libc_hidden_proto(socket) */
 /* libc_hidden_proto(close) */
 /* libc_hidden_proto(getpid) */
-libc_hidden_proto(authnone_create)
-libc_hidden_proto(xdrrec_create)
-libc_hidden_proto(xdrrec_endofrecord)
-libc_hidden_proto(xdrrec_skiprecord)
-libc_hidden_proto(xdr_callhdr)
+/* libc_hidden_proto(authnone_create) */
+/* libc_hidden_proto(xdrrec_create) */
+/* libc_hidden_proto(xdrrec_endofrecord) */
+/* libc_hidden_proto(xdrrec_skiprecord) */
+/* libc_hidden_proto(xdr_callhdr) */
 /* libc_hidden_proto(xdr_replymsg) */
-libc_hidden_proto(xdr_opaque_auth)
+/* libc_hidden_proto(xdr_opaque_auth) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_void)
-libc_hidden_proto(getegid)
-libc_hidden_proto(geteuid)
-libc_hidden_proto(_seterr_reply)
-libc_hidden_proto(setsockopt)
-libc_hidden_proto(connect)
-libc_hidden_proto(recvmsg)
-libc_hidden_proto(sendmsg)
+/* libc_hidden_proto(xdr_void) */
+/* libc_hidden_proto(getegid) */
+/* libc_hidden_proto(geteuid) */
+/* libc_hidden_proto(_seterr_reply) */
+/* libc_hidden_proto(setsockopt) */
+/* libc_hidden_proto(connect) */
+/* libc_hidden_proto(recvmsg) */
+/* libc_hidden_proto(sendmsg) */
 /* libc_hidden_proto(poll) */
 /* libc_hidden_proto(fputs) */
-libc_hidden_proto(__rpc_thread_createerr)
+/* libc_hidden_proto(__rpc_thread_createerr) */
 
 extern u_long _create_xid (void) attribute_hidden;
 
@@ -140,7 +140,7 @@ static struct clnt_ops unix_ops =
  * NB: The rpch->cl_auth is set null authentication.  Caller may wish to set this
  * something more useful.
  */
-libc_hidden_proto(clntunix_create)
+/* libc_hidden_proto(clntunix_create) */
 CLIENT *
 clntunix_create (struct sockaddr_un *raddr, u_long prog, u_long vers,
 		 int *sockp, u_int sendsz, u_int recvsz)

+ 2 - 2
libc/inet/rpc/create_xid.c

@@ -25,8 +25,8 @@
 #include <sys/time.h>
 #include <rpc/rpc.h>
 
-libc_hidden_proto(lrand48_r)
-libc_hidden_proto(srand48_r)
+/* libc_hidden_proto(lrand48_r) */
+/* libc_hidden_proto(srand48_r) */
 /* libc_hidden_proto(gettimeofday) */
 
 /* The RPC code is not threadsafe, but new code should be threadsafe. */

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

@@ -51,8 +51,8 @@
 /* Experimentally off - libc_hidden_proto(strlen) */
 /* libc_hidden_proto(fopen) */
 /* libc_hidden_proto(fclose) */
-libc_hidden_proto(atoi)
-libc_hidden_proto(rewind)
+/* libc_hidden_proto(atoi) */
+/* libc_hidden_proto(rewind) */
 /* libc_hidden_proto(fgets) */
 
 /*
@@ -84,7 +84,7 @@ static struct rpcdata *_rpcdata(void)
 	return d;
 }
 
-libc_hidden_proto(endrpcent)
+/* libc_hidden_proto(endrpcent) */
 void endrpcent(void)
 {
 	register struct rpcdata *d = _rpcdata();
@@ -102,7 +102,7 @@ void endrpcent(void)
 }
 libc_hidden_def(endrpcent)
 
-libc_hidden_proto(setrpcent)
+/* libc_hidden_proto(setrpcent) */
 void setrpcent(int f)
 {
 	register struct rpcdata *d = _rpcdata();
@@ -128,7 +128,7 @@ static struct rpcent *__get_next_rpcent(struct rpcdata *d)
 	return interpret(d);
 }
 
-libc_hidden_proto(getrpcent)
+/* libc_hidden_proto(getrpcent) */
 struct rpcent *getrpcent(void)
 {
 	register struct rpcdata *d = _rpcdata();
@@ -141,7 +141,7 @@ struct rpcent *getrpcent(void)
 }
 libc_hidden_def(getrpcent)
 
-libc_hidden_proto(getrpcbynumber)
+/* libc_hidden_proto(getrpcbynumber) */
 struct rpcent *getrpcbynumber(register int number)
 {
 	register struct rpcdata *d = _rpcdata();
@@ -159,7 +159,7 @@ struct rpcent *getrpcbynumber(register int number)
 }
 libc_hidden_def(getrpcbynumber)
 
-libc_hidden_proto(getrpcbyname)
+/* libc_hidden_proto(getrpcbyname) */
 struct rpcent *getrpcbyname(const char *name)
 {
 	struct rpcent *rpc;

+ 2 - 2
libc/inet/rpc/getrpcport.c

@@ -49,8 +49,8 @@ static  char sccsid[] = "@(#)getrpcport.c 1.3 87/08/11 SMI";
 #include <sys/socket.h>
 
 /* Experimentally off - libc_hidden_proto(memcpy) */
-libc_hidden_proto(pmap_getport)
-libc_hidden_proto(gethostbyname_r)
+/* libc_hidden_proto(pmap_getport) */
+/* libc_hidden_proto(gethostbyname_r) */
 
 int
 getrpcport (const char *host, u_long prognum, u_long versnum, u_int proto)

+ 5 - 5
libc/inet/rpc/pm_getmaps.c

@@ -48,11 +48,11 @@ static char sccsid[] = "@(#)pmap_getmaps.c 1.10 87/08/11 Copyr 1984 Sun Micro";
 #include <errno.h>
 #include <unistd.h>
 
-libc_hidden_proto(clnt_perror)
-libc_hidden_proto(clnttcp_create)
-libc_hidden_proto(xdr_pmap)
-libc_hidden_proto(xdr_pmaplist)
-libc_hidden_proto(xdr_void)
+/* libc_hidden_proto(clnt_perror) */
+/* libc_hidden_proto(clnttcp_create) */
+/* libc_hidden_proto(xdr_pmap) */
+/* libc_hidden_proto(xdr_pmaplist) */
+/* libc_hidden_proto(xdr_void) */
 
 /*
  * Get a copy of the current port maps.

+ 5 - 5
libc/inet/rpc/pm_getport.c

@@ -44,10 +44,10 @@ static char sccsid[] = "@(#)pmap_getport.c 1.9 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/pmap_prot.h>
 #include <rpc/pmap_clnt.h>
 
-libc_hidden_proto(clntudp_bufcreate)
-libc_hidden_proto(__rpc_thread_createerr)
-libc_hidden_proto(xdr_u_short)
-libc_hidden_proto(xdr_pmap)
+/* libc_hidden_proto(clntudp_bufcreate) */
+/* libc_hidden_proto(__rpc_thread_createerr) */
+/* libc_hidden_proto(xdr_u_short) */
+/* libc_hidden_proto(xdr_pmap) */
 
 static const struct timeval timeout =
 {5, 0};
@@ -59,7 +59,7 @@ static const struct timeval tottimeout =
  * Calls the pmap service remotely to do the lookup.
  * Returns 0 if no map exists.
  */
-libc_hidden_proto(pmap_getport)
+/* libc_hidden_proto(pmap_getport) */
 u_short
 pmap_getport (address, program, version, protocol)
      struct sockaddr_in *address;

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

@@ -53,10 +53,10 @@
 /* libc_hidden_proto(close) */
 /* libc_hidden_proto(perror) */
 /* libc_hidden_proto(exit) */
-libc_hidden_proto(clnt_perror)
-libc_hidden_proto(clntudp_bufcreate)
-libc_hidden_proto(xdr_bool)
-libc_hidden_proto(xdr_pmap)
+/* libc_hidden_proto(clnt_perror) */
+/* libc_hidden_proto(clntudp_bufcreate) */
+/* libc_hidden_proto(xdr_bool) */
+/* libc_hidden_proto(xdr_pmap) */
 
 /*
  * Same as get_myaddress, but we try to use the loopback
@@ -122,7 +122,7 @@ static const struct timeval tottimeout = {60, 0};
  * Set a mapping between program,version and port.
  * Calls the pmap service remotely to do the mapping.
  */
-libc_hidden_proto(pmap_set)
+/* libc_hidden_proto(pmap_set) */
 bool_t
 pmap_set (u_long program, u_long version, int protocol, u_short port)
 {
@@ -159,7 +159,7 @@ libc_hidden_def (pmap_set)
  * Remove the mapping between program,version and port.
  * Calls the pmap service remotely to do the un-mapping.
  */
-libc_hidden_proto(pmap_unset)
+/* libc_hidden_proto(pmap_unset) */
 bool_t
 pmap_unset (u_long program, u_long version)
 {

+ 2 - 2
libc/inet/rpc/pmap_prot.c

@@ -42,9 +42,9 @@ static char sccsid[] = "@(#)pmap_prot.c 1.17 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/xdr.h>
 #include <rpc/pmap_prot.h>
 
-libc_hidden_proto(xdr_u_long)
+/* libc_hidden_proto(xdr_u_long) */
 
-libc_hidden_proto(xdr_pmap)
+/* libc_hidden_proto(xdr_pmap) */
 bool_t
 xdr_pmap (xdrs, regs)
      XDR *xdrs;

+ 4 - 4
libc/inet/rpc/pmap_prot2.c

@@ -42,9 +42,9 @@ static char sccsid[] = "@(#)pmap_prot2.c 1.3 87/08/11 Copyr 1984 Sun Micro";
 #include <rpc/xdr.h>
 #include <rpc/pmap_prot.h>
 
-libc_hidden_proto(xdr_bool)
-libc_hidden_proto(xdr_reference)
-libc_hidden_proto(xdr_pmap)
+/* libc_hidden_proto(xdr_bool) */
+/* libc_hidden_proto(xdr_reference) */
+/* libc_hidden_proto(xdr_pmap) */
 
 /*
  * What is going on with linked lists? (!)
@@ -84,7 +84,7 @@ libc_hidden_proto(xdr_pmap)
  * the net, yet is the data that the pointer points to which is interesting;
  * this sounds like a job for xdr_reference!
  */
-libc_hidden_proto(xdr_pmaplist)
+/* libc_hidden_proto(xdr_pmaplist) */
 bool_t
 xdr_pmaplist (xdrs, rp)
      XDR *xdrs;

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

@@ -64,21 +64,21 @@ static char sccsid[] = "@(#)pmap_rmt.c 1.21 87/08/27 Copyr 1984 Sun Micro";
 /* libc_hidden_proto(perror) */
 /* libc_hidden_proto(socket) */
 /* libc_hidden_proto(close) */
-libc_hidden_proto(authunix_create_default)
+/* libc_hidden_proto(authunix_create_default) */
 /* libc_hidden_proto(xdrmem_create) */
-libc_hidden_proto(xdr_callmsg)
+/* libc_hidden_proto(xdr_callmsg) */
 /* libc_hidden_proto(xdr_replymsg) */
-libc_hidden_proto(xdr_reference)
-libc_hidden_proto(xdr_u_long)
-libc_hidden_proto(xdr_void)
-libc_hidden_proto(xdr_rmtcallres)
-libc_hidden_proto(xdr_rmtcall_args)
-libc_hidden_proto(inet_makeaddr)
-libc_hidden_proto(inet_netof)
-libc_hidden_proto(clntudp_create)
-libc_hidden_proto(setsockopt)
-libc_hidden_proto(recvfrom)
-libc_hidden_proto(sendto)
+/* libc_hidden_proto(xdr_reference) */
+/* libc_hidden_proto(xdr_u_long) */
+/* libc_hidden_proto(xdr_void) */
+/* libc_hidden_proto(xdr_rmtcallres) */
+/* libc_hidden_proto(xdr_rmtcall_args) */
+/* libc_hidden_proto(inet_makeaddr) */
+/* libc_hidden_proto(inet_netof) */
+/* libc_hidden_proto(clntudp_create) */
+/* libc_hidden_proto(setsockopt) */
+/* libc_hidden_proto(recvfrom) */
+/* libc_hidden_proto(sendto) */
 /* libc_hidden_proto(poll) */
 /* libc_hidden_proto(fprintf) */
 

Some files were not shown because too many files changed in this diff