delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <3C600048.F9F5E2B@synaps-ing.de> |
Date: | Tue, 05 Feb 2002 16:54:48 +0100 |
From: | Jan Kellmer <j DOT kellmer AT synaps-ing DOT de> |
Organization: | Synaps Ingenieur-Gesellschaft mbH |
X-Mailer: | Mozilla 4.61 [en] (X11; I; Linux 2.2.10 i686) |
X-Accept-Language: | en |
MIME-Version: | 1.0 |
To: | Elias Biris <ebiris AT cadence DOT com> |
CC: | cygwin AT cygwin DOT com |
Subject: | Re: Limits? |
References: | <BDEE80CF66D0F84190A7F2CF826672C00950D7 AT exmbx01livi DOT global DOT cadence DOT com> |
Hello! Elias Biris wrote: > > Hi all, > > I'd like to ask where can I find information about the types of limits that are set in cygwin utilities for win2k? I am looking specifically for: > > Maximum number of characters that by default can be used in a pathname > Maximum number of characters that by default can be used in a filename (together with its path) > Maximum number of characters that by default can be used in a command or commands that can be called by 'exec' > > Sorry for the wide distribution but I could not find this for Cygwin specifically. All information will be gratefully appreciated. > Try this little program: -- snip -- snap -- #include <limits.h> #include <stdio.h> #include <unistd.h> int main(int argc, char** argv) { printf("Max pathname: '%d'\n", sysconf(_PC_PATH_MAX)); printf("Max filename: '%d'\n", sysconf(_PC_NAME_MAX)); printf("Max arguments: '%d'\n", sysconf(_SC_ARG_MAX)); } -- snap -- snip -- The first line of output shows the guaranteed number of characters in a relative path; the second line shows the guaranteed number of characters in a filename alone (not preceeded by any path) (both may be limited by the filesystem on which a file is located; have a look at fpathconf() and pathconf() also); the third line shows the maximum number of characters in the argument of an exec() call. There is no manual page for sysconf() in my cygwin install, but on every average unix box there is. Regards, Jan -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |