bug-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getline & getline_safe


From: Derek Robert Price
Subject: Re: getline & getline_safe
Date: Fri, 25 Jul 2003 10:55:38 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

Paul Edwards wrote:

"Derek Robert Price" <derek@ximbiot.com> wrote in message 
news:mailman.447.1059051115.8231.bug-cvs@gnu.org...
Paul Edwards wrote:

I think it is usual for a program to have processing restrictions,

although I would have made it based on a CVS-controlled define,
like CVS_STR_LIMIT, rather than PATH_MAX, which could
potentially be 8, while userid may be 30.


I don't think you're going to find many PATH_MAX's under 256.  I think UNIX and 
Windows both have PATH_MAXs of 4096?

Borland C++ 3.1 for DOS (100% ISO-conforming, forget
K&R) has no PATH_MAX (not required in ANSI C) and
has FILENAME_MAX of 80.

That's interesting, though CVS depends on a header it supplies to set PATH_MAX, we hope appropriately, when one can't be found.

Is the FILENAME_MAX really 80 chars under DOS? Is that really the max for something like c:\path\path\path\file.txt? I guess they did used to limit to 8.3 filenames, so that is 10 deep. Wow. Is anybody still using that?

Derek

--
               *8^)

Email: derek@ximbiot.com

Get CVS support at <http://ximbiot.com>!
--
Funny noises are not funny.
Funny noises are not funny.
Funny noises are not funny...

         - Bart Simpson on chalkboard, _The Simpsons_






reply via email to

[Prev in Thread] Current Thread [Next in Thread]