Go to the source code of this file.
|
void gz_reset | OF ((gz_statep)) |
|
gzFile gz_open | OF ((const void *, int, const char *)) |
|
void | gz_reset (gz_statep state) |
|
gzFile | gz_open (void *path, int fd, const char *mode) const |
|
gzFile ZEXPORT | gzopen (char *path, const char *mode) const |
|
gzFile ZEXPORT | gzopen64 (char *path, const char *mode) const |
|
gzFile ZEXPORT | gzdopen (int fd, const char *mode) |
|
int ZEXPORT | gzbuffer (gzFile file, unsigned size) |
|
int ZEXPORT | gzrewind (gzFile file) |
|
z_off64_t ZEXPORT | gzseek64 (gzFile file, z_off64_t offset, int whence) |
|
z_off_t ZEXPORT | gzseek (gzFile file, z_off_t offset, int whence) |
|
z_off64_t ZEXPORT | gztell64 (gzFile file) |
|
z_off_t ZEXPORT | gztell (gzFile file) |
|
z_off64_t ZEXPORT | gzoffset64 (gzFile file) |
|
z_off_t ZEXPORT | gzoffset (gzFile file) |
|
int ZEXPORT | gzeof (gzFile file) |
|
const char *ZEXPORT | gzerror (gzFile file, int *errnum) |
|
void ZEXPORT | gzclearerr (gzFile file) |
|
void ZLIB_INTERNAL | gz_error (gz_statep state, int err, const char *msg) |
|
unsigned ZLIB_INTERNAL | gz_intmax () |
|
◆ LSEEK
◆ gz_error()
Definition at line 581 of file gzlib.c.
585{
586
591 }
592
593
596
597
600 return;
601
602
604 return;
605
606
610 return;
611 }
612#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
615#else
619#endif
620}
ACPI_SIZE strlen(const char *String)
Referenced by gz_comp(), gz_decomp(), gz_init(), gz_load(), gz_look(), gz_reset(), gzclearerr(), gzclose_r(), gzclose_w(), gzfread(), gzfwrite(), gzputs(), gzread(), gzseek64(), gzungetc(), and gzwrite().
◆ gz_intmax()
Definition at line 627 of file gzlib.c.
628{
630
632 do {
638}
GLdouble GLdouble GLdouble GLdouble q
◆ gz_open()
Definition at line 93 of file gzlib.c.
97{
100 int oflag;
101#ifdef O_CLOEXEC
102 int cloexec = 0;
103#endif
104#ifdef O_EXCL
105 int exclusive = 0;
106#endif
107
108
111
112
119
120
128 else
130 case 'r':
132 break;
133#ifndef NO_GZCOMPRESS
134 case 'w':
136 break;
137 case 'a':
139 break;
140#endif
141 case '+':
144 case 'b':
145 break;
146#ifdef O_CLOEXEC
147 case 'e':
148 cloexec = 1;
149 break;
150#endif
151#ifdef O_EXCL
152 case 'x':
153 exclusive = 1;
154 break;
155#endif
156 case 'f':
158 break;
159 case 'h':
161 break;
162 case 'R':
164 break;
165 case 'F':
167 break;
168 case 'T':
170 break;
171 default:
172 ;
173 }
175 }
176
177
181 }
182
183
188 }
190 }
191
192
193#ifdef WIDECHAR
198 }
199 else
200#endif
206 }
207#ifdef WIDECHAR
211 else
213 else
214#endif
215#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
217#else
219#endif
220
221
222 oflag =
223#ifdef O_LARGEFILE
225#endif
226#ifdef O_BINARY
228#endif
229#ifdef O_CLOEXEC
230 (cloexec ? O_CLOEXEC : 0) |
231#endif
236 (exclusive ?
O_EXCL : 0) |
237#endif
241
242
244#ifdef WIDECHAR
246#endif
248 if (
state->fd == -1) {
252 }
256 }
257
258
262 }
263
264
266
267
269}
#define Z_DEFAULT_STRATEGY
#define Z_DEFAULT_COMPRESSION
void gz_reset(gz_statep state)
_CRTIMP int __cdecl _wopen(const wchar_t *_Filename, int _OpenFlag,...)
Referenced by gzdopen(), gzopen(), and gzopen64().
◆ gz_reset()
Definition at line 75 of file gzlib.c.
77{
83 }
84 else
89 state->strm.avail_in = 0;
90}
void ZLIB_INTERNAL gz_error(gz_statep state, int err, const char *msg)
Referenced by gz_open(), and gzrewind().
◆ gzbuffer()
Definition at line 318 of file gzlib.c.
321{
323
324
326 return -1;
329 return -1;
330
331
332 if (
state->size != 0)
333 return -1;
334
335
337 return -1;
341 return 0;
342}
◆ gzclearerr()
Definition at line 555 of file gzlib.c.
557{
559
560
562 return;
565 return;
566
567
571 }
573}
◆ gzdopen()
Definition at line 288 of file gzlib.c.
291{
294
297#if !defined(NO_snprintf) && !defined(NO_vsnprintf)
299#else
301#endif
304 return gz;
305}
gzFile gz_open(void *path, int fd, const char *mode) const
#define sprintf(buf, format,...)
◆ gzeof()
Definition at line 517 of file gzlib.c.
519{
521
522
524 return 0;
527 return 0;
528
529
531}
◆ gzerror()
Definition at line 534 of file gzlib.c.
537{
539
540
546
547
549 *errnum =
state->err;
552}
◆ gzoffset()
Definition at line 507 of file gzlib.c.
509{
511
514}
z_off64_t ZEXPORT gzoffset64(gzFile file)
◆ gzoffset64()
Definition at line 484 of file gzlib.c.
486{
489
490
492 return -1;
495 return -1;
496
497
500 return -1;
504}
Referenced by gzoffset().
◆ gzopen()
◆ gzopen64()
◆ gzrewind()
Definition at line 345 of file gzlib.c.
347{
349
350
352 return -1;
354
355
358 return -1;
359
360
362 return -1;
364 return 0;
365}
Referenced by gzseek64().
◆ gzseek()
Definition at line 445 of file gzlib.c.
449{
451
454}
z_off64_t ZEXPORT gzseek64(gzFile file, z_off64_t offset, int whence)
◆ gzseek64()
Definition at line 368 of file gzlib.c.
372{
376
377
379 return -1;
382 return -1;
383
384
386 return -1;
387
388
390 return -1;
391
392
395 else if (
state->seek)
398
399
404 return -1;
410 state->strm.avail_in = 0;
413 }
414
415
418 return -1;
421 return -1;
423 return -1;
424 }
425
426
434 }
435
436
440 }
442}
int ZEXPORT gzrewind(gzFile file)
Referenced by gzseek().
◆ gztell()
Definition at line 474 of file gzlib.c.
476{
478
481}
z_off64_t ZEXPORT gztell64(gzFile file)
◆ gztell64()
Definition at line 457 of file gzlib.c.
459{
461
462
464 return -1;
467 return -1;
468
469
471}
Referenced by gztell().
◆ OF() [1/2]
◆ OF() [2/2]