glibc/inet
Florian Weimer c88ffc239e NSS: Replace exported NSS lookup functions with stubs [BZ #21962]
Commit 384ca55174 from 2007 added this to
nss/XXX-lookup.c:

+#ifndef NO_COMPAT
+int
+internal_function attribute_compat_text_section
+DB_COMPAT_FCT (service_user **ni, const char *fct_name, void **fctp)
+{
+  return DB_LOOKUP_FCT (ni, fct_name, NULL, fctp);
+}
+#endif

That is, it adds a pseudo-compat function with an internal_function
attribute.  The function it was supposed to replace did not have the
attribute:

 extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name,
-			  void **fctp) internal_function;
+			  const char *fct2_name, void **fctp)
+  internal_function;

This changed the calling convention on i386 for the following
functions in the public ABI:

  __nss_passwd_lookup
  __nss_group_lookup
  __nss_hosts_lookup

This commit replaces the functions with always-failing stubs,
with true compat symbols.  Due to a happy accident, the calling
convention of the stub is identical for the internal_function
and non-internal_function case on i386.

In addition, this commit auto-generates the __nss_*_lookup2
function declarations as part of <nsswitch.h>.
2017-08-14 18:13:42 +02:00
..
arpa
netinet
protocols
Makefile
Versions
aliases.h
bug-if1.c
check_native.c
check_pf.c
deadline.c
ether_aton.c
ether_aton_r.c
ether_hton.c
ether_line.c
ether_ntoa.c
ether_ntoa_r.c
ether_ntoh.c
getaliasent.c
getaliasent_r.c
getaliasname.c
getaliasname_r.c
gethstbyad.c
gethstbyad_r.c
gethstbynm.c
gethstbynm2.c
gethstbynm2_r.c
gethstbynm_r.c
gethstent.c
gethstent_r.c
getipv4sourcefilter.c
getnameinfo.c
getnetbyad.c
getnetbyad_r.c
getnetbynm.c
getnetbynm_r.c
getnetent.c
getnetent_r.c
getnetgrent.c
getnetgrent_r.c
getproto.c
getproto_r.c
getprtent.c
getprtent_r.c
getprtname.c
getprtname_r.c
getservent.c
getservent_r.c
getsourcefilter.c
getsrvbynm.c
getsrvbynm_r.c
getsrvbypt.c
getsrvbypt_r.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c
if_index.c
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c
inet6_rth.c
inet6_scopeid_pton.c
inet_lnaof.c
inet_mkadr.c
inet_net.c
inet_netof.c
inet_ntoa.c
net-internal.h
netgroup.h
rcmd.c
rexec.c
ruserpass.c
setipv4sourcefilter.c
setsourcefilter.c
test-hnto-types.c
test-ifaddrs.c
test-inet6_opt.c
test_ifindex.c
tst-checks-posix.c
tst-checks.c
tst-deadline.c
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-inet6_scopeid_pton.c
tst-network.c
tst-ntoa.c
tst-sockaddr.c