Lines Matching defs:ibuf
55 setptr(register FILE *ibuf)
103 while ((n = getln(linebuf, sizeof (linebuf), ibuf)) > 0) {
119 fclose(ibuf);
146 fclose(ibuf);
157 if ((n = fread(linebuf, 1, n, ibuf)) <= 0) {
271 fclose(ibuf);
281 fclose(ibuf);
319 fclose(ibuf);
331 FILE *ibuf;
335 ibuf = setinput(mp);
339 nread = getln(line, sizeof (line), ibuf);
398 readline(FILE *ibuf, char *linebuf)
404 clearerr(ibuf);
405 c = getc(ibuf);
406 for (cp = linebuf; c != '\n' && c != EOF; c = getc(ibuf)) {
493 FILE *obuf, *ibuf, *tbuf = 0, *readstat;
521 if ((ibuf = fopen(editfile, "r+")) == NULL) {
526 lock(ibuf, "r+", 1);
527 if (fstat(fileno(ibuf), &statb) >= 0 && statb.st_size > mailsize) {
531 fclose(ibuf);
537 fclose(ibuf);
543 fseek(ibuf, mailsize, 0);
544 while ((c = getc(ibuf)) != EOF)
549 fclose(ibuf);
559 fclose(ibuf);
575 fclose(ibuf);
592 fclose(ibuf);
603 fclose(ibuf);