ZIP_ERROR_SYSTEM_TYPE(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_ERROR_SYSTEM_TYPE πŸ’–

okay bestie, gather round, because we're diving into libzip's manual pages and honestly? it's giving ✨main character energy✨. this one lives in the Library Functions Manual and it's all about peeking at why a system error is being so dramatic. let's go πŸ¦‹


🌸 NAME 🌸

zip_error_system_type β€” return type of system error

like, it literally tells you what flavor of system error you're dealing with. no cap.


πŸŽ€ LIBRARY πŸŽ€

libzip (-lzip)

that's the one you link against, bestie. don't forget the -lzip or the linker will simply pass away πŸ’€


✨ SYNOPSIS ✨

#include <zip.h>

int
zip_error_system_type(const zip_error_t *ze);

so you gotta pull in <zip.h> first, and then this lil function takes one pointer to a zip_error_t and hands you back an int. that's it. that's the whole vibe 🫢


πŸ’… DESCRIPTION πŸ’…

okay so zip_error_system_type() returns the type of the system specific part for the zip_error ze. basically it's asking: "hey, what's going on with the system-y half of this error?" πŸ‘‘

currently, the following system types are defined β€” and these are the only ones, periodt:

  • ZIP_ET_NONE β€” the system specific part of ze is unused. it's just sitting there, unbothered, moisturized, in its lane πŸ™ˆ
  • ZIP_ET_SYS β€” the system specific part of ze is an errno(2). classic system error behavior, honestly iconic.
  • ZIP_ET_ZLIB β€” the system specific part of ze is a zlib(3) error. zlib said "I'll handle this one" πŸ’œ

so yeah, three possibilities. pick your fighter. 🌈


πŸ”₯ SEE ALSO πŸ”₯

go read these too, bestie, they're the friends of this page and they ate fr fr πŸ’–


⭐ HISTORY ⭐

zip_error_system_type() was added in libzip 1.0. so it's been around for a minute β€” a true veteran of the libzip cinematic universe πŸ‘‘


πŸ¦‹ AUTHORS πŸ¦‹

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>

two absolute legends. we stan. 🫢


and that's the whole page, bestie! this one shipped with Debian on December 18, 2017 β€” so if you were out here living your life that winter, this page was already doing its thing. slay πŸ’…βœ¨πŸŽ€