Defect Report concerning: IEEE Std. 1003.1d-1999
Clause: 2.7.3
PASC Interpretation Ref: pasc-1003.1-102
Topic: posix_madvise


This is an unapproved interpretation of PASC 1003.1d-1999.

Use of the information contained in this unapproved document is at your own risk.

Last update: 10 April,2001


								1003.1d-99  #102

 _____________________________________________________________________________

	Interpretation Number:	XXXX
	Topic:			posix_madvise
	Relevant Sections:	2.7.3





PASC Interpretation Request: (Defect Report)
----------------------------  

	Date: 2000 May 18

Address details:


------------------------------------------------------------------------ 

 7  Defect Report concerning (number and title of International Standard
    or DIS final text, if applicable): 

Advanced Realtime Extensions: IEEE Std 1003.1d-1999

------------------------------------------------------------------------ 

 8  Qualifier (e.g. error, omission, clarification required):

1

Error=1 , Omission=2, Clarification=3

------------------------------------------------------------------------ 

 9  References in document (e.g. page, clause, figure, and/or table
    numbers):

2.7.3

------------------------------------------------------------------------ 

10  Nature of defect (complete, concise explanation of the perceived
    problem):


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 20.2.1.1, the Synopsis states that the 
function is declared in <sys/mman.h>. 



------------------------------------------------------------------------ 

11  Solution proposed by the submitter (optional):

change <fcntl.h> to  <sys/mman.h> 


------------------------------------------------------------------------ 




Interpretation response
------------------------
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
-------------
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