##// END OF EJS Templates
sync
sync

File last commit:

r18:bd9ab647f70a default
r25:b4b05488cb5e default
Show More
fs.c
25 lines | 485 B | text/x-c | CLexer
#include <stdint.h>
#include <streamdevices.h>
#include <stdio.h>
#define __MAX_OPENED_FILES__ 32
#define __FS_ROOT_SIZE__ 32
const int32_t __max_opened_files__ = __MAX_OPENED_FILES__;
streamdevice* __files__[__MAX_OPENED_FILES__];
const int32_t __fs_root_size__ = __FS_ROOT_SIZE__;
int32_t __fs_root__[__FS_ROOT_SIZE__];
void __init_fs()
{
int i=0;
for(i=0;i<__fs_root_size__;i++)
{
__fs_root__[i]=NULL;
}
for(i=0;i<__max_opened_files__ ;i++)
{
__files__[i]=NULL;
}
}