Lines Matching refs:filep
75 scr_reset(FILE *filep, int type) in scr_reset() argument
98 if (fread((char *)&magic, sizeof (short), 1, filep) != 1) in scr_reset()
104 if (fread((char *)&ttytime, sizeof (time_t), 1, filep) != 1) in scr_reset()
125 if (((win = getwin(filep)) == NULL) || in scr_reset()
129 (fread((char *)&magic, sizeof (int), 1, filep) != 1)) in scr_reset()
147 if ((fread((char *)&labmax, sizeof (short), 1, filep) != 1) || in scr_reset()
148 (fread((char *)&lablen, sizeof (short), 1, filep) != 1)) { in scr_reset()
165 lablen, filep) != lablen) || in scr_reset()
167 sizeof (char), lablen, filep) != lablen)) { in scr_reset()
173 if (fseek(filep, (long)(2 * labmax * lablen * in scr_reset()
181 if (fread((char *)&magic, sizeof (int), 1, filep) != 1) in scr_reset()
197 if ((fread((char *)&colors, sizeof (int), 1, filep) != 1) || in scr_reset()
199 filep) != 1) || (fread((char *)&could_change, in scr_reset()
200 sizeof (char), 1, filep) != 1)) in scr_reset()
205 if (fseek(filep, (long)(colors * sizeof (_Color) + in scr_reset()
224 colors, filep) != colors) in scr_reset()
238 if (fseek(filep, (long)(colors * in scr_reset()
251 filep) != color_pairs) { in scr_reset()