Re: [RFC] Reenable compilation with cygwin 1.5 versions

Corinna Vinschen
2010-03-03T17:14:56Z

On Mar 3 17:54, Pierre Muller wrote:
> Concerning the remote-fileio.c patch,
> I am not sure, but Corinna Vinschen seemed to
> suggest that the use of PATH_MAX+1 was
> an error anyway, so maybe PATH_MAX is OK
> for both old and new cygwin versions.

The "+ 1" is not required because PATH_MAX is defined as the path length
including the trailing NUL, see
http://www.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

On the old Cygwin versions PATH_MAX == MAX_PATH, which is also defined
including the trailing NUL, see
http://msdn.microsoft.com/en-us/library/aa365247%28VS.85%29.aspx#maxpath

Corinna

--
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat