820 |
|
|
821 |
switch (info_class) |
switch (info_class) |
822 |
{ |
{ |
823 |
case 3: //FIXME: Why 3? |
case FileBothDirectoryInformation: |
824 |
|
|
825 |
// If a search pattern is received, remember this pattern, and restart search |
// If a search pattern is received, remember this pattern, and restart search |
826 |
if (pattern[0] != 0) |
if (pattern[0] != 0) |
840 |
// Get information for directory entry |
// Get information for directory entry |
841 |
sprintf(fullpath, "%s/%s", dirname, pdirent->d_name); |
sprintf(fullpath, "%s/%s", dirname, pdirent->d_name); |
842 |
|
|
843 |
/* JIF |
/* JIF |
844 |
printf("Stat: %s\n", fullpath); */ |
printf("Stat: %s\n", fullpath); */ |
845 |
if (stat(fullpath, &fstat)) |
if (stat(fullpath, &fstat)) |
846 |
{ |
{ |
890 |
break; |
break; |
891 |
|
|
892 |
default: |
default: |
893 |
|
/* FIXME: Support FileDirectoryInformation, |
894 |
|
FileFullDirectoryInformation, and |
895 |
|
FileNamesInformation */ |
896 |
|
|
897 |
unimpl("IRP Query Directory sub: 0x%x\n", info_class); |
unimpl("IRP Query Directory sub: 0x%x\n", info_class); |
898 |
return STATUS_INVALID_PARAMETER; |
return STATUS_INVALID_PARAMETER; |