Linux Standard Base Core Specification 4.1 | ||
---|---|---|
<<< Previous | Next >>> |
The gzdopen() function shall attempt to associate the open file referenced by fd with a gzFile object. The mode argument is based on that of fopen(), but the mode parameter may also contain the following characters:
If fd refers to an uncompressed file, and mode refers to a read mode, gzdopen() shall attempt to open the file and return a gzFile object suitable for reading directly from the file without any decompression.
If mode
is NULL, or if mode does not contain
one of r, w, or a,
gzdopen() shall return Z_NULL
,
and need not set any other error condition.
On success, gzdopen() shall return a
gzFile object. On failure,
gzdopen() shall return Z_NULL
and
may set errno
accordingly.
Note: At version 1.2.2,
zlib
does not seterrno
for several error conditions. Applications may not be able to determine the cause of an error.
<<< Previous | Home | Next >>> |
gzclose | Up | gzeof |