bjh 99/06/06 00:29:55
Modified: apr/file_io/os2 filestat.c
Log:
Remove ap_updatefileinfo().
Revision Changes Path
1.4 +5 -16 apache-apr/apr/file_io/os2/filestat.c
Index: filestat.c
===================================================================
RCS file: /home/cvs/apache-apr/apr/file_io/os2/filestat.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- filestat.c 1999/06/04 13:13:17 1.3
+++ filestat.c 1999/06/06 07:29:54 1.4
@@ -95,22 +95,12 @@
ap_status_t ap_getfileinfo(struct file_t *thefile)
{
- ULONG rc = DosQueryPathInfo(thefile->fname, FIL_STANDARD,
&thefile->status, sizeof(thefile->status));
+ ULONG rc;
- if (rc == 0) {
- thefile->validstatus = TRUE;
- return APR_SUCCESS;
- }
-
- thefile->validstatus = FALSE;
- return os2errno(rc);
-}
-
-
-
-ap_status_t ap_updatefileinfo(struct file_t *thefile)
-{
- ULONG rc = DosQueryFileInfo(thefile->filedes, FIL_STANDARD,
&thefile->status, sizeof(thefile->status));
+ if (thefile->isopen)
+ rc = DosQueryFileInfo(thefile->filedes, FIL_STANDARD,
&thefile->status, sizeof(thefile->status));
+ else
+ rc = DosQueryPathInfo(thefile->fname, FIL_STANDARD,
&thefile->status, sizeof(thefile->status));
if (rc == 0) {
thefile->validstatus = TRUE;
@@ -120,4 +110,3 @@
thefile->validstatus = FALSE;
return os2errno(rc);
}
-