This is the mail archive of the glibc-bugs@sourceware.org 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/18507] [wordsize-64] pathconf statvfs namespace


https://sourceware.org/bugzilla/show_bug.cgi?id=18507

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
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  d3ab671c942ba15a5b20f383ce71e387f17ae2c4 (commit)
      from  dd26c44403582fdf10d663170f947dfe4b3207a0 (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 -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=d3ab671c942ba15a5b20f383ce71e387f17ae2c4

commit d3ab671c942ba15a5b20f383ce71e387f17ae2c4
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jun 9 19:52:01 2015 +0000

    Fix pathconf statvfs namespace (bug 18507).

    pathconf uses __statvfs64, and fpathconf uses __fstatvfs64.  On
    systems using sysdeps/unix/sysv/linux/wordsize-64, __statvfs64 then
    brings in the strong symbol statvfs, and __fstatvfs64 brings in the
    strong symbol fstatvfs, which are not in all the standards that have
    pathconf and fpathconf.  This patch fixes this by making those symbols
    into weak aliases.

    Tested for x86_64 and x86 (testsuite, and that disassembly of
    installed shared libraries is unchanged by the patch).

        [BZ #18507]
        * sysdeps/unix/sysv/linux/fstatvfs.c (fstatvfs): Rename to
        __fstatvfs and define as weak alias of __fstatvfs.  Use
        libc_hidden_weak.
        * sysdeps/unix/sysv/linux/statvfs.c (statvs): Rename to __statvfs
        and define as weak alias of __statvfs.  Use libc_hidden_weak.
        * sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c (__fstatvfs64):
        Define as alias of __fstatvfs, not fstatvfs.
        (fstatvfs64): Likewise.
        * sysdeps/unix/sysv/linux/wordsize-64/statvfs.c (__statvfs64):
        Define as alias of __statvfs, not statvfs.
        (statvfs64): Likewise.
        * conform/Makefile (test-xfail-POSIX/unistd.h/linknamespace):
        Remove variable.

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                      |   17 +++++++++++++++++
 NEWS                                           |    2 +-
 conform/Makefile                               |    1 -
 sysdeps/unix/sysv/linux/fstatvfs.c             |    5 +++--
 sysdeps/unix/sysv/linux/statvfs.c              |    5 +++--
 sysdeps/unix/sysv/linux/wordsize-64/fstatvfs.c |    4 ++--
 sysdeps/unix/sysv/linux/wordsize-64/statvfs.c  |    4 ++--
 7 files changed, 28 insertions(+), 10 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]