|
Home > Archive > Linux Debian support > October 2004 > long file names
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]
|
|
| hjmler 2004-10-06, 5:45 pm |
| is there a limit on how long file names can be under linux ?
| |
| Neil Woods 2004-10-06, 5:45 pm |
| "hjmler" <hjmler@charter.net> writes:
> is there a limit on how long file names can be under linux ?
4096 characters, including the terminating nul.
--
Neil
| |
| Seth H Holmes 2004-10-07, 7:45 am |
| In article <87acuztz36.fsf@phun.phasmic.org>, Neil Woods wrote:
> "hjmler" <hjmler@charter.net> writes:
>
>
> 4096 characters, including the terminating nul.
Is that the full pathname or simply the filename itself?
--
Seth H Holmes
My sig file is only three lines long, including the dashes.
| |
| Neil Woods 2004-10-08, 5:45 pm |
| On Thu, Oct 07 2004, Seth H. Holmes wrote:
> In article <87acuztz36.fsf@phun.phasmic.org>, Neil Woods wrote:
>
> Is that the full pathname or simply the filename itself?
The full pathname. The maximum value for the number of characters in a
file name is 255.
--
Neil
| |
|
|
"Neil Woods" <cnw+usenet@pobox.com> wrote in message
news:87acuxumlv.fsf@phun.phasmic.org...
> On Thu, Oct 07 2004, Seth H. Holmes wrote:
>
> The full pathname. The maximum value for the number of characters in a
> file name is 255.
Hmmm, so it just means that there can only be maximum of 16 levels. I don't
think so, the value of 4096 is what that is @returned@ by path_alloc or
pathconf(), but that does not mean that 16 levels is all that is permitted.
You can obviously exceed this limit though you have to be careful when
calling functions like getcwd(), reallocs and stuff like that until you get
a hit. Advanced Unix programming by Richard Stevens has an example of this
one.
--
Imanpreet Singh Arora
Zmoc.Zliamg@Zteerpnami
Remove Z to mail
"Things may come to those who wait, but only the things left by those who
hustle."
Abraham Lincoln
|
|
|
|
|