Re: [Full-disclosure] Re: readdir_r considered harmful

2005-11-07 Thread Ulrich Drepper
On 11/6/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I don't see how that is relevant; the typical use of readdir() is as follows: > > DIR *dirp = opendir(name); > > while ((dent = readdir(dirp)) != NULL) { > ... > } > > closedir(dirp); > > Noth

Re: [Full-disclosure] Re: readdir_r considered harmful

2005-11-07 Thread Ulrich Drepper
On 11/5/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Why not: > > 4. Require the readdir() implementation to use state local to dirp. > > I've never understood the rationale behind readdir_r; Then you never really understood the implementation, seems. Of course all implementations keep the