Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zzip_telldir32(3) [centos man page]

ZZIP_REWINDDIR(3)					       zziplib Function List						 ZZIP_REWINDDIR(3)

NAME
zzip_rewinddir, zzip_telldir, zzip_seekdir, zzip_telldir32, zzip_seekdir32 - SYNOPSIS
#include <zzip/lib.h> void zzip_rewinddir((ZZIP_DIR * dir)); zzip_off_t zzip_telldir((ZZIP_DIR * dir)); void zzip_seekdir((ZZIP_DIR * dir, zzip_off_t offset)); long zzip_telldir32((ZZIP_DIR * dir)); void zzip_seekdir32((ZZIP_DIR * dir, long offset)); DESCRIPTION
The zzip_rewinddir function is the equivalent of a rewinddir(2) for a realdir or the zipfile in place of a directory. The ZZIP_DIR handle returned from zzip_opendir has a flag saying realdir or zipfile. As for a zipfile, the filenames will include the filesubpath, so take care. The zzip_telldir function is the equivalent of telldir(2) for a realdir or zipfile. The zzip_seekdir function is the equivalent of seekdir(2) for a realdir or zipfile. The zzip_telldir32 function is provided for users who can not use any largefile-mode. The zzip_seekdir32 function is provided for users who can not use any largefile-mode. AUTHOR
o Guido Draheim <guidod@gmx.de> COPYRIGHT
Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1.1 zziplib 0.13.62 ZZIP_REWINDDIR(3)

Check Out this Related Man Page

ZZIP_ENTRY_DATA_OFFS(3) 				       zziplib Function List					   ZZIP_ENTRY_DATA_OFFS(3)

NAME
zzip_entry_data_offset, zzip_entry_fread_file_header, zzip_entry_strdup_name - helper functions for (fseeko) zip access api SYNOPSIS
#include <zzip/fseeko.h> zzip_off_t zzip_entry_data_offset((ZZIP_ENTRY * entry)); static zzip_off_t zzip_entry_fread_file_header((ZZIP_ENTRY * entry, struct zzip_file_header *file_header)); zzip__new__ char * zzip_entry_strdup_name((ZZIP_ENTRY * entry)); DESCRIPTION
The zzip_entry_data_offset functions returns the seekval offset of the data portion of the file referenced by the given zzip_entry. It requires an intermediate check of the file_header structure (i.e. it reads it from disk). After this call, the contained diskfile readposition is already set to the data_offset returned here. On error -1 is returned. The zzip_entry_fread_file_header functions read the correspoding struct zzip_file_header from the zip disk of the given "entry". The returned off_t points to the end of the file_header where the current fseek pointer has stopped. This is used to immediatly parse out any filename/extras block following the file_header. The return value is null on error. The zzip_entry_strdup_name function is a big helper despite its little name: in a zip file the encoded filenames are usually NOT zero-terminated but for common usage with libc we need it that way. Secondly, the filename SHOULD be present in the zip central directory but if not then we fallback to the filename given in the file_header of each compressed data portion. AUTHOR
o Guido Draheim <guidod@gmx.de> COPYRIGHT
Copyright (c) 2003,2004 Guido Draheim All rights reserved, use under the restrictions of the Lesser GNU General Public License or alternatively the restrictions of the Mozilla Public License 1.1 zziplib 0.13.62 ZZIP_ENTRY_DATA_OFFS(3)
Man Page