| From: | Harry Sintonen |
| Date: | 13 Oct 2000 at 14:48:38 |
| Subject: | Re: AOS35: FFS 25-character file length? |
On Fri, 13 Oct 2000, Etienne Vogt wrote:
> There's also the absolute dos.library limitation to 108 characters
> (size of the filename field in the FileInfoBlock structure) that
> should me mentionned. Even if you use a filesystem that could
> theorically support longer filenames, they will always be truncated
> to 108 chars by the dos.library.
107 to be exact, the fib_FileName is null terminated. And this limitation
is only for listing directory contents with ExNext() (and functions that
use ExNext() internally).
However:
If applications use ExAll() and the filesystem implement
ACTION_EXAMINE_ALL there is no such limitation.
Some other parts of the dos.library convert between c-string and BCPL
string and thus the maximum theoritical filename len is 254 or 255 (not
sure, but I think 254 since dos.library internal buffers are 256 char and
the BCPL string is null terminated too, IIRC).
Still functions that use ExNext() or FileInfoBlock structure internally
would cut the filenames, for example MatchNext().
Any comments on this appreciated.
Regards,
l=2001;main(i){float o,O,_,I,D;for(;O=I=l/571.-1.75,l;)for(putchar(--l%80?
i:10),o=D=l%80*.05-2,i=31;_=O*O,O=2*o*O+I,o=o*o-_+D,o+_+_<4+D&i++<87;);puts
(" Harry 'Piru' Sintonen <sintonen@iki.fi> http://www.iki.fi/sintonen");}