Lines Matching defs:file
4 * you may not use this file except in compliance with the License.
172 APPSPAWN_CHECK(!jsonObj.is_discarded() && jsonObj.is_structured(), return false, "Parse json file failed");
238 static void CheckAndCreatFile(const char *file)
240 if (access(file, F_OK) == 0) {
241 APPSPAWN_LOGI("file %{public}s already exist", file);
244 std::string path = file;
246 APPSPAWN_CHECK(pos != std::string::npos, return, "file %{public}s error", file);
249 int fd = open(file, O_CREAT, FILE_MODE);
251 APPSPAWN_LOGW("failed create %{public}s, err=%{public}d", file, errno);
919 APPSPAWN_LOGV("DoSandboxFilePermissionBind not found permission information in config file");