--------------------- PatchSet 5542 Date: 2002/12/08 09:37:22 Author: serassio Branch: nt-2_5 Tag: (none) Log: Removed stupid DOS uppercase filename Members: port/win32/Makefile.am:1.1.2.4->1.1.2.5 port/win32/include/Readdir.h:1.1->1.1.2.1 Index: squid/port/win32/Makefile.am =================================================================== RCS file: /cvsroot/squid-sf//squid/port/win32/Attic/Makefile.am,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- squid/port/win32/Makefile.am 7 Dec 2002 21:09:27 -0000 1.1.2.4 +++ squid/port/win32/Makefile.am 8 Dec 2002 09:40:06 -0000 1.1.2.5 @@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in # -# $Id: Makefile.am,v 1.1.2.4 2002/12/07 21:09:27 serassio Exp $ +# $Id: Makefile.am,v 1.1.2.5 2002/12/08 09:40:06 serassio Exp $ # EXTRA_DIST = \ @@ -26,7 +26,7 @@ include/cdefs.h \ include/crypt.h \ include/getopt.h \ - include/readdir.h \ + include/Readdir.h \ include/squid-mswin.h \ ip_user_check/ip_user_check.dsp \ LDAP_auth/LDAP_auth.dsp \ --- /dev/null Wed Feb 14 01:07:22 2007 +++ squid/port/win32/include/Readdir.h Wed Feb 14 01:08:21 2007 @@ -0,0 +1,33 @@ +/* + * Structures and types used to implement opendir/readdir/closedir + * on Windows 95/NT. +*/ + +#include +#include +#include + +#ifdef _MSC_VER /* Microsoft C Compiler ONLY */ +/* struct dirent - same as Unix */ +struct dirent { + long d_ino; /* inode (always 1 in WIN32) */ + off_t d_off; /* offset to this dirent */ + unsigned short d_reclen; /* length of d_name */ + char d_name[_MAX_FNAME+1]; /* filename (null terminated) */ +}; + +/* typedef DIR - not the same as Unix */ +typedef struct { + long handle; /* _findfirst/_findnext handle */ + short offset; /* offset into directory */ + short finished; /* 1 if there are not more files */ + struct _finddata_t fileinfo; /* from _findfirst/_findnext */ + char *dir; /* the dir we are reading */ + struct dirent dent; /* the dirent to return */ +} DIR; + +/* Function prototypes */ +DIR * opendir(const char *); +struct dirent * readdir(DIR *); +int closedir(DIR *); +#endif