Joerg Schilling writes: > Casper.Dik at sun.com wrote: > > This would not be noticable as the name is NUL terminated and we > > control all the getdents return paths in the kernel. > > > > For the readdir() call it gets trickier but still not impossible. > > Du you like to use strlen in the access macro?
I'm not sure what "like to" means here (nobody actually likes to examine bytes, do they?), but it seems to me that 'd_reclen - sizeof (uint_t)' would be a handy way to access flags hidden at the end of the record, and without doing strlen(). In any event, psarc-ext is likely not the right mailing list on which to design such an extension. -- James Carlson, Solaris Networking <james.d.carlson at sun.com> Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084 MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
