http://bugs.winehq.org/show_bug.cgi?id=28665
--- Comment #9 from Grazvydas Ignotas notasas@gmail.com 2011-11-01 12:19:22 CDT --- (In reply to comment #6)
I could try cooking getdirentries patch if somebody can test it on BSDs for me.
Well it looks like that just won't work, because dirent structures from getdirentries() don't contain d_off which my patches relied on to produce the windows-like behavior.
It is possible to emulate getdents() using getdirentries(), but that would require 2 syscalls per dirent which would cause rather bad performance hit I guess..