libnsl: Turn remaining symbols into compat symbols [BZ #22701]

This commit is contained in:
Florian Weimer 2018-01-29 17:00:14 +01:00
parent b7ccb5de35
commit cdd14619a7
9 changed files with 31 additions and 5 deletions

View File

@ -1,3 +1,20 @@
2018-01-29 Florian Weimer <fweimer@redhat.com>
[BZ #22701]
* include/rpcsvc/nislib.h (__nis_default_ttl): Add
libnsl_hidden_proto.
* include/rpcsvc/yp.h (yp_xdrall): Declare with
libnsl_hidden_proto.
* include/rpcsvc/ypclnt.h (yp_maplist): Likewise.
* nis/Makefile (libnsl-routines): Add nss-default only for
build-obsolete-nsl.
* nis/nis_defaults.c (__nis_default_ttl): Add
libnsl_hidden_nolink_def.
* nis/rpcsvc/ypclnt.h (yp_maplist): Remove #ifdef'ed-out
declaration.
* nis/yp_xdr.c (xdr_ypall): Add libnsl_hidden_nolink_def.
* nis/ypclnt.c (yp_maplist): Likewise.
2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change) 2018-01-29 Romain Naour <romain.naour@gmail.com> (tiny change)
* sysdeps/unix/sysv/linux/microblaze/kernel-features.h * sysdeps/unix/sysv/linux/microblaze/kernel-features.h

View File

@ -42,6 +42,7 @@ libnsl_hidden_proto (nis_remove)
libnsl_hidden_proto (nis_add) libnsl_hidden_proto (nis_add)
libnsl_hidden_proto (__nis_default_owner) libnsl_hidden_proto (__nis_default_owner)
libnsl_hidden_proto (__nis_default_group) libnsl_hidden_proto (__nis_default_group)
libnsl_hidden_proto (__nis_default_ttl)
libnsl_hidden_proto (__nis_default_access) libnsl_hidden_proto (__nis_default_access)
libnsl_hidden_proto (nis_clone_object) libnsl_hidden_proto (nis_clone_object)
libnsl_hidden_proto (nis_clone_result) libnsl_hidden_proto (nis_clone_result)

View File

@ -3,6 +3,9 @@
# ifndef _ISOMAC # ifndef _ISOMAC
struct ypall_callback;
bool_t xdr_ypall (XDR *, struct ypall_callback *);
libnsl_hidden_proto (xdr_ypstat) libnsl_hidden_proto (xdr_ypstat)
libnsl_hidden_proto (xdr_ypxfrstat) libnsl_hidden_proto (xdr_ypxfrstat)
libnsl_hidden_proto (xdr_domainname) libnsl_hidden_proto (xdr_domainname)
@ -28,6 +31,7 @@ libnsl_hidden_proto (xdr_ypreq_xfr)
libnsl_hidden_proto (xdr_ypresp_xfr) libnsl_hidden_proto (xdr_ypresp_xfr)
libnsl_hidden_proto (xdr_yppushresp_xfr) libnsl_hidden_proto (xdr_yppushresp_xfr)
libnsl_hidden_proto (xdr_ypbind_setdom) libnsl_hidden_proto (xdr_ypbind_setdom)
libnsl_hidden_proto (xdr_ypall)
# endif /* !_ISOMAC */ # endif /* !_ISOMAC */
#endif #endif

View File

@ -3,6 +3,9 @@
# ifndef _ISOMAC # ifndef _ISOMAC
struct ypmaplist;
int yp_maplist (const char *, struct ypmaplist **) __THROW;
libnsl_hidden_proto (ypbinderr_string) libnsl_hidden_proto (ypbinderr_string)
libnsl_hidden_proto (yp_bind) libnsl_hidden_proto (yp_bind)
libnsl_hidden_proto (yp_get_default_domain) libnsl_hidden_proto (yp_get_default_domain)
@ -17,6 +20,7 @@ libnsl_hidden_proto (yp_next)
libnsl_hidden_proto (yp_match) libnsl_hidden_proto (yp_match)
libnsl_hidden_proto (yp_all) libnsl_hidden_proto (yp_all)
libnsl_hidden_proto (__yp_check) libnsl_hidden_proto (__yp_check)
libnsl_hidden_proto (yp_maplist)
# endif /* !_ISOMAC */ # endif /* !_ISOMAC */
#endif #endif

View File

@ -58,9 +58,10 @@ libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
nis_print_group_entry nis_domain_of nis_domain_of_r\ nis_print_group_entry nis_domain_of nis_domain_of_r\
nis_modify nis_remove nis_add nis_defaults\ nis_modify nis_remove nis_add nis_defaults\
nis_findserv nis_callback nis_clone_dir nis_clone_obj\ nis_findserv nis_callback nis_clone_dir nis_clone_obj\
nis_clone_res nss-default nis_clone_res
ifeq ($(build-obsolete-nsl),yes) ifeq ($(build-obsolete-nsl),yes)
libnsl-routines += nss-default
libnss_nis-routines := $(addprefix nis-,$(databases)) nis-initgroups \ libnss_nis-routines := $(addprefix nis-,$(databases)) nis-initgroups \
nss-nis nss-nis
libnss_nis-inhibit-o = $(filter-out .os,$(object-suffixes)) libnss_nis-inhibit-o = $(filter-out .os,$(object-suffixes))

View File

@ -428,6 +428,7 @@ __nis_default_ttl (char *defaults)
return searchttl (cptr); return searchttl (cptr);
} }
libnsl_hidden_nolink_def (__nis_default_ttl, GLIBC_2_1)
/* Default access rights are ----rmcdr---r---, but we could change /* Default access rights are ----rmcdr---r---, but we could change
this with the NIS_DEFAULTS variable. */ this with the NIS_DEFAULTS variable. */

View File

@ -76,9 +76,6 @@ extern const char *ypbinderr_string (const int) __THROW;
extern int ypprot_err (const int) __THROW; extern int ypprot_err (const int) __THROW;
extern int yp_update (char *, char *, unsigned int, char *, extern int yp_update (char *, char *, unsigned int, char *,
int, char *, int) __THROW; int, char *, int) __THROW;
#if 0
extern int yp_maplist (const char *, struct ypmaplist **) __THROW;
#endif
/* This functions exists only under BSD and Linux systems. */ /* This functions exists only under BSD and Linux systems. */
extern int __yp_check (char **) __THROW; extern int __yp_check (char **) __THROW;

View File

@ -327,4 +327,4 @@ xdr_ypall(XDR *xdrs, struct ypall_callback *incallback)
return FALSE; return FALSE;
} }
} }
/* XXX libnsl_hidden_nolink_def(xdr_ypall, GLIBC_2_2) */ libnsl_hidden_nolink_def (xdr_ypall, GLIBC_2_2)

View File

@ -813,6 +813,7 @@ yp_maplist (const char *indomain, struct ypmaplist **outmaplist)
return result; return result;
} }
libnsl_hidden_nolink_def (yp_maplist, GLIBC_2_0)
const char * const char *
yperr_string (const int error) yperr_string (const int error)