glibc/dirent
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
..
alphasort64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
alphasort.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
bug-readdir1.c
closedir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dirent.h Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
dirfd.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
fdopendir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getdents64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
getdents.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
list.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
opendir-tst1.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
opendir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
readdir64_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
readdir64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
readdir_r.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
readdir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
rewinddir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
scandir64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
scandir.c Fix scandir scandirat namespace (bug 17999). 2015-02-19 17:18:51 +00:00
scandirat64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
scandirat.c Fix scandir scandirat namespace (bug 17999). 2015-02-19 17:18:51 +00:00
seekdir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
telldir.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
tst-fdopendir2.c
tst-fdopendir.c Fix dirent/tst-fdopendir not to presume O_NOATIME exists. 2015-02-06 12:23:35 -08:00
tst-seekdir.c
Versions
versionsort64.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00
versionsort.c Update copyright dates with scripts/update-copyrights. 2015-01-02 16:29:47 +00:00