DragonFly bugs List (threaded) for 2007-11
DragonFly BSD
DragonFly bugs List (threaded) for 2007-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: Missing MAXNAMLEN?


From: walt <wa1ter@xxxxxxxxxxxxx>
Date: Mon, 19 Nov 2007 11:42:31 -0800

Joerg Sonnenberger wrote:
On Mon, Nov 19, 2007 at 06:36:06AM -0800, walt wrote:
FreeBSD, NetBSD, linux all define MAXNAMLEN in dirent.h, but not DFly.
Is this an oversight or deliberate?

Deliberate. It doesn't make any sense and PATH_MAX or NAME_MAX should be used instead. MAXNAMLEN is the historic limitation of FFS, for the archive.

Yes, I see now. This is how linux works around it:


#  ifdef NAME_MAX
#   define MAXNAMLEN    NAME_MAX
#  else
#   define MAXNAMLEN    255
#  endif
# endif




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]