2002-08-09 Jakub Jelinek <jakub@redhat.com>
authorroland <roland>
Sat, 10 Aug 2002 07:54:21 +0000 (07:54 +0000)
committerroland <roland>
Sat, 10 Aug 2002 07:54:21 +0000 (07:54 +0000)
* include/grp.h (_nss_files_parse_grent): Add libc_hidden_proto.
* include/netinet/ether.h (_nss_files_parse_etherent): Likewise.
* include/rpc/netdb.h (_nss_files_parse_rpcent): Likewise.
* include/pwd.h (_nss_files_parse_pwent): Likewise.
* include/shadow.h (_nss_files_parse_spent): Likewise.
* include/netdb.h (_nss_files_parse_protoent,
_nss_files_parse_servent, _nss_files_parse_netent): Likewise.
* nss/nss_files/files-parse.c (nss_files_parse_hidden_def): Define.
(LINE_PARSER): Use it.
* nss/nsswitch.h (__nss_hostname_digits_dots): Add libc_hidden_proto.
* nss/digits_dots.c (__nss_hostname_digits_dots): Add libc_hidden_def.

include/grp.h
include/netdb.h
include/netinet/ether.h
include/pwd.h
include/rpc/netdb.h
include/shadow.h
nss/digits_dots.c
nss/nss_files/files-parse.c
nss/nsswitch.h

index 984483b..4469d78 100644 (file)
@@ -31,6 +31,7 @@ struct parser_data;
 extern int _nss_files_parse_grent (char *line, struct group *result,
                                   struct parser_data *data,
                                   size_t datalen, int *errnop);
+libc_hidden_proto (_nss_files_parse_grent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                           \
 extern enum nss_status _nss_ ## service ## _setgrent (int);               \
index 9b1a1ab..3f3fc18 100644 (file)
@@ -199,7 +199,9 @@ extern enum nss_status _nss_netgroup_parseline (char **cursor,
                                                struct __netgrent *result,
                                                char *buffer, size_t buflen,
                                                int *errnop);
-
+libc_hidden_proto (_nss_files_parse_protoent)
+libc_hidden_proto (_nss_files_parse_servent)
+libc_hidden_proto (_nss_files_parse_netent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                              \
 extern enum nss_status _nss_ ## service ## _setprotoent (int);               \
index bf01654..2a9efae 100644 (file)
@@ -17,6 +17,7 @@ struct parser_data;
 extern int _nss_files_parse_etherent (char *line, struct etherent *result,
                                      struct parser_data *data,
                                      size_t datalen, int *errnop);
+libc_hidden_proto (_nss_files_parse_etherent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                              \
 extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen);     \
index 374f02a..ef9b61a 100644 (file)
@@ -29,6 +29,7 @@ struct parser_data;
 extern int _nss_files_parse_pwent (char *line, struct passwd *result,
                                   struct parser_data *data,
                                   size_t datalen, int *errnop);
+libc_hidden_proto (_nss_files_parse_pwent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                        \
 extern enum nss_status _nss_ ## service ## _setpwent (int);            \
index 71c4a09..ad7cff1 100644 (file)
@@ -26,6 +26,7 @@ struct parser_data;
 extern int _nss_files_parse_rpcent (char *line, struct rpcent *result,
                                    struct parser_data *data,
                                    size_t datalen, int *errnop);
+libc_hidden_proto (_nss_files_parse_rpcent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                              \
 extern enum nss_status _nss_ ## service ## _setrpcent (int);                 \
index 3891d79..166f684 100644 (file)
@@ -26,6 +26,7 @@ struct parser_data;
 extern int _nss_files_parse_spent (char *line, struct spwd *result,
                                   struct parser_data *data,
                                   size_t datalen, int *errnop);
+libc_hidden_proto (_nss_files_parse_spent)
 
 #define DECLARE_NSS_PROTOTYPES(service)                                        \
 extern enum nss_status _nss_ ## service ## _setspent (int);            \
index 7321ec0..4dc897c 100644 (file)
@@ -354,3 +354,4 @@ __nss_hostname_digits_dots (const char *name, struct hostent *resbuf,
 done:
   return 1;
 }
+libc_hidden_def (__nss_hostname_digits_dots)
index 4e0fffa..739ee54 100644 (file)
@@ -68,10 +68,12 @@ struct parser_data
 /* The function can't be exported, because the entdata structure
    is defined only in files-foo.c.  */
 # define parser_stclass static inline
+# define nss_files_parse_hidden_def(name)
 #else
 /* Export the line parser function so it can be used in nss_db.  */
 # define parser_stclass /* Global */
 # define parse_line CONCAT(_nss_files_parse_,ENTNAME)
+# define nss_files_parse_hidden_def(name) libc_hidden_def (name)
 #endif
 
 
@@ -101,7 +103,8 @@ parse_line (char *line, struct STRUCTURE *result,                         \
   BODY;                                                                              \
   TRAILING_LIST_PARSER;                                                              \
   return 1;                                                                  \
-}
+}                                                                            \
+nss_files_parse_hidden_def (parse_line)
 
 
 # define STRING_FIELD(variable, terminator_p, swallow)                       \
index c4d0aa6..b5e4fc3 100644 (file)
@@ -168,5 +168,6 @@ extern int __nss_hostname_digits_dots (const char *name,
                                       struct hostent **result,
                                       enum nss_status *status, int *typep,
                                       int flags, int *afp, int *h_errnop);
+libc_hidden_proto (__nss_hostname_digits_dots)
 
 #endif /* nsswitch.h */