On Tue, Jun 05, 2007 at 10:51:03PM +0200, Casper.Dik at Sun.COM wrote: > >Du you like to use strlen in the access macro? > > No, but it could easily be defined as something like: > > #define FTYPE(dent) (((char *)dent + dent->d_reclen - 1)[0]) > > (make it the last byte of the record)
The next extension of this sort would then have to resort to strlen(), so maybe the last byte or more bytes should be a length or flag so that we can add d_type now and other stuff later in this same way.
