delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/12/04/04:49:53

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0CB3F385C6DA
Date: Mon, 4 Dec 2023 10:49:34 +0100
To: cygwin AT cygwin DOT com
Subject: Re: Maximum path and path element length, Win32 vs Cygwin vs SFU?
Message-ID: <ZW2grmTkVWbmLLSb@calimero.vinschen.de>
Mail-Followup-To: cygwin AT cygwin DOT com
References: <CALXu0Ucq=Sm51mGR8-h+mTwGB03Kn2wYDobV2niWef75RQ_Juw AT mail DOT gmail DOT com>
MIME-Version: 1.0
In-Reply-To: <CALXu0Ucq=Sm51mGR8-h+mTwGB03Kn2wYDobV2niWef75RQ_Juw@mail.gmail.com>
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
Cc: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>
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

- Raw text -


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