[comp.unix.questions] converting filenames to System V length

roe@sobmips.UUCP (r.peterson) (02/05/90)

From article <1100@maxim.erbe.se>, by prc@erbe.se (Robert Claeson):
> In article <1990Jan27.022456.19130@virtech.uucp>, cpcahil@virtech.uucp (Conor P. Cahill) writes:
> 
>> Routine names are not limited to 14 characters under System V.  Only
>> file names are.
> 
> System V doesn't impose a 14 character limit on file names either.

Actually, it does.  AT&T SVID compliant system V normally uses the
"system V" filesystem - with a 14-character filename limit.

Some vendors have seen fit to include the BSD fast filesystem - with
255-character filenames.  This is NOT system V - but is a very good
idea.
-- 
One makes strong assumptions delving	       Roe Peterson
into the beginning of the universe...	       {uunet,mcgill-vision}!sobeco!roe
	- Stephen Hawking, Cambridge

guy@auspex.auspex.com (Guy Harris) (02/07/90)

>Actually, it does.  AT&T SVID compliant system V normally uses the
>"system V" filesystem - with a 14-character filename limit.

If you can find anything in the SVID that calls for a 14-character
filename limit, I'll eat all four volumes of the SVID, Third Edition.
SVID compliance has nothing to do with it; the BSD file system is quite
SVID-compliant, thank you.  (Besides, it's not 100% clear that System V
from AT&T is SVID-compliant; I think I've run into cases where it
violates the SVID....)

>Some vendors have seen fit to include the BSD fast filesystem - with
>255-character filenames.  This is NOT system V

If it's not System V, neither is System V Release 4, since it comes with
the BSD file system, 255-character file names and all....

john@frog.UUCP (John Woods) (02/08/90)

In article <2903@auspex.auspex.com>, guy@auspex.auspex.com (Guy Harris) writes:
> >Actually, it does.  AT&T SVID compliant system V normally uses the
> >"system V" filesystem - with a 14-character filename limit.
> If you can find anything in the SVID that calls for a 14-character
> filename limit, I'll eat all four volumes of the SVID, Third Edition.

Guy wins.  SVID Issue 2 Volume III page 28:

"file-name
 Strings consisting of 1 to {NAME_MAX} characters may be used to name an
 ordinary file, a special file or a directory.  {NAME_MAX} must be at least
 14.  These characters may be selected from the set of all character values
 excluding the characters "null" and "slash" (/)."

I doubt that SVID 3e has gotten any more restrictive.  Guy will have to look
for other culinary delights than "SVID 3e in a white wine sauce".
-- 
John Woods, Charles River Data Systems, Framingham MA, (508) 626-1101
...!decvax!frog!john, john@frog.UUCP, ...!mit-eddie!jfw, jfw@eddie.mit.edu