---
name: "zip_errors"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_errors"
---

# zip\_errors(3)

list of all libzip error codes

## 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\_CANCELLED\]

  Operation cancelled.

- \[ZIP\_ER\_CHANGED\]

  Entry has been changed.

- \[ZIP\_ER\_CLOSE\]

  Closing zip archive failed.

- \[ZIP\_ER\_COMPNOTSUPP\]

  Compression method not supported.

- \[ZIP\_ER\_COMPRESSED\_DATA\]

  Compressed data invalid.

- \[ZIP\_ER\_CRC\]

  CRC error.

- \[ZIP\_ER\_DATA\_LENGTH\]

  Unexpected length of data.

- \[ZIP\_ER\_DELETED\]

  Entry has been deleted.

- \[ZIP\_ER\_ENCRNOTSUPP\]

  Encryption method not supported.

- \[ZIP\_ER\_EOF\]

  Premature end of file.

- \[ZIP\_ER\_EXISTS\]

  File already exists.

- \[ZIP\_ER\_INCONS\]

  Zip archive inconsistent.

- \[ZIP\_ER\_INTERNAL\]

  Internal error.

- \[ZIP\_ER\_INUSE\]

  Resource still in use.

- \[ZIP\_ER\_INVAL\]

  Invalid argument.

- \[ZIP\_ER\_MEMORY\]

  Malloc failure.

- \[ZIP\_ER\_MULTIDISK\]

  Multi-disk zip archives not supported.

- \[ZIP\_ER\_NOENT\]

  No such file.

- \[ZIP\_ER\_NOPASSWD\]

  No password provided.

- \[ZIP\_ER\_NOT\_ALLOWED\]

  Not allowed in torrentzip.

- \[ZIP\_ER\_NOZIP\]

  Not a zip archive.

- \[ZIP\_ER\_OK\]

  No error.

- \[ZIP\_ER\_OPEN\]

  Can't open file.

- \[ZIP\_ER\_OPNOTSUPP\]

  Operation not supported.

- \[ZIP\_ER\_RDONLY\]

  Read-only archive.

- \[ZIP\_ER\_READ\]

  Read error.

- \[ZIP\_ER\_REMOVE\]

  Can't remove file.

- \[ZIP\_ER\_RENAME\]

  Renaming temporary file failed.

- \[ZIP\_ER\_SEEK\]

  Seek error.

- \[ZIP\_ER\_TELL\]

  Tell error.

- \[ZIP\_ER\_TMPOPEN\]

  Failure to create temporary file.

- \[ZIP\_ER\_TRUNCATED\_ZIP\]

  Possibly truncated or corrupted zip archive.

- \[ZIP\_ER\_WRITE\]

  Write error.

- \[ZIP\_ER\_WRONGPASSWD\]

  Wrong password provided.

- \[ZIP\_ER\_ZIPCLOSED\]

  Containing zip archive was closed.

- \[ZIP\_ER\_ZLIB\]

  Zlib error.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
