about summary refs log tree commit diff
path: root/nss
diff options
context:
space:
mode:
Diffstat (limited to 'nss')
-rw-r--r--nss/Makefile2
-rw-r--r--nss/getXXbyYY_r.c2
-rw-r--r--nss/libnss_db.map20
-rw-r--r--nss/libnss_files.map28
4 files changed, 51 insertions, 1 deletions
diff --git a/nss/Makefile b/nss/Makefile
index 6f555af469..02af5009bc 100644
--- a/nss/Makefile
+++ b/nss/Makefile
@@ -49,10 +49,12 @@ vpath %.c $(subdir-dirs)
 
 
 libnss_files-routines	:= $(addprefix files-,$(filter-out key, $(databases)))
+libnss_files-map	:= libnss_files.map
 distribute		+= files-XXX.c files-parse.c
 
 libnss_db-routines	:= $(addprefix db-,$(filter-out hosts network key,\
 							$(databases)))
+libnss_db-map		:= libnss_db.map
 generated		+= $(filter-out db-alias.c db-netgrp.c, \
 					$(addsuffix .c,$(libnss_db-routines)))
 distribute		+= db-XXX.c
diff --git a/nss/getXXbyYY_r.c b/nss/getXXbyYY_r.c
index 371b2e36f5..988f46c88e 100644
--- a/nss/getXXbyYY_r.c
+++ b/nss/getXXbyYY_r.c
@@ -140,5 +140,5 @@ done:
   return status == NSS_STATUS_SUCCESS ? 0 : -1;
 }
 
-#define do_weak_alias(n1, n2) weak_alias ((n1), (n2))
+#define do_weak_alias(n1, n2) weak_alias (n1, (n2))
 do_weak_alias (INTERNAL (REENTRANT_NAME), REENTRANT_NAME)
diff --git a/nss/libnss_db.map b/nss/libnss_db.map
new file mode 100644
index 0000000000..9248107747
--- /dev/null
+++ b/nss/libnss_db.map
@@ -0,0 +1,20 @@
+GLIBC_2.0 {
+  global:
+    _nss_db_endaliasent; _nss_db_endetherent; _nss_db_endgrent;
+    _nss_db_endnetgrent; _nss_db_endprotoent; _nss_db_endpwent;
+    _nss_db_endrpcent; _nss_db_endservent; _nss_db_endspent;
+    _nss_db_getaliasbyname_r; _nss_db_getaliasent_r; _nss_db_getetherent_r;
+    _nss_db_getgrent_r; _nss_db_getgrgid_r; _nss_db_getgrnam_r;
+    _nss_db_gethostton_r; _nss_db_getnetgrent_r; _nss_db_getntohost_r;
+    _nss_db_getprotobyname_r; _nss_db_getprotobynumber_r;
+    _nss_db_getprotoent_r; _nss_db_getpwent_r; _nss_db_getpwnam_r;
+    _nss_db_getpwuid_r; _nss_db_getrpcbyname_r; _nss_db_getrpcbynumber_r;
+    _nss_db_getrpcent_r; _nss_db_getservbyname_r; _nss_db_getservbyport_r;
+    _nss_db_getservent_r; _nss_db_getspent_r; _nss_db_getspnam_r;
+    _nss_db_setaliasent; _nss_db_setetherent; _nss_db_setgrent;
+    _nss_db_setnetgrent; _nss_db_setprotoent; _nss_db_setpwent;
+    _nss_db_setrpcent; _nss_db_setservent; _nss_db_setspent;
+
+  local:
+    *;
+};
\ No newline at end of file
diff --git a/nss/libnss_files.map b/nss/libnss_files.map
new file mode 100644
index 0000000000..8ec5e0ee32
--- /dev/null
+++ b/nss/libnss_files.map
@@ -0,0 +1,28 @@
+GLIBC_2.0 {
+  global:
+    _nss_files_endaliasent; _nss_files_endetherent; _nss_files_endgrent;
+    _nss_files_endhostent; _nss_files_endnetent; _nss_files_endnetgrent;
+    _nss_files_endprotoent; _nss_files_endpwent; _nss_files_endrpcent;
+    _nss_files_endservent; _nss_files_endspent; _nss_files_getaliasbyname_r;
+    _nss_files_getaliasent_r; _nss_files_getetherent_r; _nss_files_getgrent_r;
+    _nss_files_getgrgid_r; _nss_files_getgrnam_r; _nss_files_gethostbyaddr_r;
+    _nss_files_gethostbyname2_r; _nss_files_gethostbyname_r;
+    _nss_files_gethostent_r; _nss_files_gethostton_r;
+    _nss_files_getnetbyaddr_r; _nss_files_getnetbyname_r;
+    _nss_files_getnetent_r; _nss_files_getnetgrent_r; _nss_files_getntohost_r;
+    _nss_files_getprotobyname_r; _nss_files_getprotobynumber_r;
+    _nss_files_getprotoent_r; _nss_files_getpwent_r; _nss_files_getpwnam_r;
+    _nss_files_getpwuid_r; _nss_files_getrpcbyname_r;
+    _nss_files_getrpcbynumber_r; _nss_files_getrpcent_r;
+    _nss_files_getservbyname_r; _nss_files_getservbyport_r;
+    _nss_files_getservent_r; _nss_files_getspent_r; _nss_files_getspnam_r;
+    _nss_files_parse_etherent; _nss_files_parse_netent;
+    _nss_files_parse_protoent; _nss_files_parse_rpcent;
+    _nss_files_parse_servent; _nss_files_setaliasent; _nss_files_setetherent;
+    _nss_files_setgrent; _nss_files_sethostent; _nss_files_setnetent;
+    _nss_files_setnetgrent; _nss_files_setprotoent; _nss_files_setpwent;
+    _nss_files_setrpcent; _nss_files_setservent; _nss_files_setspent;
+
+  local:
+    *;
+};
\ No newline at end of file