Joseph Myers 40176158f1 Fix scandir scandirat namespace (bug 17999).
The POSIX function scandir calls scandirat, which is not a POSIX
function.  This patch fixes this by making it use __scandirat and
making scandirat a weak alias.  There are no changes for scandir64 /
scandirat64 because those are both _GNU_SOURCE-only functions so no
namespace issue arises for them.

Tested for x86_64 that the disassembly of installed shared libraries
is unchanged by this patch.

	[BZ #17999]
	* dirent/scandir.c [!SCANDIR] (SCANDIRAT): Define to __scandirat
	instead of scandirat.
	* dirent/scandirat.c [!SCANDIRAT] (SCANDIRAT): Likewise.
	[!SCANDIRAT] (SCANDIRAT_WEAK_ALIAS): Define.
	[SCANDIRAT_WEAK_ALIAS] (scandirat): Define as weak alias of
	__scandirat.
	* include/dirent.h (scandirat): Do not use libc_hidden_proto.
	(__scandirat): Declare.  Use libc_hidden_proto.
	* conform/Makefile (test-xfail-POSIX2008/dirent.h/linknamespace):
	Remove variable.
	(test-xfail-XOPEN2K8/dirent.h/linknamespace): Likewise.
2015-02-19 17:18:51 +00:00
..
2012-01-07 23:57:22 -05:00
2012-05-24 23:08:18 +02:00
2014-11-24 15:03:45 +05:30
2013-09-04 20:47:21 +00:00
2014-11-24 15:03:45 +05:30
2012-11-21 06:33:19 -08:00
2014-11-24 15:03:45 +05:30
2012-01-07 23:57:22 -05:00
2014-10-30 19:44:31 +00:00
2009-04-23 18:29:30 +00:00
2014-11-24 11:41:44 +05:30
2012-05-24 23:08:18 +02:00
2012-05-24 23:06:20 +02:00
2014-11-24 15:03:45 +05:30
2012-05-31 13:10:02 +02:00
2014-11-24 15:24:34 +05:30
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2015-02-18 18:47:34 +00:00
2012-01-07 23:57:22 -05:00
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2014-11-24 15:03:45 +05:30
2012-01-07 23:57:22 -05:00
2014-11-24 15:03:45 +05:30