You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@hyperreal.org on 2000/01/05 14:08:00 UTC
cvs commit: apache-2.0/src/lib/apr/file_io/win32 fileio.h
rbb 00/01/05 05:08:00
Modified: src/lib/apr/file_io/win32 fileio.h
Log:
Add some comments to clear up some of the fields to windows' ap_file_t.
Revision Changes Path
1.4 +15 -3 apache-2.0/src/lib/apr/file_io/win32/fileio.h
Index: fileio.h
===================================================================
RCS file: /home/cvs/apache-2.0/src/lib/apr/file_io/win32/fileio.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- fileio.h 1999/12/09 21:00:06 1.3
+++ fileio.h 2000/01/05 13:07:59 1.4
@@ -83,16 +83,28 @@
#include "apr_file_io.h"
#include "apr_errno.h"
+/* quick run-down of fields in windows' ap_file_t structure that may have
+ * obvious uses.
+ * fname -- the filename as passed to the open call.
+ * dwFileAttricutes -- Attributes used to open the file.
+ * demonfname -- the canonicalized filename. Used to store the result from
+ * ap_os_canonicalize_filename.
+ * lowerdemonfname -- inserted at Ken Parzygnat's request, because of the
+ * ugly way windows deals with case in the filesystem.
+ * append -- Windows doesn't support the append concept when opening files.
+ * APR needs to keep track of this, and always make sure we append
+ * correctly when writing to a file with this flag set TRUE.
+ *
struct file_t {
ap_context_t *cntxt;
HANDLE filehand;
char *fname;
DWORD dwFileAttributes;
- char *demonfname; /* Is this necessary */
- char *lowerdemonfname; /* Is this necessary */
+ char *demonfname;
+ char *lowerdemonfname;
int buffered;
int stated;
- int append; /* is this necessary?*/
+ int append;
int eof_hit;
off_t size;
time_t atime;