Lines Matching refs:file
85 FILE *file = NULL; in try_load_secure_module() local
126 file = fopen(fname, "r"); in try_load_secure_module()
127 if (file == NULL) { in try_load_secure_module()
136 if (fseek(file, 0, SEEK_END) != 0) { in try_load_secure_module()
137 fclose(file); in try_load_secure_module()
141 l = ftell(file); in try_load_secure_module()
144 fclose(file); in try_load_secure_module()
158 if (fseek(file, 0, SEEK_SET) != 0) { in try_load_secure_module()
159 fclose(file); in try_load_secure_module()
163 if (s != fread(ta, 1, s, file)) { in try_load_secure_module()
165 fclose(file); in try_load_secure_module()
171 fclose(file); in try_load_secure_module()