Lines Matching defs:file
5 * you may not use this file except in compliance with the License.
83 FILE *file;
85 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file",
87 file = fopen(filename, "w");
88 if (!file) {
89 WARN("setting USB mass storage file: fopen(%s) failed: %s\n",
96 fprintf(file, "/dev/block/ublock%d", index);
98 fclose(file);
106 FILE *file;
108 sprintf(filename, "/sys/devices/platform/usb_mass_storage/lun%d/file",
110 file = fopen(filename, "w");
111 if (!file) {
112 WARN("clearing USB mass storage file: fopen(%s) failed: %s\n",
117 fclose(file);
127 WARN("cleanup: clearing USB mass storage file\n");