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: Bastien ROUCARIES
Subject: Re: pathmax: support for native Windows
Date: Tue, 13 Sep 2011 15:07:25 +0200

On Tue, Sep 13, 2011 at 2:50 PM, Eric Blake <address@hidden> wrote:
> 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.

Not sure according to
http://msdn.microsoft.com/en-us/library/aa365247%28v=vs.85%29.aspx#nt_namespaces

You could use this syntax with win32 api. I used it for opening long
path and it used byapache on windows. However it will need some
surgery in order to be used (convert utf8 to ucs2)
>
> --
> 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]