Searched refs:exfp (Results 1 – 2 of 2) sorted by relevance
/third_party/toybox/lib/ |
D | password.c | 112 FILE *exfp, *newfp; in update_password() local 121 exfp = fopen(filename, "r+"); in update_password() 122 if (!exfp) { in update_password() 138 ret = fcntl(fileno(exfp), F_SETLK, &lock); in update_password() 147 fclose(exfp); in update_password() 153 while ((n = getline(&line, &allocated_length, exfp)) > 0) { in update_password() 183 fcntl(fileno(exfp), F_SETLK, &lock); in update_password() 184 fclose(exfp); in update_password()
|
/third_party/toybox/toys/pending/ |
D | userdel.c | 28 FILE *exfp, *newfp; in update_groupfiles() local 35 exfp = xfopen(filename, "r+"); in update_groupfiles() 46 if (fcntl(fileno(exfp), F_SETLK, &lock) < 0) in update_groupfiles() 53 while (getline(&line, &allocated_length, exfp) > 0) { in update_groupfiles() 77 fcntl(fileno(exfp), F_SETLK, &lock); in update_groupfiles() 78 fclose(exfp); in update_groupfiles()
|