summaryrefslogtreecommitdiff
path: root/fs/fs.c
blob: 606e05ce6ab83e1512382a19921b55977c0b4e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// abstraction layer for filesystems
#include <lib/int/stdint.h>
#include "fs.h"
//
// returns number of entries in the directory specified by name.
// fills 0-max into *dirs

int fs_readdir(const char *name,fs_dirent *dirs,int max)
{
    return ext2_read_dir(0x80800, 2,dirs,max);  // TODO: hardcoded, fix this
}