Lines Matching defs:fp
1175 FILE *fp, *tp;
1186 if ((fp = fopen(filename, "r+")) == NULL)
1201 if (fread(buf, sizeof(buf), (size_t)1, fp) != 1) {
1202 if (ferror(fp)) {
1206 if (fseeko(fp, (off_t)sizeof(buf) * count, SEEK_SET) ==
1211 left = (ssize_t)fread(buf, (size_t)1, sizeof(buf), fp);
1212 if (ferror(fp)) {
1271 if (fseeko(fp, (off_t)0, SEEK_SET) == (off_t)-1) {
1284 if (ferror(fp))
1288 if (fwrite(buf, (size_t)left, (size_t)1, fp) != 1) {
1293 fflush(fp);
1294 if((off = ftello(fp)) > 0)
1295 (void)ftruncate(fileno(fp), off);
1301 fclose(fp);