ZIP_ERRORS(3) Library Functions Manual ZIP_ERRORS(3)NAME
zip_errors - list of all libzip error codes
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
DESCRIPTION
The following error codes are used by libzip:
[ZIP_ER_OK] No error.
[ZIP_ER_MULTIDISK] Multi-disk zip archives not supported.
[ZIP_ER_RENAME] Renaming temporary file failed.
[ZIP_ER_CLOSE] Closing zip archive failed.
[ZIP_ER_SEEK] Seek error.
[ZIP_ER_READ] Read error.
[ZIP_ER_WRITE] Write error.
[ZIP_ER_CRC] CRC error.
[ZIP_ER_ZIPCLOSED] Containing zip archive was closed.
[ZIP_ER_NOENT] No such file.
[ZIP_ER_EXISTS] File already exists.
[ZIP_ER_OPEN] Can't open file.
[ZIP_ER_TMPOPEN] Failure to create temporary file.
[ZIP_ER_ZLIB] Zlib error.
[ZIP_ER_MEMORY] Malloc failure.
[ZIP_ER_CHANGED] Entry has been changed.
[ZIP_ER_COMPNOTSUPP] Compression method not supported.
[ZIP_ER_EOF] Premature EOF.
[ZIP_ER_INVAL] Invalid argument.
[ZIP_ER_NOZIP] Not a zip archive.
[ZIP_ER_INTERNAL] Internal error.
[ZIP_ER_INCONS] Zip archive inconsistent.
[ZIP_ER_REMOVE] Can't remove file.
[ZIP_ER_DELETED] Entry has been deleted.
[ZIP_ER_ENCRNOTSUPP] Encryption method not supported.
[ZIP_ER_RDONLY] Read-only archive.
[ZIP_ER_NOPASSWD] No password provided.
[ZIP_ER_WRONGPASSWD] Wrong password provided.
AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH March 10, 2009 ZIP_ERRORS(3)
Check Out this Related Man Page
ZIP_CLOSE(3) Library Functions Manual ZIP_CLOSE(3)NAME
zip_close - close zip archive
LIBRARY
libzip (-lzip)
SYNOPSIS
#include <zip.h>
int zip_close(struct zip *archive);
DESCRIPTION
The zip_close function closes archive and frees the memory allocated for it. If any files within were changed, those changes are written
to disk first. If writing changes fails, zip_close fails and archive is left unchanged. If archive contains no files, the file is com-
pletely removed (no empty archive is written).
RETURN VALUES
Upon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.
ERRORS
zip_close will fail if:
[ZIP_ER_EOF]
Unexpected end-of-file found while reading from a file.
[ZIP_ER_INTERNAL]
The callback function of an added or replaced file returned an error but failed to report which.
[ZIP_ER_INVAL]
The path argument is NULL.
[ZIP_ER_MEMORY]
Required memory could not be allocated.
[ZIP_ER_NOZIP]
File is not a zip archive.
[ZIP_ER_READ]
A file read failed.
[ZIP_ER_RENAME]
A temporary file could not be renamed to its final name.
[ZIP_ER_SEEK]
A file seek failed.
[ZIP_ER_TMPOPEN]
A temporary file could not be created.
[ZIP_ER_WRITE]
A file write failed.
[ZIP_ER_ZLIB]
An error occurred while (de)compressing a stream with zlib(3).
Additionally, any errors returned by the callback function for added or replaced files will be passed back.
SEE ALSO libzip(3), zip_error_get(3), zip_fdopen(3), zip_open(3), zip_strerror(3)AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
NiH February 15, 2009 ZIP_CLOSE(3)
Hello everyone,
I have a script that pulls a text file out of a zip archive and updates the file. What I need to do is put it back in the zip archive and replace the old one, but I am having no luck.
Everything I search on forums or internet points to the command zip, that command is not... (6 Replies)
Having problems using the -m option when zipping up a file
# zip -m test *.jpg
zip error: Invalid command arguments (no such option: .)
# zip -m test.jpg *.jpg
zip error: Invalid command arguments (no such option: .)
any clue on what is causing this error?
It used to work... (5 Replies)
I am trying to zip a file with password protection.
I have read all or atleast most of the threads on the website, but couldn't come up with a solution.
I am running ZIP version 2.3 on HP-UX but I dont see the -P (password) option. I read somewhere that free versions of zip don't come with... (5 Replies)
Hi,
Suppose I have a csv file, each line look like this:
ABC Company, 1999, March, caucasian owned, 123 BroadWay NY 92939-2222
How do I create two new columns at the end, one for state, one for zip.
So that the line is
ABC Company, 1999, March, caucasian owned, 123 BroadWay NY... (2 Replies)