WG15 Defect Report Ref: 9945-1-13
Topic: rmdir and . or ..

This is an approved interpretation of 9945-1:1990.


Last update: 1997-05-20

                                                                9945-1-90 #13
        Classification: No change required


	Topic:			rmdir and . or ..
	Relevant Sections:,

Defect Report:

    In Description [Directory Operations], page 84, line 44:
	"It is unspecified whether entries are returned for dot or dot-dot."
    In Description [Remove a Directory], page 98, lines 517-520:
	"If one or more processes have the directory open when the last link
	is removed, the dot and dot-dot entries, if present, are removed
	before rmdir() returns and no new entries may be created in the
	directory, but the directory is not removed until all references
	to the directory have been closed."
    What is the effect of removing the dot and dot-dot entries?  May
    a conforming implementation return entries for dot or dot-dot with
    the readdir() function after these entries have been removed by
    the rmdir() function?
WG15 response for ISO/IEC 9945-1:1990 (IEEE Std 1003.1-1990)

Whether or not the entries for dot and dot-dot are returned by a call to
readdir() is unspecified. After the removal of the dot and dot-dot the
return of these entries by readdir() is still unspecified. However, the
observed behaviour in these two instances may differ on an implementation.

Rationale for Interpretation:

A conforming application should not depend on the presence or absence of the
dot and dot-dot entries being returned by readdir().