From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18037 invoked by alias); 3 Mar 2010 17:14:56 -0000 Received: (qmail 18020 invoked by uid 22791); 3 Mar 2010 17:14:55 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Wed, 03 Mar 2010 17:14:52 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 6670B6D42F5; Wed, 3 Mar 2010 18:14:49 +0100 (CET) Date: Wed, 03 Mar 2010 17:14:00 -0000 From: Corinna Vinschen To: gdb-patches@sourceware.org Subject: Re: [RFC] Reenable compilation with cygwin 1.5 versions Message-ID: <20100303171449.GQ17293@calimero.vinschen.de> Reply-To: gdb-patches@sourceware.org Mail-Followup-To: gdb-patches@sourceware.org References: <002701cabaf2$39739ad0$ac5ad070$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002701cabaf2$39739ad0$ac5ad070$@muller@ics-cnrs.unistra.fr> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-03/txt/msg00103.txt.bz2 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