Lines Matching refs:fp
37 FILE *fp = fopen(fileName, "r"); in LoadPersistParam_() local
38 PARAM_WARNING_CHECK(fp != NULL, return, "No valid persist parameter file %s", fileName); in LoadPersistParam_()
41 while (fgets(buffer, buffSize, fp) != NULL) { in LoadPersistParam_()
47 (void)fclose(fp); in LoadPersistParam_()
71 FILE *fp = fopen(path, "a+"); in SavePersistParam() local
73 if (fp != NULL) { in SavePersistParam()
74 ret = fprintf(fp, "%s=%s\n", name, value); in SavePersistParam()
75 (void)fclose(fp); in SavePersistParam()
89 FILE *fp = fopen(path, "w"); in BatchSavePersistParamBegin() local
90 if (fp == NULL) { in BatchSavePersistParamBegin()
95 *handle = (PERSIST_SAVE_HANDLE)fp; in BatchSavePersistParamBegin()
101 FILE *fp = (FILE *)handle; in BatchSavePersistParam() local
102 int ret = fprintf(fp, "%s=%s\n", name, value); in BatchSavePersistParam()
110 FILE *fp = (FILE *)handle; in BatchSavePersistParamEnd() local
111 (void)fflush(fp); in BatchSavePersistParamEnd()
112 (void)fsync(fileno(fp)); in BatchSavePersistParamEnd()
113 (void)fclose(fp); in BatchSavePersistParamEnd()