Searched refs:newfp (Results 1 – 2 of 2) sorted by relevance
/third_party/toybox/lib/ |
D | password.c | 112 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 …]
|
/third_party/toybox/toys/pending/ |
D | userdel.c | 28 FILE *exfp, *newfp; in update_groupfiles() local 51 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() 80 fflush(newfp); in update_groupfiles() 81 fsync(fileno(newfp)); in update_groupfiles() 82 fclose(newfp); in update_groupfiles()
|