This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/17999] scandir scandirat namespace

--- Comment #1 from cvs-commit at gcc dot <cvs-commit at gcc dot> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  40176158f1bfcf4fd1621169221c1aa8f0c3c300 (commit)
      from  4629c866ad79167d60ca9bf263d871eabb59d3d9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;h=40176158f1bfcf4fd1621169221c1aa8f0c3c300

commit 40176158f1bfcf4fd1621169221c1aa8f0c3c300
Author: Joseph Myers <>
Date:   Thu Feb 19 17:18:51 2015 +0000

    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_WEAK_ALIAS] (scandirat): Define as weak alias of
        * 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.


Summary of changes:
 ChangeLog          |   15 +++++++++++++++
 NEWS               |    2 +-
 conform/Makefile   |    2 --
 dirent/scandir.c   |    2 +-
 dirent/scandirat.c |    6 +++++-
 include/dirent.h   |    3 ++-
 6 files changed, 24 insertions(+), 6 deletions(-)

You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]