bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pathmax: support for native Windows


From: Eric Blake
Subject: Re: pathmax: support for native Windows
Date: Tue, 13 Sep 2011 06:50:02 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.20) Gecko/20110831 Fedora/3.1.12-2.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.12

On 09/13/2011 06:47 AM, Bastien ROUCARIES wrote:
PATH_MAX is this value for win32 name not for kernel name like \\?\c\.
It is 32k in this case.

When using kernel APIs (like cygwin does), then yes, the limit is 32k. But when using Windows APIs (like mingw and MSVC do), then you are better off using 260, which is the limit of windows APIs for all programs that do not bypass windows APIs in favor of kernel APIs. I see nothing to change here; gnulib is correct in using 260.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]