Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zip_errors(3) [centos man page]

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_OPEN(3)						     Library Functions Manual						       ZIP_OPEN(3)

NAME
zip_open - open zip archive LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> struct zip * zip_open(const char *path, int flags, int *errorp); DESCRIPTION
The zip archive specified by path is opened and a pointer to a struct zip, used to manipulate the archive, is returned. The are specified by or'ing the following values, or 0 for none of them. ZIP_CREATE Create the archive if it does not exist. ZIP_EXCL Error if archive already exists. ZIP_CHECKCONS Perform additional consistency checks on the archive, and error if they fail. If an error occurs and errorp is non-NULL, it will be set to the corresponding error code. RETURN VALUES
Upon successful completion zip_open returns a struct zip pointer. Otherwise, NULL is returned and *errorp is set to indicate the error. ERRORS
The archive specified by path is opened unless: [ZIP_ER_EXISTS] The file specified by path exists and ZIP_EXCL is set. [ZIP_ER_INCONS] Inconsistencies were found in the file specified by path and ZIP_CHECKCONS was specified. [ZIP_ER_INVAL] The path argument is NULL. [ZIP_ER_MEMORY] Required memory could not be allocated. [ZIP_ER_NOENT] The file specified by path does not exist and ZIP_CREATE is not set. [ZIP_ER_NOZIP] The file specified by path is not a zip archive. [ZIP_ER_OPEN] The file specified by path could not be opened. [ZIP_ER_READ] A read error occurred; see for details. [ZIP_ER_SEEK] The file specified by path does not allow seeks. SEE ALSO
libzip(3), zip_close(3), zip_error_to_str(3), zip_fdopen(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH February 15, 2009 ZIP_OPEN(3)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Disk-Spanning Zip/Tar-File

I don't know how to create a disk-spanning archive using UNIX. Could someone please help me out? (1 Reply)
Discussion started by: mrosengarth
1 Replies

2. AIX

Updating a File in a Zip Archive

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)
Discussion started by: dbridle
6 Replies

3. UNIX for Dummies Questions & Answers

zip error

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)
Discussion started by: mcraul
5 Replies

4. UNIX for Dummies Questions & Answers

Zip file with password protection

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)
Discussion started by: pintu
5 Replies

5. Shell Programming and Scripting

Use awk to pick out zip code

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)
Discussion started by: grossgermany
2 Replies

6. UNIX for Advanced & Expert Users

Rename a file to a file_current datetime in a shell script

Hi all, Could anyone suggest me on Renaming a file to a file_current datetime in a shell script. (3 Replies)
Discussion started by: Nithin
3 Replies