main.c File Reference

#include <fatvar.h>

Defines

#define FAT_TIMEOUT_SRV   5

Functions

int fat_init_srv (void)
void fat_waitfor_service (int gate)
int main (int argc, char **argv)
void fat_name (char *name, t_fat_direntry *direntry)
int fat_cache_read (t_fat_fs *fs, u_int32_t offset, void *buffer, u_int32_t nblocks)
void fat_cache_write (t_fat_fs *fs, u_int32_t offset, void *buffer, u_int32_t nblocks)
int fat_read (t_fat_fs *fs, u_int32_t dev, u_int32_t block, u_int32_t off, void *data, u_int32_t bytes)
int fat_write (t_fat_fs *fs, u_int32_t dev, u_int32_t block, u_int32_t off, void *data, u_int32_t bytes, int restore)
void fat_free_dirlist (char **dirs)
char ** fat_path_split (char *path, char *sep)
u_int32_t fat_entry_from_fdent (t_fat_fs *fs, t_fat_fd *fdent, u_int32_t off)
int fat_poll_directory (t_fat_fs *fs, t_fat_direntry *direntry, char *name, u_int32_t root, u_int32_t *pent, u_int32_t *ent)
int fat_ftruncate (t_fat_fs *fs, t_fat_fd *fdent, off_t length)
int fat_readv (t_fat_fs *fs, t_fat_fd *fdent, char *buffer, u_int32_t len)
int fat_writev (t_fat_fs *fs, t_fat_fd *fdent, char *buffer, u_int32_t len)
int fat_fchmod (t_fat_fs *fs, t_fat_fd *fdent, mode_t mode)
int fat_getdents (t_fat_fs *fs, t_fat_fd *fdent, void *data, unsigned int *nbytes)
int fat_fstat (t_fat_fs *fs, t_fat_fd *fdent, struct stat *stat)
int fat_open (t_fat_fs *fs, t_fat_fd *fdent, char *path)
int fat_mount (t_fat_fs *fs, int silent)
u_int32_t fat_rsv_fd (void)
void fat_rel_fd (u_int32_t fd)
void sys_fat_ftruncate (t_tcb *caller)
void sys_fat_truncate (t_tcb *caller)
void sys_fat_read (t_tcb *caller)
void sys_fat_write (t_tcb *caller)
void sys_fat_getdents (t_tcb *caller)
void sys_fat_close (t_tcb *caller)
void sys_fat_lseek (t_tcb *caller)
void sys_fat_open (t_tcb *caller)
void sys_fat_fstat (t_tcb *caller)
void sys_fat_stat (t_tcb *caller)
void sys_fat_fchmod (t_tcb *caller)
void sys_fat_chmod (t_tcb *caller)
void sys_fat_read_super (t_tcb *caller)
void sys_fat_init (t_tcb *caller)
void do_sys_fat (void)
void sys_fat (void)

Variables

int errno
int suberrno
t_fat fat
static void * filesystem_mounted = NULL
static t_fat_fd fdtab [256]

Define Documentation

#define FAT_TIMEOUT_SRV   5
 


Function Documentation

void do_sys_fat void   ) 
 

int fat_cache_read t_fat_fs fs,
u_int32_t  offset,
void *  buffer,
u_int32_t  nblocks
 

void fat_cache_write t_fat_fs fs,
u_int32_t  offset,
void *  buffer,
u_int32_t  nblocks
 

u_int32_t fat_entry_from_fdent t_fat_fs fs,
t_fat_fd fdent,
u_int32_t  off
 

int fat_fchmod t_fat_fs fs,
t_fat_fd fdent,
mode_t  mode
 

void fat_free_dirlist char **  dirs  ) 
 

int fat_fstat t_fat_fs fs,
t_fat_fd fdent,
struct stat stat
 

int fat_ftruncate t_fat_fs fs,
t_fat_fd fdent,
off_t  length
 

int fat_getdents t_fat_fs fs,
t_fat_fd fdent,
void *  data,
unsigned int *  nbytes
 

int fat_init_srv void   ) 
 

int fat_mount t_fat_fs fs,
int  silent
 

void fat_name char *  name,
t_fat_direntry direntry
 

int fat_open t_fat_fs fs,
t_fat_fd fdent,
char *  path
 

char** fat_path_split char *  path,
char *  sep
 

int fat_poll_directory t_fat_fs fs,
t_fat_direntry direntry,
char *  name,
u_int32_t  root,
u_int32_t pent,
u_int32_t ent
 

int fat_read t_fat_fs fs,
u_int32_t  dev,
u_int32_t  block,
u_int32_t  off,
void *  data,
u_int32_t  bytes
 

int fat_readv t_fat_fs fs,
t_fat_fd fdent,
char *  buffer,
u_int32_t  len
 

void fat_rel_fd u_int32_t  fd  ) 
 

u_int32_t fat_rsv_fd void   ) 
 

void fat_waitfor_service int  gate  ) 
 

int fat_write t_fat_fs fs,
u_int32_t  dev,
u_int32_t  block,
u_int32_t  off,
void *  data,
u_int32_t  bytes,
int  restore
 

int fat_writev t_fat_fs fs,
t_fat_fd fdent,
char *  buffer,
u_int32_t  len
 

int main int  argc,
char **  argv
 

void sys_fat void   ) 
 

void sys_fat_chmod t_tcb caller  ) 
 

void sys_fat_close t_tcb caller  ) 
 

void sys_fat_fchmod t_tcb caller  ) 
 

void sys_fat_fstat t_tcb caller  ) 
 

void sys_fat_ftruncate t_tcb caller  ) 
 

void sys_fat_getdents t_tcb caller  ) 
 

void sys_fat_init t_tcb caller  ) 
 

void sys_fat_lseek t_tcb caller  ) 
 

void sys_fat_open t_tcb caller  ) 
 

void sys_fat_read t_tcb caller  ) 
 

void sys_fat_read_super t_tcb caller  ) 
 

void sys_fat_stat t_tcb caller  ) 
 

void sys_fat_truncate t_tcb caller  ) 
 

void sys_fat_write t_tcb caller  ) 
 


Variable Documentation

int errno
 

t_fat fat
 

t_fat_fd fdtab[256] [static]
 

void* filesystem_mounted = NULL [static]
 

int suberrno
 


Generated on Wed May 24 23:06:01 2006 for LSE/OS by  doxygen 1.4.6