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
ZOPEN(3) FreeBSD Library Functions Manual ZOPEN(3)

zopen
open a gzip compressed stream

Compression Library (libz, -lz)

FILE *
zopen(const char *path, const char *mode);

The zopen() opens a gzip file whose name is the string pointed to by path and associates a stream with it. It is a wrapper around zlib(3) and standard stream I/O APIs.
The argument mode have the same meaning as it does in fopen(3).
The zopen function will associate read, write, seek and close functions of zlib(3) after successfully opened a file with funopen(3) so that they will be used to read or write the new stream.

Upon successful completion zopen returns a FILE pointer. Otherwise, NULL is returned and the global variable errno is set to indicate the error.

In addition to the errors documented for fopen(3), the zopen function may also fail for:
[]
Insufficient memory is available.

This implementation of zopen function first appeared in NetBSD 1.6 and FreeBSD 4.5. The zopen function may not be portable to systems other than FreeBSD.

fopen(3), funopen(3), zlib(3)
March 5, 2014 FreeBSD 12.0-RELEASE

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.