Home | History | Annotate | Download | only in zlib

Lines Matching defs:mode

67     char     mode;    /* 'w' or 'r' */
76 local gzFile gz_open OF((const char *path, const char *mode, int fd));
85 Opens a gzip (.gz) file for reading or writing. The mode parameter
93 local gzFile gz_open (path, mode, fd)
95 const char *mode;
101 char *p = (char*)mode;
103 char fmode[80]; /* copy of mode, without the compression level */
106 if (!path || !mode) return Z_NULL;
133 s->mode = '\0';
135 if (*p == 'r') s->mode = 'r';
136 if (*p == 'w' || *p == 'a') s->mode = 'w';
146 *m++ = *p; /* copy the mode */
149 if (s->mode == '\0') return destroy(s), (gzFile)Z_NULL;
151 if (s->mode == 'w') {
186 if (s->mode == 'w') {
194 * start anyway in write mode, so this initialization is not
208 gzFile ZEXPORT gzopen (path, mode)
210 const char *mode;
212 return gz_open (path, mode, -1);
219 gzFile ZEXPORT gzdopen (fd, mode)
221 const char *mode;
228 return gz_open (name, mode, fd);
241 if (s == NULL || s->mode != 'w') return Z_STREAM_ERROR;
281 mode to transparent if the gzip magic header is not present; set s->err
365 if (s->mode == 'w') {
371 } else if (s->mode == 'r') {
403 if (s == NULL || s->mode != 'r') return Z_STREAM_ERROR;
521 if (s == NULL || s->mode != 'r' || c == EOF || s->back != EOF) return EOF;
566 if (s == NULL || s->mode != 'w') return Z_STREAM_ERROR;
713 if (s == NULL || s->mode != 'w') return Z_STREAM_ERROR;
779 if (s->mode == 'w') {
862 if (s == NULL || s->mode != 'r') return -1;
900 if (s == NULL || s->mode != 'r') return 0;
913 if (s == NULL || s->mode != 'r') return 0;
960 if (s->mode == 'w') {