[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] Monotone 0.16 bug with filesystems
From: |
Florian Weimer |
Subject: |
Re: [Monotone-devel] Monotone 0.16 bug with filesystems |
Date: |
Fri, 07 Jan 2005 11:15:08 +0100 |
* Jon Bright:
> 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?
Ah, I was wrong. _POSIX_PATH_MAX is the minimal value of PATH_MAX
(and its pathconf equivalent).
> 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.
> ----------------
This advice is quite reasonable.