Lines Matching defs:fp1

864 	FILE	*fp1 = NULL, *fp2 = NULL;
878 fp1 = fopen((char *)iname, "r");
879 if (!fp1)
882 if (lockfile(fileno(fp1), F_RDLCK)) {
883 (void) fclose(fp1);
887 while (!feof(fp1)) {
888 (void) fgets((char *)tmp, 50, fp1);
889 if (feof(fp1))
914 (void) lockfile(fileno(fp1), F_UNLCK);
915 (void) fclose(fp1);
923 (void) lockfile(fileno(fp1), F_UNLCK);
924 (void) fclose(fp1);
936 (void) lockfile(fileno(fp1), F_UNLCK);
937 (void) fclose(fp1);
945 FILE *fp1 = NULL, *fp2 = NULL;
959 fp1 = fopen((char *)iname, "r");
960 if (!fp1)
963 if (lockfile(fileno(fp1), F_RDLCK)) {
968 while (!feof(fp1)) {
969 (void) fgets((char *)tmp, sizeof (tmp), fp1);
970 if (feof(fp1))
1014 (void) lockfile(fileno(fp1), F_UNLCK);
1015 (void) fclose(fp1);
1022 if (fp1) {
1023 (void) lockfile(fileno(fp1), F_UNLCK);
1024 (void) fclose(fp1);
1180 FILE *fp1, *fp2;
1207 fp1 = fopen(objidx, "r");
1209 if (!fp1 || !fp2) {
1210 if (fp1)
1211 (void) fclose(fp1);
1217 if (lockfile(fileno(fp1), F_RDLCK)) {
1218 (void) fclose(fp1);
1223 (void) lockfile(fileno(fp1), F_UNLCK);
1224 (void) fclose(fp1);
1230 while (!feof(fp1)) {
1231 (void) fgets((char *)line, 50, fp1);
1232 if (!feof(fp1)) {
1239 (void) lockfile(fileno(fp1), F_UNLCK);
1241 (void) fclose(fp1);
1245 fp1 = fopen(idxtmp, "r");
1246 if (!fp1 || !fp2) {
1247 if (fp1)
1248 (void) fclose(fp1);
1253 if (lockfile(fileno(fp1), F_RDLCK)) {
1254 (void) fclose(fp1);
1259 (void) lockfile(fileno(fp1), F_UNLCK);
1260 (void) fclose(fp1);
1267 while (!feof(fp1)) {
1268 (void) fgets((char *)line, 50, fp1);
1269 if (!feof(fp1))
1273 (void) lockfile(fileno(fp1), F_UNLCK);
1275 (void) fclose(fp1);