Lines Matching refs:tp
1290 FILE *fp, *tp; in history_truncate_file() local
1309 if ((tp = fdopen(fd, "r+")) == NULL) { in history_truncate_file()
1334 } else if (fwrite(buf, (size_t)left, (size_t)1, tp) in history_truncate_file()
1339 fflush(tp); in history_truncate_file()
1342 if (fwrite(buf, sizeof(buf), (size_t)1, tp) != 1) { in history_truncate_file()
1368 if (fseeko(tp, (off_t)sizeof(buf) * count, SEEK_SET) < 0) { in history_truncate_file()
1372 if (fread(buf, sizeof(buf), (size_t)1, tp) != 1) { in history_truncate_file()
1373 if (ferror(tp)) { in history_truncate_file()
1391 if (fseeko(tp, (off_t)sizeof(buf) * count + (cp - buf), SEEK_SET) == in history_truncate_file()
1398 if ((left = (ssize_t)fread(buf, (size_t)1, sizeof(buf), tp)) == 0) { in history_truncate_file()
1412 fclose(tp); in history_truncate_file()