Annotation of researchv9/libc/fio/fioflush.c, revision 1.1

1.1     ! root        1: #define        FIO_IMP
        !             2: #include       "fio.h"
        !             3: #include       <libc.h>
        !             4: 
        !             5: Fflush(fd)
        !             6: {
        !             7:        register Fbuffer *f;
        !             8:        register COUNT n;
        !             9: 
        !            10:        FIOSET(f, fd);
        !            11:        f->end = 0;             /* mark as writing */
        !            12:        if(f->next != f->buf){
        !            13:                n = f->next - f->buf;
        !            14:                if(write(fd, f->buf, n) != n)
        !            15:                        return(1);
        !            16:                f->next = f->buf;
        !            17:        }
        !            18:        return(0);
        !            19: }

unix.superglobalmegacorp.com

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