Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
84 PLUGIN_CHECK(cmdLine != NULL, return, "Failed to open file "BOOTCHART_OUTPUT_PATH"header");
86 FILE *file = fopen(BOOTCHART_OUTPUT_PATH"header", "we");
87 PLUGIN_CHECK(file != NULL, return, "Failed to open file "BOOTCHART_OUTPUT_PATH"header");
89 (void)fprintf(file, "version = openharmony init\n");
90 (void)fprintf(file, "title = Boot chart for openharmony (%s)\n", date);
91 (void)fprintf(file, "system.uname = %s %s %s %s\n", uts.sysname, uts.release, uts.version, uts.machine);
93 (void)fprintf(file, "system.release = %s\n", release);
95 (void)fprintf(file, "system.cpu = %s\n", uts.machine);
96 (void)fprintf(file, "system.kernel.options = %s\n", cmdLine);
97 (void)fclose(file);
171 PLUGIN_LOGE("Failed to open file");