Details

[Home]

Issue of the Standard # S0052

Brief

Absence of requirements on invariability of the tree structure by the calls of functions twalk() and tfind().

Detailed Description

Standard has no clear requirements that the calls of twalk() and tfind() should not change the structure of the tree.

Problem location(s) in the standard

The Open Group Base Specifications Issue 6 IEEE Std 1003.1, 2004 Edition (SUS 3.0), System Interfaces, description of functions <nobr>tsearch()</nobr>, <nobr>tdelete()</nobr>, <nobr>tfind()</nobr>, <nobr>twalk()</nobr>.

Possible solutions

It is proposed to clarify this place in the Standard and add the following: "the calls of twalk() and tfind() should not change the structure of the tree."
Otherwise, it should be explicitly said that "the calls of twalk() and tfind() may change the structure of the tree".

Accepted

POSIX aardvark,
Request Number 140

[Home]