]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
libnsl: Turn remaining symbols into compat symbols [BZ #22701]
authorFlorian Weimer <fweimer@redhat.com>
Mon, 29 Jan 2018 16:00:14 +0000 (17:00 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 29 Jan 2018 16:42:30 +0000 (17:42 +0100)
ChangeLog
include/rpcsvc/nislib.h
include/rpcsvc/yp.h
include/rpcsvc/ypclnt.h
nis/Makefile
nis/nis_defaults.c
nis/rpcsvc/ypclnt.h
nis/yp_xdr.c
nis/ypclnt.c

index f156d857e768ac734c188b72778aee96bbfc97ec..3a38045869bf69ab504cef0690b6ea052ae00c68 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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)
 
        * sysdeps/unix/sysv/linux/microblaze/kernel-features.h
index 91dab1d17107e12de5c210867ffd3a2eb3bbaadb..ad4d499911a244cc5576562ebf046d1c034e2306 100644 (file)
@@ -42,6 +42,7 @@ libnsl_hidden_proto (nis_remove)
 libnsl_hidden_proto (nis_add)
 libnsl_hidden_proto (__nis_default_owner)
 libnsl_hidden_proto (__nis_default_group)
+libnsl_hidden_proto (__nis_default_ttl)
 libnsl_hidden_proto (__nis_default_access)
 libnsl_hidden_proto (nis_clone_object)
 libnsl_hidden_proto (nis_clone_result)
index 9078854d4019d1fc86613d47bfd54180c934a544..87cd3827a75e3a2cc4bdca6e64cf4f8d00d1cb67 100644 (file)
@@ -3,6 +3,9 @@
 
 # ifndef _ISOMAC
 
+struct ypall_callback;
+bool_t xdr_ypall (XDR *, struct ypall_callback *);
+
 libnsl_hidden_proto (xdr_ypstat)
 libnsl_hidden_proto (xdr_ypxfrstat)
 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_yppushresp_xfr)
 libnsl_hidden_proto (xdr_ypbind_setdom)
+libnsl_hidden_proto (xdr_ypall)
 
 # endif /* !_ISOMAC */
 #endif
index df2a03d9c578a18463e5560b55de45b5e36b08b2..c6a724814ca2a5e8e5438e13094484d884b8db6d 100644 (file)
@@ -3,6 +3,9 @@
 
 # ifndef _ISOMAC
 
+struct ypmaplist;
+int yp_maplist (const char *, struct ypmaplist **) __THROW;
+
 libnsl_hidden_proto (ypbinderr_string)
 libnsl_hidden_proto (yp_bind)
 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_all)
 libnsl_hidden_proto (__yp_check)
+libnsl_hidden_proto (yp_maplist)
 
 # endif /* !_ISOMAC */
 #endif
index e7497f724248304924e63d4e0011625d50cf2dcb..d77c6e0c8e5c1ea431838570482a5d12265f6c02 100644 (file)
@@ -58,9 +58,10 @@ libnsl-routines = yp_xdr ypclnt ypupdate_xdr \
                  nis_print_group_entry nis_domain_of nis_domain_of_r\
                  nis_modify nis_remove nis_add nis_defaults\
                  nis_findserv nis_callback nis_clone_dir nis_clone_obj\
-                 nis_clone_res nss-default
+                 nis_clone_res
 
 ifeq ($(build-obsolete-nsl),yes)
+libnsl-routines += nss-default
 libnss_nis-routines    := $(addprefix nis-,$(databases)) nis-initgroups \
                           nss-nis
 libnss_nis-inhibit-o   = $(filter-out .os,$(object-suffixes))
index 58e64a8e98e9ee844c72f5ba3c87ea0fc3a32ee2..0be47aa65c5d114eb9fee57dd00c3c4a7df2f477 100644 (file)
@@ -428,6 +428,7 @@ __nis_default_ttl (char *defaults)
 
   return searchttl (cptr);
 }
+libnsl_hidden_nolink_def (__nis_default_ttl, GLIBC_2_1)
 
 /* Default access rights are ----rmcdr---r---, but we could change
    this with the NIS_DEFAULTS variable. */
index b96cb3b40e4e17574c895ae7e7e9c2e8f626c8c7..af904fccb2adbd7205dd707d410ac8390f67f97f 100644 (file)
@@ -76,9 +76,6 @@ extern const char *ypbinderr_string (const int) __THROW;
 extern int ypprot_err (const int) __THROW;
 extern int yp_update (char *, char *, unsigned int,  char *,
                      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.  */
 extern int __yp_check (char **) __THROW;
index 0081b4c926956447987211fc6c1e83a0db63bd51..3b576731da247966a43144f741602b134dc821d3 100644 (file)
@@ -327,4 +327,4 @@ xdr_ypall(XDR *xdrs, struct ypall_callback *incallback)
            return FALSE;
     }
 }
-/* XXX libnsl_hidden_nolink_def(xdr_ypall, GLIBC_2_2) */
+libnsl_hidden_nolink_def (xdr_ypall, GLIBC_2_2)
index 95215e2f67d126c4938de75fda122722c3672656..11a17db98dc8e5ab8d34939267c690f2d7847c47 100644 (file)
@@ -813,6 +813,7 @@ yp_maplist (const char *indomain, struct ypmaplist **outmaplist)
 
   return result;
 }
+libnsl_hidden_nolink_def (yp_maplist, GLIBC_2_0)
 
 const char *
 yperr_string (const int error)