delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/12/16:17:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=AjvA6vUvKO9/Coub
CgpO/rVneNf4yNicw7he7eVPXtPf3q9sfHw4CWKnLfBD+FURJIWf5r9ZxFs91DOx
YfGiZOeP+SPzP9G8RAEscjdrK2v2kJW4v859BKfoKR0olxf2AixY8ORaB9bKP0mn
e5Bs/0kM9dCaDmJx2IysF0xXKF4=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=opHVzuyHH2iLBYoBQYKhiw
WNFJk=; b=Ez90B3LpTCZbLi95J5ZnwgppQ1pvbRwb1QSt+9s82/0l6BxVFMPaCg
H2vFNvs9NYC5blXQAbB6ODVAYLJxcjh2x0q6xTXerr46zGyu+/ykIlMYEOeVqzAj
sb1LAVXmCxUAo6xzEQY0LAF0cTMKQCULIGavZ3bDA/9bq6gtHVKxc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=direnth, UD:dirent.h, dirent.h, castro
X-HELO: mail-wm0-f53.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=AyZMKxrK+gKwwB3iTKoZvlnv7dR847cRClHRMKHC0FI=; b=cf8mUNbMoA/iMvPd02cW9E/MsszcEsbd3IUwFuOB1yloVm59xesltT+/TrjdbtqclC Qw7UgUvU00yc7z41ZW5l6SaPTwova6GqhSkjWKv4pB1nGwuMfJAf0yfEj0hOb/UdpyHU ABEiImn9U6PthvsHWFNl3TU70adJN8dwC1OetrTiZVI/qd6VQCVVO+D9ezYN4Ipq01zD my/vf0+Sej0h8l83129tK55/OtlccXatvapSIqVfc8dK+2G+nPTgrPmD8rq1ueI20nYr LC8G7cAjVA4yLZ7kFjTdCX2fOKwWgeHUs4JuzBq+fNPczVmlLhtv0f0HrbyLRT3a/Ejf 0F0Q==
X-Gm-Message-State: AD7BkJIlI+eg2Q/VVKqJaRODDQlf/zXxjVP/GiVigBFQ4AaOFbiKFAcATly20g2tQTaGyA==
X-Received: by 10.28.98.137 with SMTP id w131mr27046124wmb.30.1460492244046; Tue, 12 Apr 2016 13:17:24 -0700 (PDT)
Subject: Re: 2.3.1(0.291/5/3): MAXNAMLEN too small
To: cygwin AT cygwin DOT com
References: <BAY182-W525E43CC177990C016C944EA950 AT phx DOT gbl> <BAY182-W242B879FA2D747B32D6020EA950 AT phx DOT gbl>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <570D57D1.4000809@gmail.com>
Date: Tue, 12 Apr 2016 22:17:21 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <BAY182-W242B879FA2D747B32D6020EA950@phx.gbl>
X-IsSubscribed: yes

On 12/04/2016 18:26, Arturo Castro wrote:
> Hey all,
>
> I was compiling mg (the OpenBSD microemacs editor), and it was using MAXNAMLEN for filename completion. It had a bug because its value in Cygwin is 256 (too low!). We changed it to NAME_MAX which is 1024 and it works, but I think they should have the same value, so MAXNAMLEN should be updated to 1024, shouldn't it?
>
> CYGWIN_NT-6.1-WOW 2.3.1(0.291/5/3) i686, on Win7-64bit.
>
> Thanks!
>   		 	   		

on 2.5.1

cd  /usr/include

$ grep -rH MAXNAMLEN *
...
dirent.h:#define MAXNAMLEN 1024
....
tcl8.5/unix/tclUnixPort.h:#     define MAXNAMLEN 255

from where your build is taking MAXNAMLEN ?


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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