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: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" 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