client_fs.h

00001 /***************************************************************************
00002                           client_fs.h  -  description
00003                              -------------------
00004     begin                : Sun Feb 8 2004
00005     copyright            : (C) 2004 by Dynacube Team
00006     email                : 
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at iiyour option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef __CLIENT_FS_H
00019 #define __CLIENT_FS_H
00020 
00021  #include "common/ktypes.h"
00022  #include "fs/fat12.h"
00023  
00024  #define E_DISK           -1
00025  #define E_FS_NEXISTS     -2
00026  #define E_FS_EXISTS      -3
00027  #define E_FS_FNAME       -4
00028  #define E_FS_SPACE       -5
00029  #define E_FS_BUSY        -6
00030 
00031  #define O_RDONLY 1
00032  #define O_RDWR   2
00033  
00034  SDW open(char *fname,DW mode);
00035  SDW close(DW fd_in);
00036  SDW read(DW fd_in,char *buf,DW length);
00037  SDW write(DW fd_in,char *buf,DW length);
00038  SDW creat(char *fname);
00039  SDW opendir(char *name);
00040  SDW createdir(char *name);
00041  SDW closedir(DW dd_in);
00042  SDW readdir(DW dd_in,DIRENT *dir);
00043  SDW fs_remove(char *name);
00044  SDW rename(char *old_name,char *new_name);
00045 
00046 #endif

Generated on Thu Jul 27 23:52:25 2006 for Dynacube by  doxygen 1.4.7