IEEE Standards Interpretations for IEEE Std 1003.1™-2001 IEEE Standard for Information Technology - Portable Operating System Interface (POSIX®)
Copyright © 2006 by the Institute of Electrical and Electronics Engineers, Inc. 3 Park Avenue New York, New York 10016-5997 USA All Rights Reserved.
Interpretations are issued to explain and clarify the intent of a standard and do not constitute an alteration to the original standard. In addition, interpretations are not intended to supply consulting information. Permission is hereby granted to download and print one copy of this document. Individuals seeking permission to reproduce and/or distribute this document in its entirety or portions of this document must contact the IEEE Standards Department for the appropriate license. Use of the information contained in this document is at your own risk.
IEEE Standards Department Copyrights and Permissions 445 Hoes Lane, Piscataway, New Jersey 08855-1331, USA
Interpretation Request #13
Topic: Defect in XSH getaddrinfo Relevant Sections: EAI_OVERFLOW
EAI_OVERFLOW is specified as a possible error value for the getaddrinfo() function on lines 13994-13995: 13994 [EAI_OVERFLOW] 13995 An argument buffer overflowed. The EAI_OVERFLOW error code was created to provide a meaningful error code for the getnameinfo() function, for the case where the buffers provided by the caller were too small. The EAI_OVERFLOW error code is not applicable to getaddrinfo(), which has no buffer arguments to overflow. EAI_OVERFLOW was mistakenly added to the getaddrinfo() page rather than the getnameinfo() page. Another aardvark has already been approved for TC1 to add EAI_OVERFLOW to getnameinfo(). Delete lines 13994-13995.
The standard states that EAI_OVERFLOW is a possible error and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.
Rationale for Interpretation