IEEE Standards Interpretation for IEEE Std 1003.1™-2001 IEEE Standard 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 #66
Topic: sem_open errors Relevant Sections: XSH sem_open Page: 1273 Line: 39910
The function sem_open is required to return -1 and set errno to ENOSPC when "there is insufficient space for...". It is unclear whether insufficient memory problem should belong to this case, or if returning an error of ENOMEM is allowed.
Be more specific in the ENOSPC error description. For example, change the line 39910 to: [ENOSPC] There is insufficient space on a storage device for the creation of the new named semaphore. And then add a new line below: [ENOMEM] There is insufficient memory for the creation of the new named semaphore.
Interpretation Response #66
The standard does not speak to this issue, and as such no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.
Rationale for Interpretation