aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-10-24 21:29:41 +0000
committerUlrich Drepper <drepper@redhat.com>2004-10-24 21:29:41 +0000
commitb31b32b3aa92bfe3184eece0ef108181de52f06c (patch)
tree52df05a4526a0ccfa5c41d37a1b922964bfbd22e
parent7440c23e03fac030ec163f331c1084e6bcf0c8c1 (diff)
downloadglibc-b31b32b3aa92bfe3184eece0ef108181de52f06c.zip
glibc-b31b32b3aa92bfe3184eece0ef108181de52f06c.tar.gz
glibc-b31b32b3aa92bfe3184eece0ef108181de52f06c.tar.bz2
Update.
* include/libc-symbols.h: Define hidden attribute macros for libnss_nisplus and libutil. * include/utmp.h: Add libutil_hidden_proto for login_tty. * login/login_tty.c: Add libutil_hidden_def. * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers. * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def. * include/pty.h: New file. * include/rpcsvc/yp.h: New file. * include/rpcsvc/ypclnt.h: New file. * include/rpcsvc/ypupd.h: New file.
-rw-r--r--ChangeLog11
-rw-r--r--include/libc-symbols.h36
-rw-r--r--include/pty.h6
-rw-r--r--include/rpcsvc/yp.h18
-rw-r--r--include/rpcsvc/ypclnt.h10
-rw-r--r--include/rpcsvc/ypupd.h6
-rw-r--r--include/utmp.h3
-rw-r--r--login/login_tty.c1
-rw-r--r--nis/nisplus-parser.h6
-rw-r--r--nis/nss_nisplus/nisplus-parser.c5
10 files changed, 100 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 510db64..a9427a3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
2004-10-24 Ulrich Drepper <drepper@redhat.com>
+ * include/libc-symbols.h: Define hidden attribute macros for
+ libnss_nisplus and libutil.
+ * include/utmp.h: Add libutil_hidden_proto for login_tty.
+ * login/login_tty.c: Add libutil_hidden_def.
+ * nis/nisplus-parser.h: Add libnss_nisplus_hidden_proto for parsers.
+ * nis/nss_nisplus/nisplus-parser.c: Add libnss_nisplus_hidden_def.
+ * include/pty.h: New file.
+ * include/rpcsvc/yp.h: New file.
+ * include/rpcsvc/ypclnt.h: New file.
+ * include/rpcsvc/ypupd.h: New file.
+
* include/libc-symbols.h: Define hidden attribute macros for libnsl.
* include/rpcsvc/nislib.h: Use libnsl_hidden_proto for various
functions.
diff --git a/include/libc-symbols.h b/include/libc-symbols.h
index fe66811..dcc46cc 100644
--- a/include/libc-symbols.h
+++ b/include/libc-symbols.h
@@ -816,6 +816,24 @@ for linking")
# define libnsl_hidden_data_ver(local, name)
#endif
+#if defined NOT_IN_libc && defined IS_IN_libnss_nisplus
+# define libnss_nisplus_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
+# define libnss_nisplus_hidden_def(name) hidden_def (name)
+# define libnss_nisplus_hidden_weak(name) hidden_weak (name)
+# define libnss_nisplus_hidden_ver(local, name) hidden_ver (local, name)
+# define libnss_nisplus_hidden_data_def(name) hidden_data_def (name)
+# define libnss_nisplus_hidden_data_weak(name) hidden_data_weak (name)
+# define libnss_nisplus_hidden_data_ver(local, name) hidden_data_ver (local, name)
+#else
+# define libnss_nisplus_hidden_proto(name, attrs...)
+# define libnss_nisplus_hidden_def(name)
+# define libnss_nisplus_hidden_weak(name)
+# define libnss_nisplus_hidden_ver(local, name)
+# define libnss_nisplus_hidden_data_def(name)
+# define libnss_nisplus_hidden_data_weak(name)
+# define libnss_nisplus_hidden_data_ver(local, name)
+#endif
+
#ifdef HAVE_BUILTIN_REDIRECTION
# define libc_hidden_builtin_proto(name, attrs...) libc_hidden_proto (name, ##attrs)
# define libc_hidden_builtin_def(name) libc_hidden_def (name)
@@ -834,6 +852,24 @@ for linking")
# endif
#endif
+#if defined NOT_IN_libc && defined IS_IN_libutil
+# define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
+# define libutil_hidden_def(name) hidden_def (name)
+# define libutil_hidden_weak(name) hidden_weak (name)
+# define libutil_hidden_ver(local, name) hidden_ver (local, name)
+# define libutil_hidden_data_def(name) hidden_data_def (name)
+# define libutil_hidden_data_weak(name) hidden_data_weak (name)
+# define libutil_hidden_data_ver(local, name) hidden_data_ver (local, name)
+#else
+# define libutil_hidden_proto(name, attrs...)
+# define libutil_hidden_def(name)
+# define libutil_hidden_weak(name)
+# define libutil_hidden_ver(local, name)
+# define libutil_hidden_data_def(name)
+# define libutil_hidden_data_weak(name)
+# define libutil_hidden_data_ver(local, name)
+#endif
+
/* Get some dirty hacks. */
#include <symbol-hacks.h>
diff --git a/include/pty.h b/include/pty.h
new file mode 100644
index 0000000..a91be80
--- /dev/null
+++ b/include/pty.h
@@ -0,0 +1,6 @@
+#ifndef _PTY_H
+#include <login/pty.h>
+
+libutil_hidden_proto (openpty)
+
+#endif
diff --git a/include/rpcsvc/yp.h b/include/rpcsvc/yp.h
new file mode 100644
index 0000000..cc4e00f
--- /dev/null
+++ b/include/rpcsvc/yp.h
@@ -0,0 +1,18 @@
+#ifndef __RPCSVC_YP_H__
+#include <nis/rpcsvc/yp.h>
+
+libnsl_hidden_proto (xdr_ypstat)
+libnsl_hidden_proto (xdr_ypxfrstat)
+libnsl_hidden_proto (xdr_domainname)
+libnsl_hidden_proto (xdr_mapname)
+libnsl_hidden_proto (xdr_peername)
+libnsl_hidden_proto (xdr_keydat)
+libnsl_hidden_proto (xdr_valdat)
+libnsl_hidden_proto (xdr_ypmap_parms)
+libnsl_hidden_proto (xdr_ypresp_key_val)
+libnsl_hidden_proto (xdr_ypresp_all)
+libnsl_hidden_proto (xdr_yppush_status)
+libnsl_hidden_proto (xdr_ypbind_resptype)
+libnsl_hidden_proto (xdr_ypbind_binding)
+
+#endif
diff --git a/include/rpcsvc/ypclnt.h b/include/rpcsvc/ypclnt.h
new file mode 100644
index 0000000..b38dc6b
--- /dev/null
+++ b/include/rpcsvc/ypclnt.h
@@ -0,0 +1,10 @@
+#ifndef __RPCSVC_YPCLNT_H__
+#include <nis/rpcsvc/ypclnt.h>
+
+libnsl_hidden_proto (ypbinderr_string)
+libnsl_hidden_proto (yp_bind)
+libnsl_hidden_proto (yp_get_default_domain)
+libnsl_hidden_proto (ypprot_err)
+libnsl_hidden_proto (yp_master)
+
+#endif
diff --git a/include/rpcsvc/ypupd.h b/include/rpcsvc/ypupd.h
new file mode 100644
index 0000000..68116e6
--- /dev/null
+++ b/include/rpcsvc/ypupd.h
@@ -0,0 +1,6 @@
+#ifndef __RPCSVC_YPUPD_H__
+#include <nis/rpcsvc/ypupd.h>
+
+libnsl_hidden_proto (xdr_yp_buf)
+
+#endif
diff --git a/include/utmp.h b/include/utmp.h
index 54f41ba..3a35c59 100644
--- a/include/utmp.h
+++ b/include/utmp.h
@@ -16,4 +16,7 @@ extern int __getutid_r (__const struct utmp *__id, struct utmp *__buffer,
struct utmp **__result);
extern int __getutline_r (__const struct utmp *__line,
struct utmp *__buffer, struct utmp **__result);
+
+libutil_hidden_proto (login_tty)
+
#endif
diff --git a/login/login_tty.c b/login/login_tty.c
index 3cf6f1e..1bb1703 100644
--- a/login/login_tty.c
+++ b/login/login_tty.c
@@ -70,3 +70,4 @@ login_tty(fd)
(void) close(fd);
return (0);
}
+libutil_hidden_def (login_tty)
diff --git a/nis/nisplus-parser.h b/nis/nisplus-parser.h
index 69b4faa..f4b8d49 100644
--- a/nis/nisplus-parser.h
+++ b/nis/nisplus-parser.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
@@ -31,4 +31,8 @@ extern int _nss_nisplus_parse_grent (nis_result *, u_long, struct group *,
extern int _nss_nisplus_parse_spent (nis_result *, struct spwd *,
char *, size_t, int *);
+libnss_nisplus_hidden_proto (_nss_nisplus_parse_pwent)
+libnss_nisplus_hidden_proto (_nss_nisplus_parse_grent)
+libnss_nisplus_hidden_proto (_nss_nisplus_parse_spent)
+
#endif
diff --git a/nis/nss_nisplus/nisplus-parser.c b/nis/nss_nisplus/nisplus-parser.c
index f160338..b61733a 100644
--- a/nis/nss_nisplus/nisplus-parser.c
+++ b/nis/nss_nisplus/nisplus-parser.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
@@ -141,6 +141,7 @@ _nss_nisplus_parse_pwent (nis_result *result, struct passwd *pw,
return 1;
}
+libnss_nisplus_hidden_def (_nss_nisplus_parse_pwent)
int
_nss_nisplus_parse_grent (nis_result *result, u_long entry, struct group *gr,
@@ -257,6 +258,7 @@ _nss_nisplus_parse_grent (nis_result *result, u_long entry, struct group *gr,
return 1;
}
+libnss_nisplus_hidden_def (_nss_nisplus_parse_grent)
int
_nss_nisplus_parse_spent (nis_result *result, struct spwd *sp,
@@ -371,3 +373,4 @@ _nss_nisplus_parse_spent (nis_result *result, struct spwd *sp,
return 1;
}
+libnss_nisplus_hidden_def (_nss_nisplus_parse_spent)