|
LMMS
|
#include "unzip.h"Macros | |
| #define | UNZIP_INTERNAL |
| #define | UNX_IFMT 0170000 /* Unix file type mask */ |
| #define | UNX_IFREG 0100000 /* Unix regular file */ |
| #define | UNX_IFSOCK 0140000 /* Unix socket (BSD, not SysV or Amiga) */ |
| #define | UNX_IFLNK 0120000 /* Unix symbolic link (not SysV, Amiga) */ |
| #define | UNX_IFBLK 0060000 /* Unix block special (not Amiga) */ |
| #define | UNX_IFDIR 0040000 /* Unix directory */ |
| #define | UNX_IFCHR 0020000 /* Unix character special (not Amiga) */ |
| #define | UNX_IFIFO 0010000 /* Unix fifo (BCC, not MSC or Amiga) */ |
| #define | UNX_ISUID 04000 /* Unix set user id on execution */ |
| #define | UNX_ISGID 02000 /* Unix set group id on execution */ |
| #define | UNX_ISVTX 01000 /* Unix directory permissions control */ |
| #define | UNX_ENFMT UNX_ISGID /* Unix record locking enforcement flag */ |
| #define | UNX_IRWXU 00700 /* Unix read, write, execute: owner */ |
| #define | UNX_IRUSR 00400 /* Unix read permission: owner */ |
| #define | UNX_IWUSR 00200 /* Unix write permission: owner */ |
| #define | UNX_IXUSR 00100 /* Unix execute permission: owner */ |
| #define | UNX_IRWXG 00070 /* Unix read, write, execute: group */ |
| #define | UNX_IRGRP 00040 /* Unix read permission: group */ |
| #define | UNX_IWGRP 00020 /* Unix write permission: group */ |
| #define | UNX_IXGRP 00010 /* Unix execute permission: group */ |
| #define | UNX_IRWXO 00007 /* Unix read, write, execute: other */ |
| #define | UNX_IROTH 00004 /* Unix read permission: other */ |
| #define | UNX_IWOTH 00002 /* Unix write permission: other */ |
| #define | UNX_IXOTH 00001 /* Unix execute permission: other */ |
| #define | VMS_IRUSR UNX_IRUSR /* VMS read/owner */ |
| #define | VMS_IWUSR UNX_IWUSR /* VMS write/owner */ |
| #define | VMS_IXUSR UNX_IXUSR /* VMS execute/owner */ |
| #define | VMS_IRGRP UNX_IRGRP /* VMS read/group */ |
| #define | VMS_IWGRP UNX_IWGRP /* VMS write/group */ |
| #define | VMS_IXGRP UNX_IXGRP /* VMS execute/group */ |
| #define | VMS_IROTH UNX_IROTH /* VMS read/other */ |
| #define | VMS_IWOTH UNX_IWOTH /* VMS write/other */ |
| #define | VMS_IXOTH UNX_IXOTH /* VMS execute/other */ |
| #define | AMI_IFMT 06000 /* Amiga file type mask */ |
| #define | AMI_IFDIR 04000 /* Amiga directory */ |
| #define | AMI_IFREG 02000 /* Amiga regular file */ |
| #define | AMI_IHIDDEN 00200 /* to be supported in AmigaDOS 3.x */ |
| #define | AMI_ISCRIPT 00100 /* executable script (text command file) */ |
| #define | AMI_IPURE 00040 /* allow loading into resident memory */ |
| #define | AMI_IARCHIVE 00020 /* not modified since bit was last set */ |
| #define | AMI_IREAD 00010 /* can be opened for reading */ |
| #define | AMI_IWRITE 00004 /* can be opened for writing */ |
| #define | AMI_IEXECUTE 00002 /* executable image, a loadable runfile */ |
| #define | AMI_IDELETE 00001 /* can be deleted */ |
| #define | THS_IFMT 0xF000 /* Theos file type mask */ |
| #define | THS_IFIFO 0x1000 /* pipe */ |
| #define | THS_IFCHR 0x2000 /* char device */ |
| #define | THS_IFSOCK 0x3000 /* socket */ |
| #define | THS_IFDIR 0x4000 /* directory */ |
| #define | THS_IFLIB 0x5000 /* library */ |
| #define | THS_IFBLK 0x6000 /* block device */ |
| #define | THS_IFREG 0x8000 /* regular file */ |
| #define | THS_IFREL 0x9000 /* relative (direct) */ |
| #define | THS_IFKEY 0xA000 /* keyed */ |
| #define | THS_IFIND 0xB000 /* indexed */ |
| #define | THS_IFRND 0xC000 /* ???? */ |
| #define | THS_IFR16 0xD000 /* 16 bit real mode program */ |
| #define | THS_IFP16 0xE000 /* 16 bit protected mode prog */ |
| #define | THS_IFP32 0xF000 /* 32 bit protected mode prog */ |
| #define | THS_IMODF 0x0800 /* modified */ |
| #define | THS_INHID 0x0400 /* not hidden */ |
| #define | THS_IEUSR 0x0200 /* erase permission: owner */ |
| #define | THS_IRUSR 0x0100 /* read permission: owner */ |
| #define | THS_IWUSR 0x0080 /* write permission: owner */ |
| #define | THS_IXUSR 0x0040 /* execute permission: owner */ |
| #define | THS_IROTH 0x0004 /* read permission: other */ |
| #define | THS_IWOTH 0x0002 /* write permission: other */ |
| #define | THS_IXOTH 0x0001 /* execute permission: other */ |
| #define | NSK_UNSTRUCTURED 0 |
| #define | NSK_OBJECTFILECODE 100 |
| #define | NSK_EDITFILECODE 101 |
| #define | LFLAG 3 /* short "ls -l" type listing */ |
| #define | d_t_buf attribs |
| #define | d_t_buf attribs |
| #define | z_modtim NULL |
Variables | |
| static ZCONST char | nullStr [] = "" |
| static ZCONST char | PlurSufx [] = "s" |
| static ZCONST char Far | ZipInfHeader2 [] |
| static ZCONST char Far | EndCentDirRec [] = "\nEnd-of-central-directory record:\n" |
| static ZCONST char Far | LineSeparators [] = "-------------------------------\n\n" |
| static ZCONST char Far | ZipFSizeVerbose [] |
| static ZCONST char Far | ActOffsetCentDir [] |
| static ZCONST char Far | SinglePartArchive1 [] |
| static ZCONST char Far | SinglePartArchive2 [] |
| static ZCONST char Far | MultiPartArchive1 [] |
| static ZCONST char Far | MultiPartArchive2 [] |
| static ZCONST char Far | MultiPartArchive3 [] |
| static ZCONST char Far | CentralDirEntry [] |
| static ZCONST char Far | ZipfileStats [] |
| static ZCONST char Far | OS_FAT [] = "MS-DOS, OS/2 or NT FAT" |
| static ZCONST char Far | OS_Amiga [] = "Amiga" |
| static ZCONST char Far | OS_VMS [] = "VMS" |
| static ZCONST char Far | OS_Unix [] = "Unix" |
| static ZCONST char Far | OS_VMCMS [] = "VM/CMS" |
| static ZCONST char Far | OS_AtariST [] = "Atari ST" |
| static ZCONST char Far | OS_HPFS [] = "OS/2 or NT HPFS" |
| static ZCONST char Far | OS_Macintosh [] = "Macintosh HFS" |
| static ZCONST char Far | OS_ZSystem [] = "Z-System" |
| static ZCONST char Far | OS_CPM [] = "CP/M" |
| static ZCONST char Far | OS_TOPS20 [] = "TOPS-20" |
| static ZCONST char Far | OS_NTFS [] = "NTFS" |
| static ZCONST char Far | OS_QDOS [] = "SMS/QDOS" |
| static ZCONST char Far | OS_Acorn [] = "Acorn RISC OS" |
| static ZCONST char Far | OS_MVS [] = "MVS" |
| static ZCONST char Far | OS_VFAT [] = "Win32 VFAT" |
| static ZCONST char Far | OS_AtheOS [] = "AtheOS" |
| static ZCONST char Far | OS_BeOS [] = "BeOS" |
| static ZCONST char Far | OS_Tandem [] = "Tandem NSK" |
| static ZCONST char Far | OS_Theos [] = "Theos" |
| static ZCONST char Far | OS_MacDarwin [] = "Mac OS/X (Darwin)" |
| static ZCONST char Far | MthdNone [] = "none (stored)" |
| static ZCONST char Far | MthdShrunk [] = "shrunk" |
| static ZCONST char Far | MthdRedF1 [] = "reduced (factor 1)" |
| static ZCONST char Far | MthdRedF2 [] = "reduced (factor 2)" |
| static ZCONST char Far | MthdRedF3 [] = "reduced (factor 3)" |
| static ZCONST char Far | MthdRedF4 [] = "reduced (factor 4)" |
| static ZCONST char Far | MthdImplode [] = "imploded" |
| static ZCONST char Far | MthdToken [] = "tokenized" |
| static ZCONST char Far | MthdDeflate [] = "deflated" |
| static ZCONST char Far | MthdDeflat64 [] = "deflated (enhanced-64k)" |
| static ZCONST char Far | MthdDCLImplode [] = "imploded (PK DCL)" |
| static ZCONST char Far | MthdBZip2 [] = "bzipped" |
| static ZCONST char Far | MthdLZMA [] = "LZMA-ed" |
| static ZCONST char Far | MthdTerse [] = "tersed (IBM)" |
| static ZCONST char Far | MthdLZ77 [] = "LZ77-compressed (IBM)" |
| static ZCONST char Far | MthdWavPack [] = "WavPacked" |
| static ZCONST char Far | MthdPPMd [] = "PPMd-ed" |
| static ZCONST char Far | DeflNorm [] = "normal" |
| static ZCONST char Far | DeflMax [] = "maximum" |
| static ZCONST char Far | DeflFast [] = "fast" |
| static ZCONST char Far | DeflSFast [] = "superfast" |
| static ZCONST char Far | ExtraBytesPreceding [] |
| static ZCONST char Far | UnknownNo [] = "unknown (%d)" |
| static ZCONST char Far | LocalHeaderOffset [] |
| static ZCONST char Far | HostOS [] |
| static ZCONST char Far | EncodeSWVer [] |
| static ZCONST char Far | MinOSCompReq [] |
| static ZCONST char Far | MinSWVerReq [] |
| static ZCONST char Far | CompressMethod [] |
| static ZCONST char Far | SlideWindowSizeImplode [] |
| static ZCONST char Far | ShannonFanoTrees [] |
| static ZCONST char Far | CompressSubtype [] |
| static ZCONST char Far | FileSecurity [] |
| static ZCONST char Far | ExtendedLocalHdr [] |
| static ZCONST char Far | FileModDate [] |
| static ZCONST char Far | CRC32Value [] |
| static ZCONST char Far | CompressedFileSize [] |
| static ZCONST char Far | UncompressedFileSize [] |
| static ZCONST char Far | FilenameLength [] |
| static ZCONST char Far | ExtraFieldLength [] |
| static ZCONST char Far | FileCommentLength [] |
| static ZCONST char Far | FileDiskNum [] |
| static ZCONST char Far | ApparentFileType [] |
| static ZCONST char Far | VMSFileAttributes [] |
| static ZCONST char Far | AmigaFileAttributes [] |
| static ZCONST char Far | UnixFileAttributes [] |
| static ZCONST char Far | NonMSDOSFileAttributes [] |
| static ZCONST char Far | MSDOSFileAttributes [] |
| static ZCONST char Far | MSDOSFileAttributesRO [] |
| static ZCONST char Far | MSDOSFileAttributesAlpha [] |
| static ZCONST char Far | TheosFileAttributes [] |
| static ZCONST char Far | TheosFTypLib [] = "Library " |
| static ZCONST char Far | TheosFTypDir [] = "Directory " |
| static ZCONST char Far | TheosFTypReg [] = "Sequential " |
| static ZCONST char Far | TheosFTypRel [] = "Direct " |
| static ZCONST char Far | TheosFTypKey [] = "Keyed " |
| static ZCONST char Far | TheosFTypInd [] = "Indexed " |
| static ZCONST char Far | TheosFTypR16 [] = " 86 program " |
| static ZCONST char Far | TheosFTypP16 [] = "286 program " |
| static ZCONST char Far | TheosFTypP32 [] = "386 program " |
| static ZCONST char Far | TheosFTypUkn [] = "??? " |
| static ZCONST char Far | ExtraFieldTrunc [] |
| static ZCONST char Far | ExtraFields [] |
| static ZCONST char Far | ExtraFieldType [] |
| static ZCONST char Far | efPKSZ64 [] = "PKWARE 64-bit sizes" |
| static ZCONST char Far | efAV [] = "PKWARE AV" |
| static ZCONST char Far | efOS2 [] = "OS/2" |
| static ZCONST char Far | efPKVMS [] = "PKWARE VMS" |
| static ZCONST char Far | efPKWin32 [] = "PKWARE Win32" |
| static ZCONST char Far | efPKUnix [] = "PKWARE Unix" |
| static ZCONST char Far | efIZVMS [] = "Info-ZIP VMS" |
| static ZCONST char Far | efIZUnix [] = "old Info-ZIP Unix/OS2/NT" |
| static ZCONST char Far | efIZUnix2 [] = "Unix UID/GID (16-bit)" |
| static ZCONST char Far | efIZUnix3 [] = "Unix UID/GID (any size)" |
| static ZCONST char Far | efTime [] = "universal time" |
| static ZCONST char Far | efU8Path [] = "UTF8 path name" |
| static ZCONST char Far | efU8Commnt [] = "UTF8 entry comment" |
| static ZCONST char Far | efJLMac [] = "old Info-ZIP Macintosh" |
| static ZCONST char Far | efMac3 [] = "new Info-ZIP Macintosh" |
| static ZCONST char Far | efZipIt [] = "ZipIt Macintosh" |
| static ZCONST char Far | efSmartZip [] = "SmartZip Macintosh" |
| static ZCONST char Far | efZipIt2 [] = "ZipIt Macintosh (short)" |
| static ZCONST char Far | efVMCMS [] = "VM/CMS" |
| static ZCONST char Far | efMVS [] = "MVS" |
| static ZCONST char Far | efACL [] = "OS/2 ACL" |
| static ZCONST char Far | efNTSD [] = "Security Descriptor" |
| static ZCONST char Far | efAtheOS [] = "AtheOS" |
| static ZCONST char Far | efBeOS [] = "BeOS" |
| static ZCONST char Far | efQDOS [] = "SMS/QDOS" |
| static ZCONST char Far | efAOSVS [] = "AOS/VS" |
| static ZCONST char Far | efSpark [] = "Acorn SparkFS" |
| static ZCONST char Far | efMD5 [] = "Fred Kantor MD5" |
| static ZCONST char Far | efASiUnix [] = "ASi Unix" |
| static ZCONST char Far | efTandem [] = "Tandem NSK" |
| static ZCONST char Far | efTheos [] = "Theos" |
| static ZCONST char Far | efUnknown [] = "unknown" |
| static ZCONST char Far | OS2EAs [] |
| static ZCONST char Far | izVMSdata [] |
| static ZCONST char Far | izVMSstored [] = "stored" |
| static ZCONST char Far | izVMSrleenc [] = "run-length encoded" |
| static ZCONST char Far | izVMSdeflat [] = "deflated" |
| static ZCONST char Far | izVMScunknw [] = "compressed(?)" |
| static ZCONST char Far * | izVMScomp [4] |
| static ZCONST char Far | ACLdata [] |
| static ZCONST char Far | NTSDData [] |
| static ZCONST char Far | UTdata [] |
| static ZCONST char Far | UTmodification [] = "modification" |
| static ZCONST char Far | UTaccess [] = "access" |
| static ZCONST char Far | UTcreation [] = "creation" |
| static ZCONST char Far | U8PthCmnComplete [] |
| static ZCONST char Far | U8PthCmnF24 [] |
| static ZCONST char Far | ZipItFname [] |
| static ZCONST char Far | Mac3data [] |
| static ZCONST char Far | MacOSdata [] |
| static ZCONST char Far | MacOSdata1 [] |
| static ZCONST char Far | MacOSJLEEflags [] = ".\n File is marked as %s" |
| static ZCONST char Far | MacOS_RF [] = "Resource-fork" |
| static ZCONST char Far | MacOS_DF [] = "Data-fork" |
| static ZCONST char Far | MacOSMAC3flags [] |
| static ZCONST char Far | AtheOSdata [] |
| static ZCONST char Far | BeOSdata [] |
| static ZCONST char Far | QDOSdata [] |
| static ZCONST char Far | AOSVSdata [] |
| static ZCONST char Far | TandemUnstr [] = "Unstructured" |
| static ZCONST char Far | TandemRel [] = "Relative" |
| static ZCONST char Far | TandemEntry [] = "Entry Sequenced" |
| static ZCONST char Far | TandemKey [] = "Key Sequenced" |
| static ZCONST char Far | TandemEdit [] = "Edit" |
| static ZCONST char Far | TandemObj [] = "Object" |
| static ZCONST char Far * | TandemFileformat [6] |
| static ZCONST char Far | Tandemdata [] |
| static ZCONST char Far | MD5data [] |
| static ZCONST char Far | First20 [] = ". The first\n 20 are: " |
| static ZCONST char Far | ColonIndent [] = ":\n " |
| static ZCONST char Far | efFormat [] = " %02x" |
| static ZCONST char Far | lExtraFieldType [] |
| static ZCONST char Far | efIZuid [] |
| static ZCONST char Far | efIZnouid [] = "GMT modification/access times only" |
| static ZCONST char Far | NoFileComment [] = "\n There is no file comment.\n" |
| static ZCONST char Far | FileCommBegin [] |
| static ZCONST char Far | FileCommEnd [] |
| static ZCONST char Far | BogusFmt [] = "%03d" |
| static ZCONST char Far | shtYMDHMTime [] = "%02u-%s-%02u %02u:%02u" |
| static ZCONST char Far | lngYMDHMSTime [] = "%u %s %u %02u:%02u:%02u" |
| static ZCONST char Far | DecimalTime [] = "%04u%02u%02u.%02u%02u%02u" |
| char *** | pargv = argv |
| __GDEF | |
| int | argc = *pargc |
| int | c |
| int | error =FALSE |
| int | negative =0 |
| int | hflag_slmv =TRUE |
| int | hflag_2 =FALSE |
| int | tflag_slm =TRUE |
| int | tflag_2v =FALSE |
| int | explicit_h =FALSE |
| int | explicit_t =FALSE |
| G | extract_flag = FALSE |
| argv = *pargv | |
| * | pargc = argc |
| return | |
| int | error_in_archive |
| unsigned | hostnum |
| unsigned | hostver = (unsigned)(G.pInfo->hostver) |
| unsigned | extnum = (unsigned)MIN(G.crec.version_needed_to_extract[1], NUM_HOSTS) |
| unsigned | extver = (unsigned)G.crec.version_needed_to_extract[0] |
| unsigned | methid = (unsigned)G.crec.compression_method |
| unsigned | methnum = find_compr_idx(G.crec.compression_method) |
| unsigned | xattr = (unsigned)((G.crec.external_file_attributes >> 16) & 0xFFFF) |
| char | workspace [12] |
| char | attribs [22] |
| ZCONST char * | varmsg_str |
| char | unkn [16] |
| static ZCONST char Far * | os [NUM_HOSTS] |
| static ZCONST char Far * | method [NUM_METHODS] |
| static ZCONST char Far * | dtypelng [4] |
| * | pEndprev |
| (* | G )((zvoid *)&G,(uch *)" ", 2L, 0) |
| else | |
| char * | slide |
| ZCONST time_t * | modtimez |
| char * | d_t_str |
| char | monthbuf [4] |
| ZCONST char * | monthstr = LoadFarStringSmall(month[mo-1]) |
| static ZCONST char Far | month [12][4] |
| mo = ((unsigned)(*datetimez >> 21) & 0x0f) | |
| dy = ((unsigned)(*datetimez >> 16) & 0x1f) | |
| hh = (((unsigned)*datetimez >> 11) & 0x1f) | |
| mm = (((unsigned)*datetimez >> 5) & 0x3f) | |
| ss = (((unsigned)*datetimez << 1) & 0x3e) | |
| yr | |
| #define AMI_IARCHIVE 00020 /* not modified since bit was last set */ |
| #define AMI_IDELETE 00001 /* can be deleted */ |
| #define AMI_IEXECUTE 00002 /* executable image, a loadable runfile */ |
| #define AMI_IFDIR 04000 /* Amiga directory */ |
| #define AMI_IFREG 02000 /* Amiga regular file */ |
| #define AMI_IPURE 00040 /* allow loading into resident memory */ |
| #define AMI_IREAD 00010 /* can be opened for reading */ |
| #define AMI_IWRITE 00004 /* can be opened for writing */ |
| #define d_t_buf attribs |
| #define d_t_buf attribs |
| #define LFLAG 3 /* short "ls -l" type listing */ |
| #define NSK_EDITFILECODE 101 |
| #define NSK_OBJECTFILECODE 100 |
| #define NSK_UNSTRUCTURED 0 |
| #define THS_IEUSR 0x0200 /* erase permission: owner */ |
| #define THS_IFBLK 0x6000 /* block device */ |
| #define THS_IFCHR 0x2000 /* char device */ |
| #define THS_IFDIR 0x4000 /* directory */ |
| #define THS_IFIFO 0x1000 /* pipe */ |
| #define THS_IFIND 0xB000 /* indexed */ |
| #define THS_IFKEY 0xA000 /* keyed */ |
| #define THS_IFLIB 0x5000 /* library */ |
| #define THS_IFP16 0xE000 /* 16 bit protected mode prog */ |
| #define THS_IFP32 0xF000 /* 32 bit protected mode prog */ |
| #define THS_IFR16 0xD000 /* 16 bit real mode program */ |
| #define THS_IFREG 0x8000 /* regular file */ |
| #define THS_IFREL 0x9000 /* relative (direct) */ |
| #define THS_IFRND 0xC000 /* ???? */ |
| #define THS_IFSOCK 0x3000 /* socket */ |
| #define THS_IMODF 0x0800 /* modified */ |
| #define THS_INHID 0x0400 /* not hidden */ |
| #define THS_IROTH 0x0004 /* read permission: other */ |
| #define THS_IRUSR 0x0100 /* read permission: owner */ |
| #define THS_IWOTH 0x0002 /* write permission: other */ |
| #define THS_IWUSR 0x0080 /* write permission: owner */ |
| #define THS_IXOTH 0x0001 /* execute permission: other */ |
| #define THS_IXUSR 0x0040 /* execute permission: owner */ |
| #define UNX_IFBLK 0060000 /* Unix block special (not Amiga) */ |
| #define UNX_IFCHR 0020000 /* Unix character special (not Amiga) */ |
| #define UNX_IFDIR 0040000 /* Unix directory */ |
| #define UNX_IFIFO 0010000 /* Unix fifo (BCC, not MSC or Amiga) */ |
| #define UNX_IFLNK 0120000 /* Unix symbolic link (not SysV, Amiga) */ |
| #define UNX_IFREG 0100000 /* Unix regular file */ |
| #define UNX_IFSOCK 0140000 /* Unix socket (BSD, not SysV or Amiga) */ |
| #define UNX_IRGRP 00040 /* Unix read permission: group */ |
| #define UNX_IROTH 00004 /* Unix read permission: other */ |
| #define UNX_IRUSR 00400 /* Unix read permission: owner */ |
| #define UNX_IRWXG 00070 /* Unix read, write, execute: group */ |
| #define UNX_IRWXO 00007 /* Unix read, write, execute: other */ |
| #define UNX_IRWXU 00700 /* Unix read, write, execute: owner */ |
| #define UNX_ISGID 02000 /* Unix set group id on execution */ |
| #define UNX_ISUID 04000 /* Unix set user id on execution */ |
| #define UNX_ISVTX 01000 /* Unix directory permissions control */ |
| #define UNX_IWGRP 00020 /* Unix write permission: group */ |
| #define UNX_IWOTH 00002 /* Unix write permission: other */ |
| #define UNX_IWUSR 00200 /* Unix write permission: owner */ |
| #define UNX_IXGRP 00010 /* Unix execute permission: group */ |
| #define UNX_IXOTH 00001 /* Unix execute permission: other */ |
| #define UNX_IXUSR 00100 /* Unix execute permission: owner */ |
| #define UNZIP_INTERNAL |
| #define VMS_IWGRP UNX_IWGRP /* VMS write/group */ |
| #define VMS_IWOTH UNX_IWOTH /* VMS write/other */ |
| #define VMS_IWUSR UNX_IWUSR /* VMS write/owner */ |
| #define VMS_IXGRP UNX_IXGRP /* VMS execute/group */ |
| #define VMS_IXOTH UNX_IXOTH /* VMS execute/other */ |
| #define VMS_IXUSR UNX_IXUSR /* VMS execute/owner */ |
| #define z_modtim NULL |
| fnprint | ( | __G | ) |
| if | ( | !G.crec. | file_comment_length | ) |
| if | ( | (argc--==0)|| | error | ) |
| else if | ( | (hostnum !=FS_FAT_) &&(hostnum !=FS_HPFS_) &&(hostnum !=FS_NTFS_) &&(hostnum !=FS_VFAT_) &&(hostnum !=ACORN_) &&(hostnum !=VM_CMS_) &&(hostnum !=MVS_) | ) |
| if | ( | (uO.lflag< 0)||((argc > 0) &&(uO.lflag==0)) | ) |
| if | ( | (xattr=(unsigned)((G.crec.external_file_attributes &0xC000) > > 12)) & | 8 | ) |
| if | ( | (xattr=(unsigned)(G.crec.external_file_attributes &0xFF)) | = = 0 | ) |
|
pure virtual |
| if | ( | hostnum >= | NUM_HOSTS | ) |
| if | ( | methnum >= | NUM_METHODS | ) |
| if | ( | uO. | lflag, |
| 9 | ) |
| else if | ( | uO. | T_flag | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(ApparentFileType),(G.crec.internal_file_attributes &1)? "text" :(G.crec.internal_file_attributes &2)? "ebcdic" :"binary") | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(CompressedFileSize), FmZofft(G.crec.csize, NULL, "u")) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(CompressMethod), varmsg_str) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(CRC32Value), G.crec.crc32) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(EncodeSWVer), hostver/10, hostver%10) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(ExtendedLocalHdr),(G.crec.general_purpose_bit_flag &8) ? "yes" :"no") | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(ExtraFieldLength), G.crec.extra_field_length) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FileCommEnd)) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FileCommentLength), G.crec.file_comment_length) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FileDiskNum),(ulg)(G.crec.disk_number_start+1)) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FileModDate), d_t_buf) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FilenameLength), G.crec.filename_length) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(FileSecurity),(G.crec.general_purpose_bit_flag &1) ? nullStr :"not ") | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(HostOS), varmsg_str) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(LocalHeaderOffset), FmZofft(G.crec.relative_offset_local_header, NULL, "u"), FmZofft(G.crec.relative_offset_local_header, FZOFFT_HEX_DOT_WID, "X")) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(MinOSCompReq), varmsg_str) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(MinSWVerReq), extver/10, extver%10) | ) |
| Info | ( | slide | , |
| 0 | , | ||
| ((char *) slide, LoadFarString(UncompressedFileSize), FmZofft(G.crec.ucsize, NULL, "u")) | ) |
| else LoadFarString | ( | DecimalTime | ) |
| LoadFarString | ( | lngYMDHMSTime | ) |
| char LoadFarString | ( | NoFileComment | ) |
|
static |
|
static |
| else sprintf | ( | d_t_str | , |
| LoadFarString(shtYMDHMTime) | , | ||
| yr% | 100, | ||
| monthstr | , | ||
| dy | , | ||
| hh | , | ||
| mm | ) |
| while | ( | -- | argc, |
| 0 && | (*++argv)[0] = = '-' ) |
|
static |
| __GDEF |
| argc = *pargc |
| argv = *pargv |
| char attribs[22] |
| int c |
| return d_t_str |
| else dy = ((unsigned)(*datetimez >> 16) & 0x1f) |
| else |
| return error_in_archive |
| extver = (unsigned)G.crec.version_needed_to_extract[0] |
| else hh = (((unsigned)*datetimez >> 11) & 0x1f) |
| hostver = (unsigned)(G.pInfo->hostver) |
| methid = (unsigned)G.crec.compression_method |
| methnum = find_compr_idx(G.crec.compression_method) |
|
static |
| else mm = (((unsigned)*datetimez >> 5) & 0x3f) |
| else mo = ((unsigned)(*datetimez >> 21) & 0x0f) |
| ZCONST time_t* modtimez |
| char monthbuf[4] |
| else monthstr = LoadFarStringSmall(month[mo-1]) |
| int negative =0 |
|
static |
| * pargc = argc |
| * pargv = argv |
| * pEndprev |
|
static |
| return |
| char* slide |
| else ss = (((unsigned)*datetimez << 1) & 0x3e) |
| char unkn[16] |
| ZCONST char* varmsg_str |
| char workspace[12] |
| xattr = (unsigned)((G.crec.external_file_attributes >> 16) & 0xFFFF) |
| else yr |