Bug 5607 - netdb.h should not declare herror and hstrerror by default
Summary: netdb.h should not declare herror and hstrerror by default
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.4
: P2 minor
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-13 22:38 UTC by Bruno Haible
Modified: 2014-07-02 07:50 UTC (History)
1 user (show)

See Also:
Host: i586-suse-linux
Target: i586-suse-linux
Build: i586-suse-linux
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bruno Haible 2008-01-13 22:38:01 UTC
POSIX:2001 does not specify the function herror and hstrerror in <netdb.h>,
see http://www.opengroup.org/susv3/basedefs/netdb.h.html

Therefore IMO their declaration in glibc's <netdb.h> should be enclosed in
#if __USE_GNU
or a similar conditional (maybe __USE_BSD or __USE_MISC?).
Comment 1 Ulrich Drepper 2008-01-16 10:11:47 UTC
Fixed with along other issues in cvs.