|
|
1.1 root 1: #define FIO_IMP
2: #include "fio.h"
3: #include <libc.h>
4:
5: Ffillbuf(fd)
6: {
7: register COUNT n;
8: register Fbuffer *f = Ffb[fd];
9:
10: if(n = &f->buf[FIOBSIZE]-f->end){
11: FIOFLUSH(f->oflush);
12: n = read(fd, f->end, n);
13: if(n <= 0)
14: return(-1);
15: f->end += n;
16: f->offset += n;
17: }
18: return(1);
19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.