IEEE Standards Interpretation for IEEE Std 1003.1™-1990 IEEE Standard for Information Technology--Portable Operating System Interfaces (POSIX®)
Copyright © 2001 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 #109
Topic: return type of mq_timedreceive() Relevant Sections: 184.108.40.206, Page 55, Line 72 of Draft 14 PASC
The return type of the new function mq_timedreceive() should be ssize_t, not int. This function was meant to be the functional equivalent of mq_receive() with the addition of a timeout capability. The ballot group failed to notice that the return type from the function was different from the original untimed function.
Change "int" in the synopsis line to "ssize_t".
The standards states that the return type for function mq_timedreceive() should be int, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.
The return type is inconsistent with mq_receive().
Notes to Project Editor (not part of the interpretation)
This should be fixed as in section 11. Forwarded to Interpretations group: 13 June 2000 Proposed resolution: 13 June 2000 Finalised Interpretation: 25 July 2000