Lines Matching defs:fh
397 struct file_efihttp *fh;
405 fh = calloc(1, sizeof(struct file_efihttp));
406 if (fh == NULL)
408 f->f_fsdata = fh;
409 fh->path = strdup(path);
542 fh->size = 0;
543 fh->is_dir = false;
547 fh->size = strtoul((const char *)
553 fh->is_dir = true;
609 struct file_efihttp *fh;
613 fh = (struct file_efihttp *)f->f_fsdata;
615 if (fh->size > 0 && fh->offset >= fh->size) {
666 fh->offset += message.BodyLength;
699 struct file_efihttp *fh;
705 fh = (struct file_efihttp *)f->f_fsdata;
706 if (where == SEEK_SET && fh->offset == offset)
708 if (where == SEEK_SET && fh->offset < offset) {
712 res = offset - fh->offset;
724 path = fh->path;
725 fh->path = NULL;
747 struct file_efihttp *fh;
749 fh = (struct file_efihttp *)f->f_fsdata;
752 sb->st_mode = 0777 | (fh->is_dir ? S_IFDIR : S_IFREG);
753 sb->st_size = fh->size;
763 struct file_efihttp *fh;
765 fh = (struct file_efihttp *)f->f_fsdata;
766 if (dirbuf_len < fh->size) {
767 db2 = realloc(dirbuf, fh->size);
774 dirbuf_len = fh->size;
777 if (fh->offset != fh->size) {