Subversion Repositories SvarDOS

Rev

Rev 2030 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2030 Rev 2031
Line 607... Line 607...
607
 
607
 
608
#ifndef STDCALL
608
#ifndef STDCALL
609
#define STDCALL __stdcall
609
#define STDCALL __stdcall
610
#endif
610
#endif
611
 
611
 
612
typedef HANDLE ( STDCALL * fFindFirstFileExA)(const char *, FINDEX_INFO_LEVELS, void *, FINDEX_SEARCH_OPS, void *, DWORD);
-
 
613
 
-
 
614
 
612
 
615
/**
613
/**
616
 * Stores directory information obtained from FindFirst/Next that
614
 * Stores directory information obtained from FindFirst/Next that
617
 * we may wish to make use of when displaying directory entry.
615
 * we may wish to make use of when displaying directory entry.
618
 * e.g. attribute, dates, etc.
616
 * e.g. attribute, dates, etc.
Line 867... Line 865...
867
    }
865
    }
868
  }
866
  }
869
 
867
 
870
  /* optional display data */
868
  /* optional display data */
871
  if (dspAttr)  /* attributes */
869
  if (dspAttr)  /* attributes */
872
    pprintf("[%c%c%c%c%c%c%c%c] ",
870
    pprintf("[%c%c%c%c%c] ",
873
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_DIRECTORY)?'D':' ',  /* keep this one? its always true */
871
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_DIRECTORY)?'D':' ',  /* keep this one? its always true */
874
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_ARCHIVE)?'A':' ',
872
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_ARCHIVE)?'A':' ',
875
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_COMPRESSED)?'C':' ',
-
 
876
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_ENCRYPTED)?'E':' ',
-
 
877
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_SYSTEM)?'S':' ',
873
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_SYSTEM)?'S':' ',
878
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_HIDDEN)?'H':' ',
874
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_HIDDEN)?'H':' ',
879
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_READONLY)?'R':' ',
875
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_READONLY)?'R':' '
880
      (ddata->dwDirAttributes & FILE_ATTRIBUTE_REPARSE_POINT)?'M':' '  /* often a mount point */
-
 
881
    );
876
    );
882
 
877
 
883
  /* display directory name */
878
  /* display directory name */
884
  pprintf("%s\n", currentpath);
879
  pprintf("%s\n", currentpath);
885
}
880
}
Line 945... Line 940...
945
      /* print lead padding */
940
      /* print lead padding */
946
      pprintf("%s", padding);
941
      pprintf("%s", padding);
947
 
942
 
948
      /* optional display data */
943
      /* optional display data */
949
      if (dspAttr)  /* file attributes */
944
      if (dspAttr)  /* file attributes */
950
        pprintf("[%c%c%c%c%c%c%c%c] ",
945
        pprintf("[%c%c%c%c] ",
951
          (entry.dwFileAttributes & FILE_ATTRIBUTE_SPARSE_FILE)?'0':' ',
-
 
952
          (entry.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE)?'A':' ',
946
          (entry.dwFileAttributes & FILE_ATTRIBUTE_ARCHIVE)?'A':' ',
953
          (entry.dwFileAttributes & FILE_ATTRIBUTE_COMPRESSED)?'C':' ',
-
 
954
          (entry.dwFileAttributes & FILE_ATTRIBUTE_ENCRYPTED)?'E':' ',
-
 
955
          (entry.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM)?'S':' ',
947
          (entry.dwFileAttributes & FILE_ATTRIBUTE_SYSTEM)?'S':' ',
956
          (entry.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)?'H':' ',
948
          (entry.dwFileAttributes & FILE_ATTRIBUTE_HIDDEN)?'H':' ',
957
          (entry.dwFileAttributes & FILE_ATTRIBUTE_READONLY)?'R':' ',
949
          (entry.dwFileAttributes & FILE_ATTRIBUTE_READONLY)?'R':' '
958
          (entry.dwFileAttributes & FILE_ATTRIBUTE_REPARSE_POINT)?'M':' '
-
 
959
        );
950
        );
960
 
951
 
961
      if (dspSize)  /* file size */
952
      if (dspSize)  /* file size */
962
      {
953
      {
963
        if (entry.nFileSizeHigh)
954
        if (entry.nFileSizeHigh)