forked from KolibriOS/kolibrios
better cp, 64-bit fileops
git-svn-id: svn://kolibrios.org@6857 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -4,7 +4,8 @@ int cmd_more(char file[])
|
||||
|
||||
kol_struct70 k70;
|
||||
kol_struct_BDVK bdvk;
|
||||
unsigned result, filesize, pos, i;
|
||||
unsigned result, i;
|
||||
unsigned long long filesize, pos;
|
||||
char buf[81]; //¡ãä¥à
|
||||
char temp[FILENAME_MAX];
|
||||
unsigned flags;
|
||||
@@ -44,7 +45,8 @@ else
|
||||
}
|
||||
|
||||
k70.p00 = 5;
|
||||
k70.p04 = k70.p08 = k70.p12 = 0;
|
||||
k70.p04 = k70.p12 = 0;
|
||||
//k70.p08 = 0;
|
||||
k70.p16 = (unsigned) &bdvk;
|
||||
k70.p20 = 0;
|
||||
k70.p21 = temp;
|
||||
@@ -53,7 +55,7 @@ result = kol_file_70(&k70); //
|
||||
if ( 0 != result )
|
||||
return FALSE;
|
||||
|
||||
filesize = bdvk.p32[0]; // ¯®«ãç ¥¬ à §¬¥à ä ©«
|
||||
filesize = bdvk.p32; // ¯®«ãç ¥¬ à §¬¥à ä ©«
|
||||
|
||||
buf[80]=0;
|
||||
flags = con_get_flags();
|
||||
@@ -65,7 +67,7 @@ for (pos=0;pos<filesize;pos+=80)
|
||||
|
||||
k70.p00 = 0;
|
||||
k70.p04 = pos;
|
||||
k70.p08 = 0;
|
||||
// k70.p08 = 0; // bug for over 4Gb files, but "more" is unusable there
|
||||
k70.p12 = 80;
|
||||
k70.p16 = (unsigned) buf;
|
||||
k70.p20 = 0;
|
||||
|
||||
Reference in New Issue
Block a user