Changeset 838 for trunk/dll/copyf.c


Ignore:
Timestamp:
Sep 21, 2007, 9:19:18 PM (18 years ago)
Author:
Gregg Young
Message:

Remainder of changes for xDosFindFirst/Next wrapper performance test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/copyf.c

    r827 r838  
    363363
    364364  DosError(FERR_DISABLEHARDERR);
    365   if (!DosFindFirst(oldname)) {
     365  if (!xDosFindFirst(oldname)) {
    366366    do {
    367367
     
    383383        rc = docopyf(type,, "%s",);     /* copy file */
    384384      DosError(FERR_DISABLEHARDERR);
    385     } while (!rc && !DosFindNext());
     385    } while (!rc && !xDosFindNext());
    386386    DosFindClose(hdir);
    387387  }
     
    747747
    748748  DosError(FERR_DISABLEHARDERR);
    749   if (!DosFindFirst(str, &search_handle, FILE_NORMAL | FILE_DIRECTORY |
    750                     FILE_SYSTEM | FILE_READONLY | FILE_HIDDEN | FILE_ARCHIVED,
    751                     f, sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {
     749  if (!xDosFindFirst(str, &search_handle, FILE_NORMAL | FILE_DIRECTORY |
     750                     FILE_SYSTEM | FILE_READONLY | FILE_HIDDEN | FILE_ARCHIVED,
     751                     f, sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {
    752752
    753753    strcpy(ss, s);
     
    779779      num_matches = 1L;
    780780      DosError(FERR_DISABLEHARDERR);
    781     } while (!DosFindNext(search_handle, f, sizeof(FILEFINDBUF3),
    782                           &num_matches));
     781    } while (!xDosFindNext(search_handle, f, sizeof(FILEFINDBUF3),
     782                           &num_matches));
    783783    DosFindClose(search_handle);
    784784  }
     
    838838
    839839  search_handle = HDIR_CREATE;
    840   num_matches = 1L;
     840  num_matches = 1;
    841841
    842842  DosError(FERR_DISABLEHARDERR);
    843   if (!DosFindFirst(str, &search_handle, FILE_NORMAL, f,
    844                     sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {
     843  if (!xDosFindFirst(str, &search_handle, FILE_NORMAL, f,
     844                     sizeof(FILEFINDBUF3), &num_matches, FIL_STANDARD)) {
    845845
    846846    strcpy(ss, s);
     
    850850      strcpy(p, f->achName);
    851851      unlinkf("%s", ss);
    852       num_matches = 1L;
     852      num_matches = 1;
    853853      DosError(FERR_DISABLEHARDERR);
    854     } while (!DosFindNext(search_handle, f, sizeof(FILEFINDBUF3),
    855                           &num_matches));
     854    } while (!xDosFindNext(search_handle, f, sizeof(FILEFINDBUF3),
     855                           &num_matches));
    856856    DosFindClose(search_handle);
    857857  }
Note: See TracChangeset for help on using the changeset viewer.