Maximum path and path element length, Win32 vs Cygwin vs SFU?
Marco Atzeri
marco.atzeri@gmail.com
Sun Dec 3 17:53:33 GMT 2023
On 03/12/2023 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, Cygwin APIs on Windows 11, and SFU on Win7?
>
> There seems to be some confusion, docs cite 256, 260 and 32k, and
> getconf PATH_MAX / returns 4096.
>
> What is the maximum supported in the Win32 API, what is the maximum
> supported in Cygwin, and what applications and drivers need to expect?
>
> Ced
for Cygwin look at
/usr/include/limits.h
/usr/include/cygwin/config.h
/usr/include/cygwin/limits.h
$ grep -rH PATH_MAX .
./config.h:#define __FILENAME_MAX__ 4096 /* Keep in sync with
PATH_MAX in limits.h. */
./limits.h:#define __PATH_MAX 4096
Regards
Marco
More information about the Cygwin
mailing list