For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > June 2007 > Re: PATH_MAX









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: PATH_MAX
Henry Townsend

2007-06-24, 7:07 pm

Casper H.S. Dik wrote:
> phil-news-nospam@ipal.net writes:
>
>
> PATH_MAX is the maximum size of a pathname argument to a system call;
> most POSIX systems allow a virtually unlimited pathname depth.
>
> (For testing "rm -rf" we routinely use directory tree depths of 10K or 20K
> with a pathname length of possible 5MB for Solaris; PATH_MAX is only 1K


Is this what your family of *at() (e.g. openat()) functions are for?
I've been wondering for a while now.

HT
Casper H.S. Dik

2007-06-24, 7:07 pm

Henry Townsend <henry.townsend@not.here> writes:

>Casper H.S. Dik wrote:
[color=darkred]
>Is this what your family of *at() (e.g. openat()) functions are for?
>I've been wondering for a while now.


It's in part what they are used for. Solaris 10 rm still uses chdir();
but the latest rm uses *at() functions.

But the original motivation for the *at() functions was for accessing files
in attribute directories.

Casper
--
Expressed in this posting are my opinions. They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com