Searched refs:newfp (Results 1 - 2 of 2) sorted by relevance

/external/toybox/toys/pending/
H A Duserdel.c28 FILE *exfp, *newfp; local
50 newfp = xfopen(filenamesfx, "w+");
63 fprintf(newfp, "%s%s\n", line, n);
68 fprintf(newfp, "%s%s\n", line, n);
72 if (!n) fprintf(newfp, "%s\n", line);
73 } else fprintf(newfp, "%s\n", line);
81 fflush(newfp);
82 fsync(fileno(newfp));
83 fclose(newfp);
/external/toybox/lib/
H A Dpassword.c113 FILE *exfp, *newfp; local
143 newfp = fopen(filenamesfx, "w+");
144 if (!newfp) {
156 fprintf(newfp, "%s\n", line);
162 fprintf(newfp, "%s%s:",namesfx, entry);
165 fprintf(newfp, "%u:",(unsigned)(time(NULL))/(24*60*60));
167 fprintf(newfp, "%s\n",current_ptr);
168 } else fprintf(newfp, "%s\n",current_ptr);
175 fprintf(newfp, "%s", line);
176 fprintf(newfp, "
[all...]

Completed in 140 milliseconds