File:  [Qemu by Fabrice Bellard] / qemu / roms / openbios / fs / ext2 / ext2_readdir.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 19:19:39 2018 UTC (8 years, 1 month ago) by root
Branches: qemu, MAIN
CVS tags: qemu1101, qemu1001, HEAD
qemu 1.0.1

/*
 *
 * (c) 2008-2009 Laurent Vivier <[email protected]>
 *
 * This file has been copied from EMILE, http://emile.sf.net
 *
 */

#include "libext2.h"
#include "ext2_utils.h"

static struct ext2_dir_entry_2 entry;

struct ext2_dir_entry_2 *ext2_readdir(ext2_DIR *dir)
{
	int ret;

	ret = ext2_dir_entry(dir->volume, dir->inode, dir->index, &entry);
	if (ret == -1)
		return NULL;
	dir->index = ret;

	entry.name[entry.name_len] = 0;
	return &entry;
}

unix.superglobalmegacorp.com

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