Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2006 14:50:27 -0600 (MDT)
From:      "M. Warner Losh" <imp@bsdimp.com>
To:        micahjon@ywave.com
Cc:        freebsd-hackers@freebsd.org, anthony.maher@uts.edu.au
Subject:   Re: struct dirent question
Message-ID:  <20060819.145027.-1573946361.imp@bsdimp.com>
In-Reply-To: <44E3A221.1070905@ywave.com>
References:  <44E3484D.8090905@centtech.com> <44E39DEC.1050204@uts.edu.au> <44E3A221.1070905@ywave.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060819.145027.-1573946361.imp>