disk = zzip_mem_disk_open (argv[1]);
if (! disk) {
+ DBG3("disk_open failed [%i] %s", errno, strerror(errno));
perror(argv[1]);
return exitcode(errno);
}
#include <zzip/__mkdir.h>
#include <zzip/__string.h>
#include <zzip/__fnmatch.h>
+#include <zzip/__debug.h>
#include "unzzipcat-zip.h"
#include "unzzip-states.h"
disk = zzip_opendir (argv[1]);
if (! disk) {
+ DBG3("opendir failed [%i] %s", errno, strerror(errno));
perror(argv[1]);
return exitcode(errno);
}
unzzip_cat_file (disk, name, out);
if (extract) fclose(out);
}
+ DBG2("readdir done %s", strerror(errno));
}
else
{ /* list only the matching entries - in order of zip directory */
*/
#include <zzip/memdisk.h>
+#include <zzip/__debug.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
disk = zzip_mem_disk_open (argv[1]);
if (! disk) {
+ DBG3("disk_open failed [%i] %s", errno, strerror(errno));
perror(argv[1]);
return exitcode(errno);
}
if (argc == 2)
{ /* list all */
ZZIP_MEM_ENTRY* entry = zzip_mem_disk_findfirst(disk);
+ DBG2("findfirst %p", entry);
for (; entry ; entry = zzip_mem_disk_findnext(disk, entry))
{
char* name = zzip_mem_entry_to_name (entry);
*/
#include <zzip/lib.h>
+#include <zzip/__debug.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
{
int argn;
ZZIP_DIR* disk;
-
+
if (argc == 1)
{
printf (__FILE__" version "ZZIP_PACKAGE" "ZZIP_VERSION"\n");
disk = zzip_opendir (argv[1]);
if (! disk) {
+ DBG3("opendir failed [%i] %s", errno, strerror(errno));
perror(argv[1]);
return exitcode(errno);
}
printf ("%lli/%lli %s %s\n", usize, csize, defl, name);
}
}
+ DBG2("readdir done %s", strerror(errno));
}
else
{ /* list only the matching entries - in order of zip directory */
}
}
}
+ DBG2("readdir done %s", strerror(errno));
}
zzip_closedir(disk);
return 0;