ZIP_ERROR_GET_SYS_TYPE(3)
β¨ ZIP_ERROR_GET_SYS_TYPE π
okay bestie, gather round, because we need to talk about zip_error_get_sys_type β she's an iconic little function from the Library Functions Manual section of the libzip docs, but she is also, and I say this with love, obsolete. π«Ά
π¦ NAME π¦
zip_error_get_sys_type β get the type of a system error code (yes, that's the obsolete interface, no cap, the manpage literally says so π)
π LIBRARY π
libzip (-lzip)
π SYNOPSIS π
#include <zip.h>
int
zip_error_get_sys_type(int ze);
π DESCRIPTION π
okay so listen. The function zip_error_get_sys_type() is deprecated. Like, she still works, but the glow-up already happened and it's giving legacy. Use zip_error_init_with_code(3) and zip_error_system_type(3) instead. β¨
Here's the before pic, if you will β replace this:
int i = zip_error_get_sys_type(ze);
with this:
zip_error_t error;
zip_error_init_with_code(&error, ze);
int i = zip_error_system_type(&error);
see how much cleaner that is?? the way that the modern version actually inits a whole zip_error_t firstβ¦ main character energy honestly π
π SEE ALSO π
π HISTORY π
zip_error_get_sys_type() was added in libzip 0.6. Then in libzip 1.0 she got deprecated β use zip_error_system_type() instead. a whole era, honestly π
π«Ά AUTHORS π«Ά
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
and that's the whole page, bestie!! this one shipped with Debian, dated December 18, 2017, fr fr β k bye, go call zip_error_system_type() instead π
πΈ
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms