GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
zzip_dir_alloc_ext_io(3) zziplib Function List zzip_dir_alloc_ext_io(3)

zzip_dir_alloc_ext_io, zzip_dir_alloc, zzip_dir_free - start usage.

#include <zzip/lib.h>

ZZIP_DIR * zzip_dir_alloc_ext_io(zzip_strings_t * ext, const zzip_plugin_io_t io)
ZZIP_DIR * zzip_dir_alloc(zzip_strings_t * fileext)
int zzip_dir_free(ZZIP_DIR * dir)


The zzip_dir_alloc_ext_io function allocates a new ZZIP_DIR handle and do basic initializations before usage by zzip_dir_fdopen zzip_dir_open zzip_file_open or through zzip_open (ext==null flags uses { ".zip" , ".ZIP" } ) (io ==null flags use of posix io defaults)

The zzip_dir_alloc function is obsolete - it was generally used for implementation and exported to let other code build on it. It is now advised to use zzip_dir_alloc_ext_io now on explicitly, just set that second argument to zero to achieve the same functionality as the old style.

The zzip_dir_free function will free the zzip_dir handle unless there are still zzip_files attached (that may use its cache buffer). This is the inverse of zzip_dir_alloc , and both are helper functions used implicitly in other zzipcalls e.g. zzip_dir_close = zzip_close

returns zero on success returns the refcount when files are attached.


Guido Draheim <guidod@gmx.de> Tomi Ollila <too@iki.fi>


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)


zzip_dir_free
0.13.69 zziplib

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.