Lines Matching refs:fp
286 FILE *fp;
289 fp = fopen (path, "r");
290 if (fp == NULL) {
295 fseek (fp, 0, SEEK_END);
296 pci_ids_len = ftell (fp);
297 fseek (fp, 0, SEEK_SET);
305 num_read = fread (pci_ids, sizeof (char), pci_ids_len, fp);
309 fclose(fp);
313 fclose(fp);
503 FILE *fp;
506 fp = fopen (path, "r");
507 if (fp == NULL) {
512 fseek (fp, 0, SEEK_END);
513 usb_ids_len = ftell (fp);
514 fseek (fp, 0, SEEK_SET);
521 fclose(fp);
525 num_read = fread (usb_ids, sizeof (char), usb_ids_len, fp);
529 fclose(fp);
533 fclose(fp);