Defect Report concerning: IEEE Std. 1003.1-1996, ISO/IEC 9945-1:1996 - C API
Clause: 5.5.3.2
PASC Interpretation Ref: pasc-1003.1-12
Topic: rename() impact on .. ctime


This is an unapproved interpretation of PASC 1003.1-1996, ISO/IEC 9945-1:1996 - C API.

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

Last update: 10 April,2001


                                                                1003.1-90 #12
        Classification: No change required

This response will be incorporated in an IEEE interpretations
publication, and will be also made available on-line on the IEEE 
SPAsystem.

 _____________________________________________________________________________


	Interpretation Number:	XXXX
	Topic:			rename() impact on .. ctime
	Relevant Sections:	5.5.3.2


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

    In 5.5.3.2 Description [Rename a File], page 100, lines 584-585:
 
	"Upon successful completion, the rename() function shall mark for
	update the st_ctime and st_mtime fields of the parent directory
	of each file."
 
    If a directory containing an entry for dot-dot is renamed, is a
    conforming implementation required to mark for update the st_ctime and
    st_mtime fields of the renamed directory?
 
IEEE Interpretation for 1003.1-1990 (9945-1:1990):
--------------------------------------------------

It is unspecified whether the time fields of the directory are updated.

Rationale for Interpretation:
-----------------------------

It is only the parent(s) of "old" and "new" which are required to be marked
for update. It is unspecified whether the directory entry for dot-dot is
considered to be file data and, as such, it is unspecified whether it is
implementation-defined or unspecified that the time fields of the directory
are updated. A better understanding can be obtained by reading
POSIX.1-1990 subclause 2.3.5.

 _____________________________________________________________________________