Lines Matching refs:fd
94 local gzFile gz_open(path, fd, mode)
96 int fd;
195 if (fd == -2) {
209 if (fd == -2)
243 /* open the file with the appropriate flags (or just use fd) */
244 state->fd = fd > -1 ? fd : (
246 fd == -2 ? _wopen(path, oflag, 0666) :
249 if (state->fd == -1) {
259 state->start = LSEEK(state->fd, 0, SEEK_CUR);
287 gzFile ZEXPORT gzdopen(fd, mode)
288 int fd;
294 if (fd == -1 || (path = (char *)malloc(7 + 3 * sizeof(int))) == NULL)
297 snprintf(path, 7 + 3 * sizeof(int), "<fd:%d>", fd); /* for debugging */
299 sprintf(path, "<fd:%d>", fd); /* for debugging */
301 gz = gz_open(path, fd, mode);
358 if (LSEEK(state->fd, state->start, SEEK_SET) == -1)
399 ret = LSEEK(state->fd, offset - state->x.have, SEEK_CUR);
495 offset = LSEEK(state->fd, 0, SEEK_CUR);