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