ZIP_ERRORS(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ZIP_ERRORS ✨

okay bestie, pull up a chair 🫢 this is the manual for zip_errors β€” the full roster of every error code that libzip can throw at you. it's giving "group chat of everything that can go wrong" and honestly? iconic. let's get into it πŸ’…

πŸ“š LIBRARY

libzip (-lzip) πŸ’–

🌸 SYNOPSIS

#include <zip.h>

πŸ’« DESCRIPTION

so here's the tea, bestie: libzip uses these error codes right here πŸ‘‡ every single one, no skips. memorise them or just come back here when your code's acting up (iykyk):

  • [ZIP_ER_CANCELLED] β€” the operation got cancelled. someone said "never mind" and meant it πŸ’€
  • [ZIP_ER_CHANGED] β€” this entry has been changed. it's not the same zipfile it was when you met, okay?
  • [ZIP_ER_CLOSE] β€” closing the zip archive failed. so close, yet so far 😭
  • [ZIP_ER_COMPNOTSUPP] β€” that compression method? not supported. we simply do not do that here 🚫
  • [ZIP_ER_COMPRESSED_DATA] β€” the compressed data is invalid. it's giving corrupted, ngl
  • [ZIP_ER_CRC] β€” CRC error. the checksum said no πŸ’€
  • [ZIP_ER_DATA_LENGTH] β€” unexpected length of data. it was not supposed to be that long (or that short) πŸ™ˆ
  • [ZIP_ER_DELETED] β€” this entry has been deleted. rip bozo πŸͺ¦
  • [ZIP_ER_ENCRNOTSUPP] β€” encryption method not supported. the lock is real but the key isn't πŸ”
  • [ZIP_ER_EOF] β€” premature end of file. it stopped early and honestly same 😭
  • [ZIP_ER_EXISTS] β€” file already exists. hi bestie, you're already here πŸ’…
  • [ZIP_ER_INCONS] β€” zip archive inconsistent. it's contradicting itself, main character energy gone wrong
  • [ZIP_ER_INTERNAL] β€” internal error. that's a me problem not a you problem 🫠
  • [ZIP_ER_INUSE] β€” resource still in use. it's busy, it can't come to the phone right now βœ‹
  • [ZIP_ER_INVAL] β€” invalid argument. you handed it something cursed πŸ“
  • [ZIP_ER_MEMORY] β€” malloc failure. out of memory, out of vibes πŸ˜”
  • [ZIP_ER_MULTIDISK] β€” multi-disk zip archives not supported. one disk only, we're monogamous πŸ’–
  • [ZIP_ER_NOENT] β€” no such file. it's not there. it never was. ghosted πŸ‘»
  • [ZIP_ER_NOPASSWD] β€” no password provided. you can't get in without the secret 🀫
  • [ZIP_ER_NOT_ALLOWED] β€” not allowed in torrentzip. torrentzip said absolutely not 🚫
  • [ZIP_ER_NOZIP] β€” not a zip archive. bestie… that's not a zip 🧐
  • [ZIP_ER_OK] β€” no error. the rarest and most beautiful of all ✨ slay ✨
  • [ZIP_ER_OPEN] β€” can't open file. it said "not today" πŸšͺ
  • [ZIP_ER_OPNOTSUPP] β€” operation not supported. we don't do that πŸ’…
  • [ZIP_ER_RDONLY] β€” read-only archive. look but don't touch, periodt βœ‹
  • [ZIP_ER_READ] β€” read error. the reading simply did not read πŸ“–
  • [ZIP_ER_REMOVE] β€” can't remove file. it's refusing to leave the party 😀
  • [ZIP_ER_RENAME] β€” renaming temporary file failed. the glow-up didn't take πŸ’€
  • [ZIP_ER_SEEK] β€” seek error. it got lost looking for itself 🧭
  • [ZIP_ER_TELL] β€” tell error. it won't say where it is πŸ™Š
  • [ZIP_ER_TMPOPEN] β€” failure to create temporary file. the temp file said "no thoughts, head empty" 🫠
  • [ZIP_ER_TRUNCATED_ZIP] β€” possibly truncated or corrupted zip archive. it's been through something, lowkey 😭
  • [ZIP_ER_WRITE] β€” write error. the words would not word ✍️
  • [ZIP_ER_WRONGPASSWD] β€” wrong password provided. that's not the vibe, try again πŸ”‘
  • [ZIP_ER_ZIPCLOSED] β€” containing zip archive was closed. the parent left, you're on your own now πŸ₯²
  • [ZIP_ER_ZLIB] β€” zlib error. zlib is going through it πŸŒ€

πŸ‘‘ AUTHORS

all the credit goes to these legends: Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> 🫢 absolute icons, no cap.


okay that's the whole page, bestie!! this was the Debian version of the ZIP_ERRORS(3) manual, dated March 15, 2024 πŸŽ€ go forth and debug, you've got this πŸ’–βœ¨πŸ¦‹