On Fri, Jan 20, 2012 at 02:33:29PM +0000, Edd Barrett wrote: > On Fri, Jan 20, 2012 at 02:34:51PM +0100, Tobias Ulmer wrote: > > - "builds an array of pointers to variable-size directory entries using > > malloc(3)" > > ^ Something like this could work. Perhaps also a note that we do this because > POSIX says so.
Nope, no note. Everybody does that. The way directories work was already set 20 years ago. The only real change POSIX did was standardize the function and struct names, instead of reading directly from the fd into a struct direct.