gnu-arch-users
[Top][All Lists]
Advanced

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

[Gnu-arch-users] Additional Cygwin long file path patch


From: Parker, Ron
Subject: [Gnu-arch-users] Additional Cygwin long file path patch
Date: Mon, 17 Nov 2003 16:08:37 -0600

> From: Robert Collins [mailto:address@hidden

> 0) Fill out the last couple of thunks. FindFirstFile and FindNextFile 
> need to be always Ansi or always Wide, and if following that 
> principle 
> there, it probably makes sense to always use one or the other, not 
> decide on a per-call basis.

I had implemented this already, but not sent a patch for it.  I thought it
was bugged, but it turned out that I was running into the gcc alloca issue
when I increased PATH_MAX to 4096 on my machine.  It has been adapted to the
CVS code in line with your changes.  

Here is a patch against cygio.h.  I know you hate side-effects, but it
removes the extraneous trailing ';' from the switch statements and switches
to my home email address as well.  I'll break it apart if necessary.

The good thing here is that FindFirstFileW may be freely mixed with
FindNextFileA.  So, we do not have to remember which form was used for
FindFirstFile when calling FindNextFile.  This reduces the whole
decide-which-API-to-call-and-perform-UNICODE-translation to once per
FindFirstFile/FindNextFile loop.

Running a 'tla import' this will get us further.  It now experiences a
permissions failure at vu_sys_chmod.

Attachment: rbc01-find-first-file
Description: Binary data


reply via email to

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