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_file_get_comment(3)
50     ·   zip_file_get_external_attributes(3)
51     ·   zip_get_archive_comment(3)
52     ·   zip_get_archive_flag(3)
53     ·   zip_get_name(3)
54     ·   zip_get_num_entries(3)
55     ·   zip_set_default_password(3)
56

CREATING/MODIFYING ZIP ARCHIVES

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

ERROR HANDLING

109     ·   zip_error_strerror(3)
110     ·   zip_strerror(3)
111     ·   zip_file_strerror(3)
112     ·   zip_get_error(3)
113     ·   zip_error_init_with_code(3)
114     ·   zip_error_system_type(3)
115     ·   zip_errors(3)
116

AUTHORS

118     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
119
120BSD                           September 29, 2018                           BSD
Impressum