Lines Matching refs:newfp
112 FILE *exfp, *newfp; in update_password() local
142 newfp = fopen(filenamesfx, "w+"); in update_password()
143 if (!newfp) { in update_password()
155 fprintf(newfp, "%s\n", line); in update_password()
161 fprintf(newfp, "%s%s:",namesfx, entry); in update_password()
164 fprintf(newfp, "%u:",(unsigned)(time(NULL))/(24*60*60)); in update_password()
166 fprintf(newfp, "%s\n",current_ptr); in update_password()
167 } else fprintf(newfp, "%s\n",current_ptr); in update_password()
174 fprintf(newfp, "%s", line); in update_password()
175 fprintf(newfp, "%s\n", entry); in update_password()
181 if (!found && entry) fprintf(newfp, "%s\n", entry); in update_password()
186 fflush(newfp); in update_password()
187 fsync(fileno(newfp)); in update_password()
188 fclose(newfp); in update_password()