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/20054] gethostname not declared for XPG4


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

--- 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  612fe4327577f9afaf6f45b400a737683eef9d0c (commit)
      from  ca927ec4c23f47b559e8e2d493caaad9c13092f6 (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=612fe4327577f9afaf6f45b400a737683eef9d0c

commit 612fe4327577f9afaf6f45b400a737683eef9d0c
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Thu May 12 16:50:43 2016 +0000

    Declare gethostname for XPG4 (bug 20054).

    unistd.h declares gethostname for __USE_UNIX98 || __USE_XOPEN2K.  But
    it's also in XPG4 (XNS volume - C438 - not the main definitions of
    system interfaces and headers in C435).  This patch corrects the
    condition.

    Tested for x86_64 and x86 (testsuite, and that installed stripped
    shared libraries are unchanged by the patch).

        [BZ #20054]
        * posix/unistd.h (gethostname): Declare if [__USE_XOPEN_EXTENDED],
        not [__USE_UNIX98].
        * conform/data/unistd.h-data (gethostname): Do not expect for
        [XPG3].

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

Summary of changes:
 ChangeLog                  |    6 ++++++
 conform/data/unistd.h-data |    2 +-
 posix/unistd.h             |    2 +-
 3 files changed, 8 insertions(+), 2 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]