long file names
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Debian support > Linux Debian support > long file names




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    long file names  
hjmler


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-06-04 10:45 PM

is there a limit on how long file names can be under linux ?







[ Post a follow-up to this message ]



    Re: long file names  
Neil Woods


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-06-04 10: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





[ Post a follow-up to this message ]



    Re: long file names  
Seth H Holmes


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-07-04 12:45 PM

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.





[ Post a follow-up to this message ]



    Re: long file names  
Neil Woods


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-08-04 10: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





[ Post a follow-up to this message ]



    Re: long file names  
Minti


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
10-16-04 01:46 AM




"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









[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:18 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register