Searched refs:newfp (Results 1 – 2 of 2) sorted by relevance
/external/toybox/lib/ |
D | password.c | 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() [all …]
|
/external/toybox/toys/pending/ |
D | userdel.c | 28 FILE *exfp, *newfp; in update_groupfiles() local 50 newfp = xfopen(filenamesfx, "w+"); in update_groupfiles() 63 fprintf(newfp, "%s%s\n", line, n); in update_groupfiles() 68 fprintf(newfp, "%s%s\n", line, n); in update_groupfiles() 72 if (!n) fprintf(newfp, "%s\n", line); in update_groupfiles() 73 } else fprintf(newfp, "%s\n", line); in update_groupfiles() 81 fflush(newfp); in update_groupfiles() 82 fsync(fileno(newfp)); in update_groupfiles() 83 fclose(newfp); in update_groupfiles()
|