|
NAMEzip_file_extra_field_set —
set extra field for file in zip
LIBRARYlibzip (-lzip)SYNOPSIS#include <zip.h>
int
DESCRIPTIONThezip_file_extra_field_set () function sets the extra
field with ID (two-byte signature) extra_field_id and
index extra_field_index for the file at position
index in the zip archive. The extra field's data will be
set to extra_field_data and length
len. If a new entry shall be appended, set
extra_field_index to
ZIP_EXTRA_FIELD_NEW .
At least one of the following flags must be set:
Please note that the extra field IDs 0x0001 (ZIP64 extension),
0x6375 (Infozip UTF-8 comment), and 0x7075 (Infozip UTF-8 file name) can not
be set using RETURN VALUESUpon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.ERRORSzip_file_extra_field_set () fails if:
SEE ALSOlibzip(3), zip_file_extra_field_delete(3), zip_file_extra_field_get(3), zip_file_extra_fields_count(3)HISTORYzip_file_extra_field_set () was added in libzip 0.11.
AUTHORSDieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
Visit the GSP FreeBSD Man Page Interface. |