[PATCH 2/2] ntdll: Use swapping method to return . and .. as first entries.

Grazvydas Ignotas notasas at gmail.com
Fri Jul 22 05:13:13 CDT 2011


On Fri, Jul 22, 2011 at 12:30 PM, Alexandre Julliard
<julliard at winehq.org> wrote:
> Grazvydas Ignotas <notasas at gmail.com> writes:
>>      res = getdents64( fd, data, size );
>
> You should find a way to do this only when you do encounter '.' and
> '..', not on every call.

The main reason I did this on every call is to get d_off of second
entry (second_entry_pos), i.e. to know when to return ".." in
ReturnSingleEntry case. The only thing I can think of is caching that
second entry d_off between calls, dropping it if dev or ino of fd
changes.


-- 
Gražvydas



More information about the wine-devel mailing list