/programs/system/shell/cmd/cmd_ls.c |
7,13 → 7,14 |
unsigned num_of_file; |
unsigned *t; |
unsigned type_of_file; |
int i; |
int i, result; |
|
|
k70.p00 = 1; |
k70.p04 = 0; |
k70.p08 = 0; |
k70.p12 = 2*1024*1024; // 2 MB |
k70.p16 = malloc(2*1024*1024); |
k70.p12 = 10000; |
k70.p16 = malloc(32+k70.p12*560); |
k70.p20 = 0; |
|
/// !!! |
23,7 → 24,8 |
else |
k70.p21 = dir; |
|
if ( !kol_file_70(&k70) ) // ïðîâåðÿåì ñóùåñòâîâàíèå êàòàëîãà |
result = kol_file_70(&k70); |
if ( !((result==0) || (result==6)) ) // ïðîâåðÿåì ñóùåñòâîâàíèå êàòàëîãà |
{ |
free(k70.p16); |
return FALSE; |
/programs/system/shell/cmd/cmd_more.c |
9,7 → 9,7 |
char temp[256]; |
unsigned flags; |
|
if (NULL == file) |
if (strlen(file)<1) |
{ |
#if LANG_ENG |
printf (" more <filename>\n\r"); |
25,11 → 25,7 |
|
if ( !file_check(temp) ) |
{ |
#if LANG_ENG |
printf (" File not found!\n\r"); |
#elif LANG_RUS |
printf (" ©« ¥ ©¤¥!\n\r"); |
#endif |
file_not_found(file); |
return FALSE; |
} |
} |
42,11 → 38,7 |
|
if ( !file_check(temp) ) |
{ |
#if LANG_ENG |
printf (" File not found!\n\r"); |
#elif LANG_RUS |
printf (" ©« ¥ ©¤¥!\n\r"); |
#endif |
file_not_found(file); |
return FALSE; |
} |
} |
/programs/system/shell/cmd/cmd_ver.c |
26,11 → 26,9 |
printf (" KolibriOS v%d.%d.%d.%d. SVN-ॢ. ï¤à : %d\n\r", vA, vB, vC, vD, Rev); |
#endif |
free(kvbuf); |
return TRUE; |
} |
else |
{ |
printf (" Shell v%s\n\r", SHELL_VERSION); |
|
return TRUE; |
} |
} |