Lines Matching defs:fp1
863 FILE *fp1 = NULL, *fp2 = NULL;
877 fp1 = fopen((char *)iname, "r");
878 if (!fp1)
881 if (lockfile(fileno(fp1), F_RDLCK)) {
882 (void) fclose(fp1);
886 while (!feof(fp1)) {
887 (void) fgets((char *)tmp, 50, fp1);
888 if (feof(fp1))
913 (void) lockfile(fileno(fp1), F_UNLCK);
914 (void) fclose(fp1);
922 (void) lockfile(fileno(fp1), F_UNLCK);
923 (void) fclose(fp1);
935 (void) lockfile(fileno(fp1), F_UNLCK);
936 (void) fclose(fp1);
944 FILE *fp1 = NULL, *fp2 = NULL;
958 fp1 = fopen((char *)iname, "r");
959 if (!fp1)
962 if (lockfile(fileno(fp1), F_RDLCK)) {
967 while (!feof(fp1)) {
968 (void) fgets((char *)tmp, sizeof (tmp), fp1);
969 if (feof(fp1))
1013 (void) lockfile(fileno(fp1), F_UNLCK);
1014 (void) fclose(fp1);
1021 if (fp1) {
1022 (void) lockfile(fileno(fp1), F_UNLCK);
1023 (void) fclose(fp1);
1179 FILE *fp1, *fp2;
1206 fp1 = fopen(objidx, "r");
1208 if (!fp1 || !fp2) {
1209 if (fp1)
1210 (void) fclose(fp1);
1216 if (lockfile(fileno(fp1), F_RDLCK)) {
1217 (void) fclose(fp1);
1222 (void) lockfile(fileno(fp1), F_UNLCK);
1223 (void) fclose(fp1);
1229 while (!feof(fp1)) {
1230 (void) fgets((char *)line, 50, fp1);
1231 if (!feof(fp1)) {
1238 (void) lockfile(fileno(fp1), F_UNLCK);
1240 (void) fclose(fp1);
1244 fp1 = fopen(idxtmp, "r");
1245 if (!fp1 || !fp2) {
1246 if (fp1)
1247 (void) fclose(fp1);
1252 if (lockfile(fileno(fp1), F_RDLCK)) {
1253 (void) fclose(fp1);
1258 (void) lockfile(fileno(fp1), F_UNLCK);
1259 (void) fclose(fp1);
1266 while (!feof(fp1)) {
1267 (void) fgets((char *)line, 50, fp1);
1268 if (!feof(fp1))
1272 (void) lockfile(fileno(fp1), F_UNLCK);
1274 (void) fclose(fp1);