|
NAMEzopen —
open a gzip compressed stream
LIBRARYCompression Library (libz, -lz)SYNOPSISFILE *zopen (const
char *path, const char
*mode);
FILE *
DESCRIPTIONThezopen () function opens a gzip file whose name is the
string pointed to by path and returns a stream which can
be used to access the uncompressed contents of the file. The
zdopen () variant takes a gzip file referenced by the
file descriptor fd, analogous to
fdopen(3).
They are wrappers around
zlib(3) and
the standard stream I/O APIs.
The argument mode has the same meaning as it does in fopen(3). The RETURN VALUESUpon successful completionzopen () and
zdopen () return a FILE pointer. Otherwise,
NULL is returned and the global variable
errno is set to indicate the error.
ERRORSIn addition to the errors documented for fopen(3) and fdopen(3), the functions may also fail for:
COMPATIBILITYThe implementation ofzopen () function first appeared in
NetBSD 1.6 and FreeBSD 4.5.
zdopen () first appeared in FreeBSD
13.0. These functions may not be portable to systems other than
FreeBSD.
SEE ALSOfdopen(3), fopen(3), funopen(3), zlib(3)
Visit the GSP FreeBSD Man Page Interface. |