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/netdb.h | |
parent | b133fe1cac9f99b63ea56daf92caa1423b1289d0 (diff) |
Last portion of libc_hidden_proto removal.
Appears to build fine (several .configs tried)
Diffstat (limited to 'include/netdb.h')
-rw-r--r-- | include/netdb.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/netdb.h b/include/netdb.h index df90601ac..99ba243f5 100644 --- a/include/netdb.h +++ b/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 |