Maximum path and path element length, Win32 vs Cygwin vs SFU?
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Dec 4 09:49:34 GMT 2023
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
More information about the Cygwin
mailing list