Lines Matching refs:filep
77 scr_reset(FILE *filep, int type) in scr_reset() argument
100 if (fread((char *) &magic, sizeof (short), 1, filep) != 1) in scr_reset()
106 if (fread((char *) &ttytime, sizeof (time_t), 1, filep) != 1) in scr_reset()
127 if (((win = getwin(filep)) == NULL) || in scr_reset()
131 (fread((char *) &magic, sizeof (int), 1, filep) != 1)) in scr_reset()
149 if ((fread((char *) &labmax, sizeof (short), 1, filep) != 1) || in scr_reset()
150 (fread((char *) &lablen, sizeof (short), 1, filep) != 1)) { in scr_reset()
167 lablen, filep) != lablen) || in scr_reset()
169 sizeof (char), lablen, filep) != lablen)) { in scr_reset()
175 if (fseek(filep, (long) (2 * labmax * lablen * in scr_reset()
183 if (fread((char *) &magic, sizeof (int), 1, filep) != 1) in scr_reset()
199 if ((fread((char *) &colors, sizeof (int), 1, filep) != 1) || in scr_reset()
201 filep) != 1) || (fread((char *) &could_change, in scr_reset()
202 sizeof (char), 1, filep) != 1)) in scr_reset()
207 if (fseek(filep, (long) (colors * sizeof (_Color) + in scr_reset()
226 colors, filep) != colors) in scr_reset()
240 if (fseek(filep, (long) (colors * in scr_reset()
253 filep) != color_pairs) { in scr_reset()