Lines Matching defs:fileName
183 static int LoadParamLabels(const char *fileName)
189 PARAM_LOGE("Failed to alloc memory %s", fileName);
193 FILE *fp = fopen(fileName, "r");
200 PARAM_LOGE("Failed to split string %s fileName %s, result is:%d", buff, fileName, result);
207 PARAM_LOGI("Load parameter label total %u success %s", infoCount, fileName);
222 static int ProcessParamFile(const char *fileName, void *context)
225 return LoadParamLabels(fileName);
239 char *fileName = calloc(1, MAX_BUF_SIZE);
240 PARAM_CHECK(fileName != NULL, closedir(pDir);
256 int ret = PARAM_SPRINTF(fileName, MAX_BUF_SIZE, "%s/%s", path, dp->d_name);
261 if ((stat(fileName, &st) == 0) && !S_ISDIR(st.st_mode)) {
263 ret = ProcessParamFile(fileName, NULL);
265 free(fileName);
272 free(fileName);
277 static int CheckFilePermission(const ParamSecurityLabel *localLabel, const char *fileName, int flags)
280 PARAM_CHECK(localLabel != NULL && fileName != NULL, return -1, "Invalid param");