Lines Matching defs:fp

728 readLine(FILE *fp, char **lineBuf, int *lineNumber)
739 result = fgets(*lineBuf, LINEALLOCUNIT, fp);
760 LINEALLOCUNIT, fp);
779 return(readLine(fp, lineBuf, lineNumber));
895 FILE *fp;
900 fp = fopen(fileName, "r");
901 if (!fp)
903 if (readLockOWconfig(fileno(fp)) != OWCFG_OK) {
904 (void)fclose(fp);
914 while (readLine(fp, &lineBuf, &lineNumber) != EOF) {
920 unlockOWconfig(fileno(fp));
921 fclose(fp);
949 unlockOWconfig(fileno(fp));
950 (void)fclose(fp);
1000 (void)fstat(fileno(fp), &statbuf);
1003 unlockOWconfig(fileno(fp));
1004 (void)fclose(fp);
1014 writeString: Writes to "fp" a quoted string specified by "str". Does
1018 writeString(FILE *fp, char *str)
1021 (void)fputc('"', fp);
1024 (void)fputc('\\', fp);
1025 (void)fputc(*str, fp);
1028 (void)fputc('"', fp);
1030 (void)fprintf(fp, "\"\"");
1044 writeDatabase(FILE *fp)
1068 (void)fprintf(fp, "%s", commentP->comment);
1075 (void)fprintf(fp, "\npackage=");
1076 writeString(fp, currentPackage);
1077 (void)fprintf(fp, "\n\n");
1079 (void)fprintf(fp, "class=");
1080 writeString(fp, cp->name);
1081 (void)fprintf(fp, " ");
1082 (void)fprintf(fp, "name=");
1083 writeString(fp, ip->name);
1084 (void)fprintf(fp, "\n");
1089 (void)fprintf(fp, " %s=", ap->name);
1090 writeString(fp, ap->nodeValue.attr.value);
1092 (void)fprintf(fp, "\n");
1094 (void)fprintf(fp, ";\n");
1101 (void)fprintf(fp, "%s", commentP->comment);
1121 (void)fprintf(fp, "package=");
1122 writeString(fp, currentPackage);
1123 (void)fprintf(fp, "\n\n");
1125 (void)fprintf(fp, "class=");
1126 writeString(fp, cp->name);
1127 (void)fprintf(fp, " ");
1128 (void)fprintf(fp, "name=");
1129 writeString(fp, ip->name);
1130 (void)fprintf(fp, "\n");
1135 (void)fprintf(fp, " %s=", ap->name);
1136 writeString(fp, ap->nodeValue.attr.value);
1138 (void)fprintf(fp, "\n");
1140 (void)fprintf(fp, ";\n");
1162 FILE *fp;
1173 fp = fopen(tmpFileName, "w");
1174 if (!fp)
1177 writeDatabase(fp);
1179 (void)fclose(fp);