Annotation of researchv10no/libc/fio/fioclose.c, revision 1.1.1.1

1.1       root        1: #define        FIO_IMP
                      2: #include       "fio.h"
                      3: #include       <libc.h>
                      4: 
                      5: int
                      6: Fclose(fd)
                      7: {
                      8:        int ret;
                      9:        register Fbuffer *f;
                     10: 
                     11:        FIOSET(f, fd);
                     12:        ret = Fflush(fd);
                     13:        if(f->flags&FIO_MALLOCED)
                     14:                free((char *)f);
                     15:        Ffb[fd] = 0;
                     16:        if(close(fd) < 0)
                     17:                ret = -1;
                     18:        return(ret);
                     19: }

unix.superglobalmegacorp.com

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