Re: struct dirent question

[ Available lists | Index of freebsd-hackers | Month of Aug 2006 | Week of 19 Aug 2006 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
M. Warner Losh <imp@bsdimp.com>
Date
19 Aug 2006 20:51:55
Subject
Re: struct dirent question
Message-ID
20060819.145027.-1573946361.imp@bsdimp.com

In reply to
References to
Replies
Referenced by

[ Hide this part ]
In message: <44E3A221.1070905@ywave.com>
Micah <micahjon@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


Elapsed time: 0.098 seconds