diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-20 22:11:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-20 22:11:44 +0000 |
commit | cb97aadebfeba7f5e8f1b85beee5ab10e88c2990 (patch) | |
tree | f5f56f2ef0f3048325419857d0b538135524ff8c /include | |
parent | b133fe1cac9f99b63ea56daf92caa1423b1289d0 (diff) |
Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)
Diffstat (limited to 'include')
64 files changed, 439 insertions, 5 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index 02233d4e7..8ecad55f0 100644 --- a/include/arpa/inet.h +++ b/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. */ diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index 496c8dbe8..a9c199e25 100644 --- a/include/arpa/nameser.h +++ b/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; diff --git a/include/assert.h b/include/assert.h index 9b9d1b796..439179d8d 100644 --- a/include/assert.h +++ b/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 diff --git a/include/ctype.h b/include/ctype.h index 065dd5a49..3c1b0c3c7 100644 --- a/include/ctype.h +++ b/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) \ diff --git a/include/dirent.h b/include/dirent.h index 565a94dee..e2fce367c 100644 --- a/include/dirent.h +++ b/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) diff --git a/include/err.h b/include/err.h index 7ff3553ab..413e1ab26 100644 --- a/include/err.h +++ b/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 diff --git a/include/fcntl.h b/include/fcntl.h index 31a0149a7..4356dad60 100644 --- a/include/fcntl.h +++ b/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 diff --git a/include/fnmatch.h b/include/fnmatch.h index aefb007fb..9178706f0 100644 --- a/include/fnmatch.h +++ b/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 } diff --git a/include/glob.h b/include/glob.h index 68ea2cb9c..875dfc5b2 100644 --- a/include/glob.h +++ b/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 diff --git a/include/grp.h b/include/grp.h index fa381d2d0..45b21043c 100644 --- a/include/grp.h +++ b/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 diff --git a/include/langinfo.h b/include/langinfo.h index 12f008046..f289a66c0 100644 --- a/include/langinfo.h +++ b/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 diff --git a/include/libc-internal.h b/include/libc-internal.h index 7b2566f74..525444ac8 100644 --- a/include/libc-internal.h +++ b/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> */ diff --git a/include/locale.h b/include/locale.h index 241e3f057..cdb3a09d9 100644 --- a/include/locale.h +++ b/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'. */ diff --git a/include/malloc.h b/include/malloc.h index 12834a547..1865409f9 100644 --- a/include/malloc.h +++ b/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" */ diff --git a/include/mntent.h b/include/mntent.h index a82e9539a..a936b834c 100644 --- a/include/mntent.h +++ b/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. */ diff --git a/include/net/if.h b/include/net/if.h index ebb3e9f30..6d6d59a18 100644 --- a/include/net/if.h +++ b/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) /* Fre |