From: <dan...@ya...> - 2001-08-22 23:39:19
|
In gcc-2.95.3 source there are public domain dirent.c /dirent.h source for winnt (in gcc/config/winnt). This source fixes the trailing slash problems reported recently in user list. (_stat accepts "c:\\" as a valid directory and "c:tmp" and "c:\\tmp" and (on NT) c:/tmp/, but not "c:\\tmp\\"). I have tested the gcc dirent on NT and works on all the various combinations of slashes and backslashes I can think of (oops no I just thought of some back-slashed mixed up UNC names and some device names llke "\\\\.\\PhysicalDrive0" that I haven't tested). The gcc/winnt dirent also supports HPFS conventions, but I can't test. Anyone here have that filesystem? I can patch up the existing dirent.c easily enough to handle the DOS filename bug that was was reported, or we could replace with the attached PD files. Comments. Danny _____________________________________________________________________________ http://shopping.yahoo.com.au - Father's Day Shopping - Find the perfect gift for your Dad for Father's Day |