1ZIP_FILE_SET_EXTERNAL... BSD Library Functions Manual ZIP_FILE_SET_EXTERNAL...
2
4 zip_file_set_external_attributes — set external attributes for file in
5 zip
6
8 libzip (-lzip)
9
11 #include <zip.h>
12
13 int
14 zip_file_set_external_attributes(zip_t *archive, zip_uint64_t index,
15 zip_flags_t flags, zip_uint8_t opsys, zip_uint32_t attributes);
16
18 The zip_file_set_external_attributes() function sets the operating system
19 and external attributes for the file at position index in the zip ar‐
20 chive. Currently, no flags are supported.
21
22 For a list of known opsys values, see
23 zip_file_get_external_attributes(3).
24
26 Upon successful completion 0 is returned. Otherwise, -1 is returned and
27 the error information in archive is set to indicate the error.
28
30 zip_file_set_external_attributes() fails if:
31
32 [ZIP_ER_INVAL] index is not a valid file index in archive.
33
34 [ZIP_ER_MEMORY] Required memory could not be allocated.
35
36 [ZIP_ER_RDONLY] The archive was opened in read-only mode.
37
39 libzip(3), zip_file_get_external_attributes(3)
40
42 zip_file_set_external_attributes() was added in libzip 0.11.2.
43
45 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
46
47BSD December 18, 2017 BSD