|
From: | Elizabeth Zwicky |
Subject: | Re: Changes to the filesystem while find is running - comments? |
Date: | Thu, 25 Nov 2004 10:06:29 -0800 |
On Nov 24, 2004, at 4:15 AM, James Youngman wrote:
PATH_MAX is not a limit on the depth of a directory hierarchy; standard versions of UNIX have no such limits. PATH_MAX limits the length of a path passed to the kernel in a single call, but that can be a relative path. Many programsOn Wed, Nov 24, 2004 at 08:51:38AM +0100, address@hidden wrote:But PATH_MAX is limited and the number of file descriptors is perhaps not.Systems differ. Some have no limits on the depth of a directory hierarchy. Certainly I've created directory hierarchies of over 800,000 levels on HP-UX 9 and on Linux. GNU Hurd has no limits at all (and therefore used not to #define PATH_MAX at all).
limit the lengths of the path they will deal with to PATH_MAX, but ingeneral this is only a way of simplifying the problem; you could write the program to use relative paths and ignore PATH_MAX. PATH_MAX is relevant here only
because the standard allows you to give up there. Elizabeth Zwicky address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |