aboutsummaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/XXX-lookup.c2
-rw-r--r--nss/getXXbyYY_r.c7
-rw-r--r--nss/getXXent_r.c7
-rw-r--r--nss/hosts-lookup.c2
-rw-r--r--nss/nsswitch.c2
-rw-r--r--nss/nsswitch.h3
6 files changed, 10 insertions, 13 deletions
diff --git a/nss/XXX-lookup.c b/nss/XXX-lookup.c
index 847c31459a..da0e6f4510 100644
--- a/nss/XXX-lookup.c
+++ b/nss/XXX-lookup.c
@@ -57,6 +57,7 @@ service_user *DATABASE_NAME_SYMBOL attribute_hidden;
extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name,
void **fctp) internal_function;
+libc_hidden_proto (DB_LOOKUP_FCT)
int
internal_function
@@ -71,3 +72,4 @@ DB_LOOKUP_FCT (service_user **ni, const char *fct_name, void **fctp)
return __nss_lookup (ni, fct_name, fctp);
}
+libc_hidden_def (DB_LOOKUP_FCT)
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index d1150f9d4c..8358e2f71d 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -109,17 +109,14 @@
# define AF_VAR_P NULL
#endif
-#ifndef NSS_attribute_hidden
-# define NSS_attribute_hidden
-#endif
-
/* Type of the lookup function we need here. */
typedef enum nss_status (*lookup_function) (ADD_PARAMS, LOOKUP_TYPE *, char *,
size_t, int * H_ERRNO_PARM);
/* The lookup function for the first entry of this service. */
extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp)
- internal_function NSS_attribute_hidden;
+ internal_function;
+libc_hidden_proto (DB_LOOKUP_FCT)
/* Interval in which we transfer retry to contact the NSCD. */
#define NSS_NSCD_RETRY 100
diff --git a/nss/getXXent_r.c b/nss/getXXent_r.c
index 031973dee0..1d203db4c4 100644
--- a/nss/getXXent_r.c
+++ b/nss/getXXent_r.c
@@ -94,10 +94,6 @@
# define NEED__RES 0
#endif
-#ifndef NSS_attribute_hidden
-# define NSS_attribute_hidden
-#endif
-
/* This handle for the NSS data base is shared between all
set/get/endXXXent functions. */
static service_user *nip;
@@ -118,7 +114,8 @@ __libc_lock_define_initialized (static, lock)
/* The lookup function for the first entry of this service. */
extern int DB_LOOKUP_FCT (service_user **nip, const char *name, void **fctp)
- internal_function NSS_attribute_hidden;
+ internal_function;
+libc_hidden_proto (DB_LOOKUP_FCT)
void
SETFUNC_NAME (STAYOPEN)
diff --git a/nss/hosts-lookup.c b/nss/hosts-lookup.c
index 998058efe3..8dff71f7c5 100644
--- a/nss/hosts-lookup.c
+++ b/nss/hosts-lookup.c
@@ -21,5 +21,3 @@
#define DEFAULT_CONFIG "dns [!UNAVAIL=return] files"
#include "XXX-lookup.c"
-
-INTDEF(__nss_hosts_lookup)
diff --git a/nss/nsswitch.c b/nss/nsswitch.c
index b0658e5899..ca411b2cdc 100644
--- a/nss/nsswitch.c
+++ b/nss/nsswitch.c
@@ -136,6 +136,7 @@ __nss_database_lookup (const char *database, const char *alternate_name,
return 0;
}
+libc_hidden_def (__nss_database_lookup)
/* -1 == not found
@@ -199,6 +200,7 @@ __nss_next (service_user **ni, const char *fct_name, void **fctp, int status,
return *fctp != NULL ? 0 : -1;
}
+libc_hidden_def (__nss_next)
int
diff --git a/nss/nsswitch.h b/nss/nsswitch.h
index 16dd938502..c4d0aa6f66 100644
--- a/nss/nsswitch.h
+++ b/nss/nsswitch.h
@@ -103,7 +103,7 @@ typedef struct name_database
than one function can use the database. */
int __nss_database_lookup (const char *database, const char *alternative_name,
const char *defconfig, service_user **ni);
-
+libc_hidden_proto (__nss_database_lookup)
/* Put first function with name FCT_NAME for SERVICE in FCTP. The
position is remembered in NI. The function returns a value < 0 if
@@ -125,6 +125,7 @@ int __nss_lookup (service_user **ni, const char *fct_name, void **fctp);
natural end. */
int __nss_next (service_user **ni, const char *fct_name, void **fctp,
int status, int all_values);
+libc_hidden_proto (__nss_next)
/* Search for the service described in NI for a function named FCT_NAME
and return a pointer to this function if successful. */