Annotation of researchv9/libc/fio/fiogetc.c, revision 1.1.1.1

1.1       root        1: #define        FIO_IMP
                      2: #include       "fio.h"
                      3: #include       <libc.h>
                      4: 
                      5: Fgetc(fd)
                      6: {
                      7:        register Fbuffer *f;
                      8: 
                      9:        FIOSET(f, fd);
                     10:        if(f->next >= f->end){
                     11:                if(f->end >= &f->buf[FIOBSIZE])
                     12:                        f->end = f->next = f->buf;
                     13:                else
                     14:                        f->next = f->end;
                     15:                if(Ffillbuf(fd) <= 0)
                     16:                        return(-1);
                     17:        }
                     18:        f->lnext = f->next;
                     19:        f->rdlast = 0;
                     20:        return(*f->next++);
                     21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.