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_dostime(3)
67     ·   zip_file_set_external_attributes(3)
68     ·   zip_file_set_encryption(3)
69     ·   zip_file_set_mtime(3)
70     ·   zip_set_file_compression(3)
71     ·   zip_source_buffer(3)
72     ·   zip_source_file(3)
73     ·   zip_source_filep(3)
74     ·   zip_source_free(3)
75     ·   zip_source_function(3)
76     ·   zip_source_zip(3)
77
78   rename files
79     ·   zip_rename(3)
80
81   delete files
82     ·   zip_delete(3)
83
84   revert changes
85     ·   zip_unchange(3)
86     ·   zip_unchange_all(3)
87     ·   zip_unchange_archive(3)
88
89   read/modify extra fields
90     ·   zip_file_extra_field_by_id(3)
91     ·   zip_file_extra_field_delete(3)
92     ·   zip_file_extra_field_delete_by_id(3)
93     ·   zip_file_extra_field_get(3)
94     ·   zip_file_extra_field_set(3)
95     ·   zip_file_extra_fields_count(3)
96     ·   zip_file_extra_fields_count_by_id(3)
97
98   close archive (writing)
99     ·   zip_close(3)
100     ·   zip_discard(3)
101
102   miscellaneous (writing)
103     ·   zip_libzip_version(3)
104     ·   zip_register_progress_callback_with_state(3)
105     ·   zip_set_archive_comment(3)
106     ·   zip_set_archive_flag(3)
107     ·   zip_source(3)
108

ERROR HANDLING

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

AUTHORS

119     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
120
121BSD                             January 7, 2020                            BSD
Impressum