delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/03/14:31:14

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=BAYES_00,SARE_ADLTSUB2
X-Spam-Check-By: sourceware.org
Message-Id: <593BD113-ADB9-45E8-9E3B-5708B0732AC2@free.fr>
From: Denis Excoffier <Denis DOT Excoffier AT free DOT fr>
To: cygwin AT cygwin DOT com
Subject: enlarge MAXSYMLINKS
Mime-Version: 1.0 (Apple Message framework v930.3)
Date: Tue, 3 Mar 2009 20:30:46 +0100
Cc: Denis Excoffier <Denis DOT Excoffier AT free DOT fr>
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

Hello,


I use Cygwin 1.5.25-15 (with all packages installed), especially i'm  
currently creating symbolic links. My filesystem is NTFS, my symlinks  
are
created as "Windows shortcuts" (see winsymlinks in the CYGWIN  
environment variable, though i don't use the variable, but this is the  
default).

I've created 36 links: 0->1, 1->2 ... 8->9, 9->a, a->b, b->c, c->d, up  
to y->z and z->/etc/passwd (a plain file).

Now, `wc q` works as expected (i.e. counts the number of lines/words/ 
chars in /etc/passwd), but `wc p` produces "Too many levels of  
symbolic links".
Well it may be that MAXSYMLINKS is defined to be 10 in cygwin kernel.  
But, cygwin-1.5.25-15/newlib/libc/sys/rtems/sys/params.h
indicates "#define MAXSYMLINKS 32", a reasonable value.

Where does this value "10" come from? Is there any possibility to  
enlarge the value of 10 in order to reach e.g. 32 as expected?
The value 10 is definitely too low for me, a value 20 (like in  
Solaris) would be better.

Thank in advance for your help,

Denis Excoffier.

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

- Raw text -


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