Lines Matching defs:fileName
239 char *ReadFile(const char *fileName)
241 APPSPAWN_CHECK_ONLY_EXPER(fileName != NULL, return NULL);
246 if (stat(fileName, &fileStat) != 0 ||
250 fd = fopen(fileName, "r");
251 APPSPAWN_CHECK(fd != NULL, break, "Failed to open file %{public}s", fileName);
254 APPSPAWN_CHECK(buffer != NULL, break, "Failed to alloc mem %{public}s", fileName);
257 APPSPAWN_CHECK(ret == 1, break, "Failed to read %{public}s to buffer", fileName);
283 int ParseJsonConfig(const char *basePath, const char *fileName, ParseConfig parseConfig, ParseJsonContext *context)
286 APPSPAWN_CHECK_ONLY_EXPER(fileName != NULL, return APPSPAWN_ARG_INVALID);
300 int len = snprintf_s(path, sizeof(path), sizeof(path) - 1, "%s%s", files->paths[i], fileName);
302 continue, "Failed to format sandbox config file name %{public}s %{public}s", files->paths[i], fileName);