Annotation of qemu/roms/openbios/fs/ext2/ext2_read.c, revision 1.1

1.1     ! root        1: /*
        !             2:  *
        !             3:  * (c) 2008-2009 Laurent Vivier <[email protected]>
        !             4:  *
        !             5:  * This file has been copied from EMILE, http://emile.sf.net
        !             6:  *
        !             7:  */
        !             8: 
        !             9: #include "libext2.h"
        !            10: #include "ext2.h"
        !            11: #include "ext2_utils.h"
        !            12: 
        !            13: size_t ext2_read(ext2_FILE *file, void *buf, size_t count)
        !            14: {
        !            15:        int ret;
        !            16: 
        !            17:        ret = ext2_read_data(file->volume, file->inode, file->offset,
        !            18:                             buf, count);
        !            19:        if (ret == -1)
        !            20:                return -1;
        !            21:        file->offset += ret;
        !            22:        return ret;
        !            23: }

unix.superglobalmegacorp.com

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