1ZZIP_DIR_STAT(3) zziplib Function List ZZIP_DIR_STAT(3)
2
3
4
6 zzip_dir_stat, zzip_file_stat, zzip_fstat - get meta infornation on a
7 zipped element.
8
10 #include <zzip/lib.h>
11
12 int
13 zzip_dir_stat((ZZIP_DIR * dir, zzip_char_t * name, ZZIP_STAT * zs, int flags));
14
15 int zzip_file_stat((ZZIP_FILE * file, ZZIP_STAT * zs));
16
17 int zzip_fstat((ZZIP_FILE * file, ZZIP_STAT * zs));
18
20 The zzip_dir_stat function obtains information about a filename in an
21 opened zip-archive without opening that file first. Mostly used to
22 obtain the uncompressed size of a file inside a zip-archive. see
23 zzip_dir_open.
24
25 The zzip_file_stat function will obtain information about a opened file
26 _within_ a zip-archive. The file is supposed to be open (otherwise -1
27 is returned). The st_size stat-member contains the uncompressed size.
28 The optional d_name is never set here.
29
30 The zzip_fstat function will obtain information about a opened file
31 which may be either real/zipped. The file is supposed to be open
32 (otherwise -1 is returned). The st_size stat-member contains the
33 uncompressed size. The optional d_name is never set here. For a real
34 file, we do set the d_csize := st_size and d_compr := 0 for meaningful
35 defaults.
36
38 ยท Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
39
41 Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
42
43
44
45zziplib 0.13.71 ZZIP_DIR_STAT(3)