public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* 2.3.1(0.291/5/3): MAXNAMLEN too small
       [not found] <BAY182-W525E43CC177990C016C944EA950@phx.gbl>
@ 2016-04-12 16:26 ` Arturo Castro
  2016-04-12 20:17   ` Marco Atzeri
  0 siblings, 1 reply; 2+ messages in thread
From: Arturo Castro @ 2016-04-12 16:26 UTC (permalink / raw)
  To: cygwin

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!
 		 	   		  
--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: 2.3.1(0.291/5/3): MAXNAMLEN too small
  2016-04-12 16:26 ` 2.3.1(0.291/5/3): MAXNAMLEN too small Arturo Castro
@ 2016-04-12 20:17   ` Marco Atzeri
  0 siblings, 0 replies; 2+ messages in thread
From: Marco Atzeri @ 2016-04-12 20:17 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-12 20:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <BAY182-W525E43CC177990C016C944EA950@phx.gbl>
2016-04-12 16:26 ` 2.3.1(0.291/5/3): MAXNAMLEN too small Arturo Castro
2016-04-12 20:17   ` Marco Atzeri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).