At 02:11 PM 2/28/2003, Cliff Woolley wrote: >On Fri, 28 Feb 2003, William A. Rowe, Jr. wrote: > >> Short of turning on largefile support here and now, what about a simple >> APR hack? Keep an overflow flag for apr_dir_t, and when the lstat() >> call from apr_dir_read returns EOVERFLOW, set that flag but loop and >> grab the next legal file. > >Works for me. :)
Actually, the 'right answer' is to leave the apr_fileinfo_t ->valid bits unset if all you can recover is the name itself ;-) All apps *should* respect those bits if they are looking for anything other than the name. But I still like the general idea proposed above :-) Bill