Lines Matching refs:newfp
113 FILE *exfp, *newfp; in update_password() local
143 newfp = fopen(filenamesfx, "w+"); in update_password()
144 if (!newfp) { in update_password()
156 fprintf(newfp, "%s\n", line); in update_password()
162 fprintf(newfp, "%s%s:",namesfx, entry); in update_password()
165 fprintf(newfp, "%u:",(unsigned)(time(NULL))/(24*60*60)); in update_password()
167 fprintf(newfp, "%s\n",current_ptr); in update_password()
168 } else fprintf(newfp, "%s\n",current_ptr); in update_password()
175 fprintf(newfp, "%s", line); in update_password()
176 fprintf(newfp, "%s\n", entry); in update_password()
182 if (!found && entry) fprintf(newfp, "%s\n", entry); in update_password()
187 fflush(newfp); in update_password()
188 fsync(fileno(newfp)); in update_password()
189 fclose(newfp); in update_password()