version 2.8, 2005/02/27 05:21:08
|
version 2.9, 2005/02/27 08:22:01
|
|
|
{ | { |
case fdintCABINET_INFO: | case fdintCABINET_INFO: |
{ | { |
printf("fdintCABINET_INFO\n"); |
printf( |
|
"fdintCABINET_INFO:\n" |
|
"-next cab name: %s\n" |
|
"-next disk: %s\n" |
|
"-path name: %s\n" |
|
"-set ID: %d\n" |
|
"-number in set: %d\n", |
|
pfdin->psz1, |
|
pfdin->psz2, |
|
pfdin->psz3, |
|
pfdin->setID, |
|
pfdin->iCabinet |
|
); |
return 0; | return 0; |
} | } |
case fdintPARTIAL_FILE: | case fdintPARTIAL_FILE: |
|
|
{ | { |
int fih = 0; | int fih = 0; |
char target[256]; | char target[256]; |
|
printf( |
|
"fdintCOPY_FILE:\n" |
|
"-name: %s\n" |
|
"-uncompressed size: %d\n" |
|
"-date: %d\n" |
|
"-time: %d\n" |
|
"-attributes: %d\n" |
|
"-file's folder index: %d\n", |
|
pfdin->psz1, |
|
pfdin->cb, |
|
pfdin->date, |
|
pfdin->time, |
|
pfdin->attribs, |
|
pfdin->iFolder |
| |
printf("fdintCOPY_FILE\n"); |
); |
printf(" file name: %s\n", pfdin->psz1); |
|
sprintf(target, "./%s",pfdin->psz1); | sprintf(target, "./%s",pfdin->psz1); |
printf("%s\n",target); |
|
#ifdef TVFS | #ifdef TVFS |
fih = tvfs_open (target, | fih = tvfs_open (target, |
_O_BINARY | _O_CREAT | _O_WRONLY | _O_SEQUENTIAL, | _O_BINARY | _O_CREAT | _O_WRONLY | _O_SEQUENTIAL, |
_S_IREAD | _S_IWRITE | _S_IREAD | _S_IWRITE |
); | ); |
return fih; |
|
#else | #else |
fih = real_open (target, | fih = real_open (target, |
_O_BINARY | _O_CREAT | _O_WRONLY | _O_SEQUENTIAL, | _O_BINARY | _O_CREAT | _O_WRONLY | _O_SEQUENTIAL, |
_S_IREAD | _S_IWRITE | _S_IREAD | _S_IWRITE |
); | ); |
return fih; |
|
#endif | #endif |
|
return fih; |
|
|
} | } |
case fdintCLOSE_FILE_INFO: | case fdintCLOSE_FILE_INFO: |
{ | { |
char filebuf[256]; | char filebuf[256]; |
int result; | int result; |
| |
|
printf( |
|
"fdintCLOSE_FILE:\n" |
|
"-name: %s\n" |
|
"-handle: %d\n" |
|
"-date: %d\n" |
|
"-time: %d\n" |
|
"-attributes: %d\n" |
|
"-file's folder index: %d\n" |
|
"-run: %d\n", |
|
pfdin->psz1, |
|
pfdin->hf, |
|
pfdin->date, |
|
pfdin->time, |
|
pfdin->attribs, |
|
pfdin->iFolder, |
|
pfdin->cb |
|
); |
|
|
/* | /* |
printf("Testing direct file compare and lseek of %s\n", name_simple_txt); | printf("Testing direct file compare and lseek of %s\n", name_simple_txt); |
printf("Reading and comparing file\n"); | printf("Reading and comparing file\n"); |
|
|
result = tvfs_compare( filebuf , file_simple_txt, size_simple_txt); | result = tvfs_compare( filebuf , file_simple_txt, size_simple_txt); |
| |
*/ | */ |
return 0; |
#ifdef TVFS |
|
tvfs_close(pfdin->hf); |
|
#else |
|
real_close(pfdin->hf); |
|
#endif |
|
|
|
return TRUE; |
} | } |
case fdintNEXT_CABINET: | case fdintNEXT_CABINET: |
{ | { |