posix looop through files