monotone-devel
[Top][All Lists]
Advanced

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

Re: [Monotone-devel] Monotone 0.16 bug with filesystems


From: Jon Bright
Subject: Re: [Monotone-devel] Monotone 0.16 bug with filesystems
Date: Fri, 07 Jan 2005 11:10:21 +0100
User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)

Florian Weimer wrote:

If the limit does not exisit, _POSIX_PATH_MAX is probably undefined,
too.  POSIX does not require an upper bound on the path length.

Does it also not require _POSIX_PATH_MAX to be defined? If not, I guess some default value could be taken - 1024 or so. The macros are supposed to be conservative, so I'd have guessed that even where there's no limit, the macro would still be defined. But if there's no limit and no macro, taking an arbitrary limit seems like a better plan than throwing an exception. That said, I've not looked at the boost code to see what it's doing with path_max - if it's assuming that this is the most memory it needs for all file names in the directory, it's broken anyway:

----------------
NOTES
        Files  with  name  lengths  longer than the value returned for
        name equal to _PC_NAME_MAX may exist in the given directory.

        Some returned values may be huge; they are not suitable for
        allocating memory.
----------------

--
Jon Bright
Silicon Circus Ltd.
http://www.siliconcircus.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]