1ZIP_FILE_SET_MTIME(3) BSD Library Functions Manual ZIP_FILE_SET_MTIME(3)
2
4 zip_file_set_mtime — set last modification time (mtime) for file in zip
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 int
13 zip_file_set_mtime(zip_t *archive, zip_uint64_t index, time_t mtime,
14 zip_flags_t flags);
15
17 The zip_file_set_mtime() function sets the last modification time (mtime)
18 for the file at position index in the zip archive to mtime. Currently,
19 no support for any flags is implemented.
20
22 Upon successful completion 0 is returned. Otherwise, -1 is returned and
23 the error information in archive is set to indicate the error.
24
26 zip_file_set_mtime() fails if:
27
28 [ZIP_ER_INVAL] index is not a valid file index in archive.
29
30 [ZIP_ER_MEMORY] Required memory could not be allocated.
31
32 [ZIP_ER_RDONLY] The archive was opened in read-only mode.
33
35 libzip(3), zip_stat(3)
36
38 zip_file_set_mtime() was added in libzip 1.0.
39
41 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
42
43BSD December 18, 2017 BSD