well, i've never tried to compile any of my externals for windoof myself, but i try to avoid functions marked in the libc docs as "GNU extensions", so I'd guess that the chances
seems a bit crude - yet functional, http://whats-your.name/pd/extra/dllcity/
that said, for portability, it's probably safest to go with tot or python or ruby or <insert language here> that can do exactly what you want ... i write mostly C because i don't want to bother learning python ;-)
i used to buy that marketing point of 'scripting'-lang until seeing ruby scripts cause all sorts of segfault on `doze, and not being able to get TK stuff working right with linux only supplying cryptic and useless error messages seeming to point to incomplete platform support..
i don`t know about readdir... but if its only reading folders the folderglider external might be handy. it requires tot...
folderglider is pretty neat but pretty slow on windows compared to 'dir' or GNU find. this works for me:
[openpanel or dropfile]
#X msg 10 12 bash --login -c 'find "echo \$1 | sed -f /s/sf
"*.[wW][aA][vV]
-maxdepth 1';
[ix-shell]
/s/sf is a file containing s/[^/]*$// with no linebreak (important)