1ZZIP_FILE_REAL(3) zziplib Function List ZZIP_FILE_REAL(3)
2
3
4
6 zzip_file_real, zzip_dir_real, zzip_realdir, zzip_realfd - check real
7 or zipped file.
8
10 #include <zzip/lib.h>
11
12 int zzip_file_real((ZZIP_FILE * fp));
13
14 int zzip_dir_real((ZZIP_DIR * dir));
15
16 void * zzip_realdir((ZZIP_DIR * dir));
17
18 int zzip_realfd((ZZIP_FILE * fp));
19
21 The zzip_file_real function checks if the ZZIP_FILE-handle is wrapping
22 a real file or a zip-contained file. Returns 1 for a stat'able file,
23 and 0 for a file inside a zip-archive.
24
25 The zzip_dir_real function checks if the ZZIP_DIR-handle is wrapping a
26 real directory or a zip-archive. Returns 1 for a stat'able directory,
27 and 0 for a handle to zip-archive.
28
29 The zzip_realdir function returns the posix DIR* handle (if one
30 exists). Check before with zzip_dir_real if the the ZZIP_DIR points to
31 a real directory.
32
33 The zzip_realfd function returns the posix file descriptor (if one
34 exists). Check before with zzip_file_real if the the ZZIP_FILE points
35 to a real file.
36
38 ยท Guido Draheim <guidod@gmx.de>
39
41 Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
42
43
44
45zziplib 0.13.71 ZZIP_FILE_REAL(3)