1ZIP_FILE_SET_EXTERNAL... BSD Library Functions Manual ZIP_FILE_SET_EXTERNAL...
2

NAME

4     zip_file_set_external_attributes — set external attributes for file in
5     zip
6

LIBRARY

8     libzip (-lzip)
9

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUES

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

ERRORS

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

SEE ALSO

39     libzip(3), zip_file_get_external_attributes(3)
40

HISTORY

42     zip_file_set_external_attributes() was added in libzip 0.11.2.
43

AUTHORS

45     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
46
47BSD                            December 18, 2017                           BSD
Impressum