1LIBZIP(3)                BSD Library Functions Manual                LIBZIP(3)
2

NAME

4     libzip — library for manipulating zip archives
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11

DESCRIPTION

13     libzip is a library for reading, creating, and modifying zip archives.
14
15     The main design criteria for libzip were:
16     ·   Do not create corrupt files, even in case of errors.
17     ·   Do not delete data.
18     ·   Be efficient.
19
20     For this reason, when modifying zip archives, libzip writes to a tempo‐
21     rary file and replaces the original zip archive atomically.
22
23     Below there are two sections listing functions: one for how to read from
24     zip archives and one for how to create/modify them.
25

READING ZIP ARCHIVES

27   open archive
28     ·   zip_open(3)
29     ·   zip_fdopen(3)
30
31   find files
32     ·   zip_name_locate(3)
33
34   read files
35     ·   zip_fopen(3)
36     ·   zip_fopen_encrypted(3)
37     ·   zip_fopen_index(3)
38     ·   zip_fopen_index_encrypted(3)
39     ·   zip_fread(3)
40     ·   zip_fseek(3) (uncompressed files only)
41     ·   zip_ftell(3) (uncompressed files only)
42     ·   zip_fclose(3)
43
44   close archive
45     ·   zip_close(3)
46
47   miscellaneous
48     ·   zip_stat(3)
49     ·   zip_compression_method_supported(3)
50     ·   zip_encryption_method_supported(3)
51     ·   zip_file_get_comment(3)
52     ·   zip_file_get_external_attributes(3)
53     ·   zip_get_archive_comment(3)
54     ·   zip_get_archive_flag(3)
55     ·   zip_get_name(3)
56     ·   zip_get_num_entries(3)
57     ·   zip_set_default_password(3)
58

CREATING/MODIFYING ZIP ARCHIVES

60   create/open archive
61     ·   zip_open(3)
62
63   add/change files and directories
64     ·   zip_dir_add(3)
65     ·   zip_file_add(3)
66     ·   zip_file_replace(3)
67     ·   zip_file_set_comment(3)
68     ·   zip_file_set_dostime(3)
69     ·   zip_file_set_external_attributes(3)
70     ·   zip_file_set_encryption(3)
71     ·   zip_file_set_mtime(3)
72     ·   zip_set_file_compression(3)
73     ·   zip_source_buffer(3)
74     ·   zip_source_file(3)
75     ·   zip_source_filep(3)
76     ·   zip_source_free(3)
77     ·   zip_source_function(3)
78     ·   zip_source_zip(3)
79
80   rename files
81     ·   zip_rename(3)
82
83   delete files
84     ·   zip_delete(3)
85
86   revert changes
87     ·   zip_unchange(3)
88     ·   zip_unchange_all(3)
89     ·   zip_unchange_archive(3)
90
91   read/modify extra fields
92     ·   zip_file_extra_field_by_id(3)
93     ·   zip_file_extra_field_delete(3)
94     ·   zip_file_extra_field_delete_by_id(3)
95     ·   zip_file_extra_field_get(3)
96     ·   zip_file_extra_field_set(3)
97     ·   zip_file_extra_fields_count(3)
98     ·   zip_file_extra_fields_count_by_id(3)
99
100   close archive (writing)
101     ·   zip_close(3)
102     ·   zip_discard(3)
103
104   miscellaneous (writing)
105     ·   zip_file_attributes_init(3)
106     ·   zip_libzip_version(3)
107     ·   zip_register_progress_callback_with_state(3)
108     ·   zip_set_archive_comment(3)
109     ·   zip_set_archive_flag(3)
110     ·   zip_source(3)
111

ERROR HANDLING

113     ·   zip_error_strerror(3)
114     ·   zip_strerror(3)
115     ·   zip_file_strerror(3)
116     ·   zip_get_error(3)
117     ·   zip_error_init_with_code(3)
118     ·   zip_error_system_type(3)
119     ·   zip_errors(3)
120

AUTHORS

122     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
123
124BSD                             April 17, 2020                             BSD
Impressum