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 #102
Topic: posix_madvise Relevant Sections: 2.7.3 PASC
1003.1d, Section 2.7.3 clearly states that posix_madvise() is to be declared in <fcntl.h>, and no mention in that section is made of <sys/mman.h>.Yet in 184.108.40.206, the Synopsis states that the function is declared in <sys/mman.h>.
change <fcntl.h> to <sys/mman.h>
The standard is unclear on this issue, and no conformance distinction can be made between alternative implementations based on this. This is being referred to the sponsor.
Rationale for Interpretation
This is an ambiguity in the 1003.1d standard as approved and interpretations must favor the looser conformance requirement, in this case allowing either header.
Notes to Project Editor(not part of this interpretation)
The entry for posix_madvise() in the <fcntl.h> header (clause 2.7.3) is in error. posix_madvise() should be included in <sys/mman.h> and not <fcntl.h>, please correct in the revision. Forwarded to Interpretations group: 21 May 2000 Proposed resolution: 28 May 2000 Finalised Interpretation: 25 July 2000