Lines Matching defs:fd
89 int fd;
207 file->fd = 0;
211 file->fd = open (file->path, O_RDONLY | O_NOCTTY | O_BINARY, 0666);
213 if (file->fd != -1)
215 if (fstat (file->fd, &file->st) == 0)
228 close (file->fd);
229 file->fd = -1;
539 If FILE->fd is something weird, like a block device, we don't want
578 if ((offset = lseek(file->fd, 0, SEEK_CUR)) < 0)
601 while ((count = read (file->fd, buf + total, size - total)) > 0)
645 if (file->fd == -1 && !open_file (file))
652 close (file->fd);
653 file->fd = -1;
689 pfile->cb.read_pch (pfile, file->pchname, file->fd, file->path);
690 close (file->fd);
691 file->fd = -1;
945 file->fd = -1;
1198 if (file->fd != -1)
1200 close (file->fd);
1201 file->fd = -1;
1424 valid = 1 & pfile->cb.valid_pch (pfile, pchname, file->fd);
1428 close (file->fd);
1429 file->fd = -1;
1573 int oldfd = f->fd;
1580 ff = fdopen (f->fd, "rb");
1583 f->fd = oldfd;