Lines Matching defs:path
137 static bool GetPersistFilePath(char **path, char **tmpPath, int fileType)
141 *path = "/param/persist_parameters";
155 *path = PARAM_PUBLIC_PERSIST_SAVE_PATH;
167 *path = PARAM_PRIVATE_PERSIST_SAVE_PATH;
187 char *path = "";
188 bool isFullLoad = GetPersistFilePath(&path, &tmpPath, fileType);
189 LoadPersistParam_(clearFactoryPersistParams, path, buffer, buffSize, isFullLoad);
205 char *path = "/param/persist_parameters";
206 FILE *fp = fopen(path, "a+");
214 const char *path[PERSIST_HANDLE_MAX] = { PARAM_PUBLIC_PERSIST_SAVE_PATH, PARAM_PRIVATE_PERSIST_SAVE_PATH };
216 FILE *fp = fopen(path[i], "a+");
233 char *path = "/param/tmp_persist_parameters";
234 unlink(path);
235 FILE *fp = fopen(path, "w");
238 PARAM_LOGE("Open file %s fail error %d", path, errno);
244 const char *path[PERSIST_HANDLE_MAX] = {
249 unlink(path[i]);
250 FILE *fp = fopen(path[i], "w");
252 PARAM_LOGE("Open file %s fail error %d", path[i], errno);
290 const char *path[PERSIST_HANDLE_MAX] = {
301 unlink(path[i]);
302 ret = rename(tmpPath[i], path[i]);