Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2004-10-24  Ulrich Drepper  <drepper@redhat.com>

	* include/libc-symbols.h: Define hidden attribute macros for
	libnss_files.
	* include/netdb.h: Use libnss_files_hidden_proto for the parsers
	defined in libnss_files, not libc_hidden_proto.
	* include/netinet/ether.h: Likewise.
	* include/rpc/netdb.h: Likewise.
	* nss/nss_files/files-parse.c: Use hidden_def in parser definitions
	instead of libc_hidden_def.
	* nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
	_nss_netgroup_parseline definition.
  • Loading branch information
Ulrich Drepper committed Oct 24, 2004
1 parent 44843ee commit 8cf2663
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 7 deletions.
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2004-10-24 Ulrich Drepper <drepper@redhat.com>

* include/libc-symbols.h: Define hidden attribute macros for
libnss_files.
* include/netdb.h: Use libnss_files_hidden_proto for the parsers
defined in libnss_files, not libc_hidden_proto.
* include/netinet/ether.h: Likewise.
* include/rpc/netdb.h: Likewise.
* nss/nss_files/files-parse.c: Use hidden_def in parser definitions
instead of libc_hidden_def.
* nss/nss_files/files-netgrp.c: Add libnss_files_hidden_def to
_nss_netgroup_parseline definition.

2004-10-23 Roland McGrath <roland@frob.com>

* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Don't return early
Expand Down
7 changes: 4 additions & 3 deletions include/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,10 @@ 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)
libnss_files_hidden_proto (_nss_files_parse_protoent)
libnss_files_hidden_proto (_nss_files_parse_servent)
libnss_files_hidden_proto (_nss_files_parse_netent)
libnss_files_hidden_proto (_nss_netgroup_parseline)

#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setprotoent (int); \
Expand Down
2 changes: 1 addition & 1 deletion include/netinet/ether.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +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)
libnss_files_hidden_proto (_nss_files_parse_etherent)

#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setetherent (int __stayopen); \
Expand Down
2 changes: 1 addition & 1 deletion include/rpc/netdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +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)
libnss_files_hidden_proto (_nss_files_parse_rpcent)

#define DECLARE_NSS_PROTOTYPES(service) \
extern enum nss_status _nss_ ## service ## _setrpcent (int); \
Expand Down
1 change: 1 addition & 0 deletions nss/nss_files/files-netgrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ _nss_netgroup_parseline (char **cursor, struct __netgrent *result,

return status;
}
libnss_files_hidden_def (_nss_netgroup_parseline)


enum nss_status
Expand Down
4 changes: 2 additions & 2 deletions nss/nss_files/files-parse.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* Common code for file-based database parsers in nss_files module.
Copyright (C) 1996-2000, 2003 Free Software Foundation, Inc.
Copyright (C) 1996-2000, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -73,7 +73,7 @@ struct parser_data
/* 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)
# define nss_files_parse_hidden_def(name) hidden_def (name)
#endif


Expand Down

0 comments on commit 8cf2663

Please sign in to comment.