delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/01/08/10:41:29

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
X-Apparently-From: <earnie?boyd AT yahoo DOT com>
Message-ID: <3A59DF65.353364C2@yahoo.com>
Date: Mon, 08 Jan 2001 10:40:21 -0500
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: perl5-porters AT perl DOT org, cygwin AT sources DOT redhat DOT com
X-Mailer: Mozilla 4.76 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: Benjamin Riefenstahl <Benjamin DOT Riefenstahl AT ision DOT net>
CC: cygwin AT sources DOT redhat DOT com, perl5-porters AT perl DOT org
Subject: Re: perl-5.6.1 DB_file support
References: <3A5605B3 DOT AAC25D7F AT sbox DOT tu-graz DOT ac DOT at> <3A59255F DOT 85918DE8 AT sbox DOT tu-graz DOT ac DOT at> <3A5966E5 DOT 735999FE AT ece DOT gatech DOT edu> <3A59C529 DOT 4342E4D4 AT yahoo DOT com> <un1d2aybf DOT fsf AT work1 DOT work DOT maz DOT net>

Benjamin Riefenstahl wrote:
> 
> Hi Earnie,
> 
> Earnie Boyd <earnie_boyd AT yahoo DOT com> writes:
> > Well, I'm perplexed that it MAX_PATH and _MAX_PATH isn't set in the
> > Cygwin headers already somewhere.
> 
> Why should it?
> 

For porting idiosyncrasy.


> ISO C has FILENAME_MAX in <stdio.h>, which is set to 1024 in my
> version of Cygwin.  

Well, it appears you've located a different problem.  1024 is too large.

> POSIX has PATH_MAX in <limits.h> which is set to
> 259 here.  And than there is pathconf() in <unistd.h> for the real
> POSIX fans.
> 

Yea, I found that and later corrected myself to say the change should be
to limits.h.  The change could do the POSIX compliance check and not
define them for POSIX only code.

> MAX_PATH OTOH seems to be an MS Windows invention and is not in any
> standard, or is it?
> 

Well, it is a MS Windows standard.  And if _WIN32 is defined shouldn't I
expect to find a Win32 standard definition such as MAX_PATH and
_MAX_PATH defined?  Even Cygwin itself uses MAX_PATH, E.G.:
/usr/include/sys/cygwin.h.

Cheers,
Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019