X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1ED7A385DC19
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1701683392;
	bh=nsxmRxbttVi/fhept1M9yxAx/tf1eYo3uO1HtG6jsls=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=GozvKuCrm1iqtZoLqOQTHvwqjrkgn/ruCvqPGK9Ln6gpQ4uZRODITCGAZ4XzIAH/F
	 rPAYHtiboNmpCf1SqzFHU8xSPczYl/wxpAyUYOswmyd8/MIkzUOu0Olqfi1kmG5DjU
	 hVVKmfVfeS6CAcCS5/gQvDXpuDPEg0zm4mjODShw=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CB3F385C6DA
Date: Mon, 4 Dec 2023 10:49:34 +0100
To: cygwin@cygwin.com
Subject: Re: Maximum path and path element length, Win32 vs Cygwin vs SFU?
Message-ID: <ZW2grmTkVWbmLLSb@calimero.vinschen.de>
Mail-Followup-To: cygwin@cygwin.com
References: <CALXu0Ucq=Sm51mGR8-h+mTwGB03Kn2wYDobV2niWef75RQ_Juw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CALXu0Ucq=Sm51mGR8-h+mTwGB03Kn2wYDobV2niWef75RQ_Juw@mail.gmail.com>
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>
Content-Type: text/plain; charset="utf-8"
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3B49nrV8005662

On Dec  3 17:45, Cedric Blancher via Cygwin wrote:
> Good evening!
> 
> What is the maximum path length and path element (single file, dirname
> length) in Win32 API,

https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation

> Cygwin APIs on Windows 11,

NAME_MAX is 255
PATH_MAX is 4096

Note that PATH_MAX is, per POSIX, *not* the maximum absolute path
length, as many people think:

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html

Max path length is bound by OS limits per the above MSDN document.

> and SFU on Win7?

¯\_(ツ)_/¯

Win 7 support ends with Cygwin 3.5 anyway.


Corinna

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

