Lines Matching defs:cfp
135 FILE *tfp, *cfp;
148 cfp = NULL;
151 cfp = fopen(_COMPAT_FILE, "w");
152 if (cfp == NULL)
160 if (cfp != NULL)
162 fprintf(cfp, "#\n");
163 fprintf(cfp, "# 4.3BSD-compatable User Database\n");
164 fprintf(cfp, "#\n");
165 fprintf(cfp, "# Note that this file is not consulted for login.\n");
166 fprintf(cfp, "# It only exisits for compatability with 4.3BSD utilities.\n");
167 fprintf(cfp, "#\n");
168 fprintf(cfp, "# This file is automatically re-written by various system utilities.\n");
169 fprintf(cfp, "# Do not edit this file. Changes will be lost.\n");
170 fprintf(cfp, "#\n");
188 if (cfp != NULL) fprintf(cfp, "%s\n", line);
195 if (cfp != NULL) fprintf(cfp, "%s\n", line);
203 if (cfp != NULL)
205 fprintf(cfp, "%s:",newpw->pw_name);
207 fprintf(cfp, ":");
209 fprintf(cfp, "*:");
210 fprintf(cfp, "%d:%d:%s:%s:%s\n",
216 if (cfp != NULL) fclose(cfp);