• Home
  • Raw
  • Download

Lines Matching refs:mode

74     if (state->mode == GZ_READ) {   /* for reading ... */
87 local gzFile gz_open(path, fd, mode) in gz_open() argument
90 const char *mode;
103 state->mode = GZ_NONE;
106 while (*mode) {
107 if (*mode >= '0' && *mode <= '9')
108 state->level = *mode - '0';
110 switch (*mode) {
112 state->mode = GZ_READ;
116 state->mode = GZ_WRITE;
119 state->mode = GZ_APPEND;
141 mode++;
145 if (state->mode == GZ_NONE) {
167 (state->mode == GZ_READ ?
170 state->mode == GZ_WRITE ?
179 if (state->mode == GZ_APPEND)
180 state->mode = GZ_WRITE; /* simplify later checks */
183 if (state->mode == GZ_READ) {
196 gzFile ZEXPORT gzopen(path, mode) in gzopen() argument
198 const char *mode;
200 return gz_open(path, -1, mode);
204 gzFile ZEXPORT gzopen64(path, mode) in gzopen64() argument
206 const char *mode;
208 return gz_open(path, -1, mode);
212 gzFile ZEXPORT gzdopen(fd, mode) in gzdopen() argument
214 const char *mode;
222 gz = gz_open(path, fd, mode);
238 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
264 if (state->mode != GZ_READ || state->err != Z_OK)
288 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
307 if (state->mode == GZ_READ && state->how == COPY &&
323 if (state->mode != GZ_READ) /* writing -- can't go backwards */
333 if (state->mode == GZ_READ) {
372 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
400 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
407 if (state->mode == GZ_READ) /* reading */
432 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
436 return state->mode == GZ_READ ?
451 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
470 if (state->mode != GZ_READ && state->mode != GZ_WRITE)
474 if (state->mode == GZ_READ)