struct dirent question

M. Warner Losh imp at bsdimp.com
Sat Aug 19 20:51:55 UTC 2006


In message: <44E3A221.1070905 at ywave.com>
            Micah <micahjon at ywave.com> writes:
: #define MAXNAMLEN 255
:          char    d_name[MAXNAMLEN + 1];  /* name must be no longer than 
: this */
: #if !__BSD_VISIBLE
: #undef MAXNAMLEN
: #endif
: };
: I'm not sure if it's more readable, but it puts 255 in only one location.

And if I defined MAXNAMLEN before I included this file?  You can't do
it that way :-(

Warner


More information about the freebsd-hackers mailing list