aboutsummaryrefslogtreecommitdiff
path: root/inet/getnetgrent_r.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-06 21:10:50 +0000
committerRoland McGrath <roland@gnu.org>2002-08-06 21:10:50 +0000
commite78f615d52703ec18f773e3778d0dbfc6aa3be35 (patch)
tree23805eaedbb7027869acf401a80fd534162e44a3 /inet/getnetgrent_r.c
parent1ab62b326e22ee3c9ab8b8b4144953698bc82cff (diff)
downloadglibc-e78f615d52703ec18f773e3778d0dbfc6aa3be35.tar
glibc-e78f615d52703ec18f773e3778d0dbfc6aa3be35.tar.gz
glibc-e78f615d52703ec18f773e3778d0dbfc6aa3be35.tar.bz2
glibc-e78f615d52703ec18f773e3778d0dbfc6aa3be35.zip
* include/getopt.h: But private decls inside [_GETOPT_H].
Use libc_hidden_proto for getopt_long, getopt_long_only. * posix/getopt1.c [_LIBC]: Include <getopt.h> instead of "getopt.h". Add libc_hidden_def. * sysdeps/generic/unwind-dw2-fde-glibc.c [_LIBC] (dl_iterate_phdr): Define as a macro for __dl_iterate_phdr. * inet/getnetgrent_r.c (internal_setnetgrent): Renamed from __ name, made static. Add __ name as a strong alias. (internal_endnetgrent): Likewise. (internal_getnetgrent_r): Likewise.
Diffstat (limited to 'inet/getnetgrent_r.c')
-rw-r--r--inet/getnetgrent_r.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/inet/getnetgrent_r.c b/inet/getnetgrent_r.c
index cab2feb4a0..92a8b30101 100644
--- a/inet/getnetgrent_r.c
+++ b/inet/getnetgrent_r.c
@@ -129,14 +129,15 @@ __internal_setnetgrent_reuse (const char *group, struct __netgrent *datap,
return status == NSS_STATUS_SUCCESS;
}
-int
-__internal_setnetgrent (const char *group, struct __netgrent *datap)
+static int
+internal_setnetgrent (const char *group, struct __netgrent *datap)
{
/* Free list of all netgroup names from last run. */
free_memory (datap);
return __internal_setnetgrent_reuse (group, datap, &errno);
}
+strong_alias (internal_setnetgrent, __internal_setnetgrent)
int
setnetgrent (const char *group)
@@ -145,7 +146,7 @@ setnetgrent (const char *group)
__libc_lock_lock (lock);
- result = __internal_setnetgrent (group, &dataset);
+ result = internal_setnetgrent (group, &dataset);
__libc_lock_unlock (lock);
@@ -153,8 +154,8 @@ setnetgrent (const char *group)
}
-void
-__internal_endnetgrent (struct __netgrent *datap)
+static void
+internal_endnetgrent (struct __netgrent *datap)
{
service_user *old_nip;
enum nss_status (*fct) (struct __netgrent *);
@@ -177,6 +178,7 @@ __internal_endnetgrent (struct __netgrent *datap)
/* Now free list of all netgroup names from last run. */
free_memory (datap);
}
+strong_alias (internal_endnetgrent, __internal_endnetgrent)
void
@@ -190,8 +192,8 @@ endnetgrent (void)
}
-int
-__internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
+static int
+internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
struct __netgrent *datap,
char *buffer, size_t buflen, int *errnop)
{
@@ -272,6 +274,7 @@ __internal_getnetgrent_r (char **hostp, char **userp, char **domainp,
return status == NSS_STATUS_SUCCESS ? 1 : 0;
}
+strong_alias (internal_getnetgrent_r, __internal_getnetgrent_r)
/* The real entry point. */
int