This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Reenable compilation with cygwin 1.5 versions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]