1
0
Fork 0
forked from len0rd/rockbox

long policy

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6071 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jean-Philippe Bernardy 2005-02-26 21:18:05 +00:00
parent 74a1fb8d83
commit 5da99ed570
3 changed files with 8 additions and 8 deletions

View file

@ -1940,7 +1940,7 @@ int fat_rename(struct fat_file* file,
return 0; return 0;
} }
static int next_write_cluster(struct fat_file* file, static long next_write_cluster(struct fat_file* file,
long oldcluster, long oldcluster,
long* newsector) long* newsector)
{ {
@ -2032,7 +2032,7 @@ static int transfer(IF_MV2(struct bpb* fat_bpb,)
} }
int fat_readwrite( struct fat_file *file, long sectorcount, long fat_readwrite( struct fat_file *file, long sectorcount,
void* buf, bool write ) void* buf, bool write )
{ {
#ifdef HAVE_MULTIVOLUME #ifdef HAVE_MULTIVOLUME
@ -2406,7 +2406,7 @@ int fat_getnext(struct fat_dir *dir, struct fat_direntry *entry)
return 0; return 0;
} }
int fat_get_cluster_size(IF_MV_NONVOID(int volume)) unsigned int fat_get_cluster_size(IF_MV_NONVOID(int volume))
{ {
#ifndef HAVE_MULTIVOLUME #ifndef HAVE_MULTIVOLUME
const int volume = 0; const int volume = 0;

View file

@ -90,7 +90,7 @@ extern int fat_open(IF_MV2(int volume,)
extern int fat_create_file(const char* name, extern int fat_create_file(const char* name,
struct fat_file* ent, struct fat_file* ent,
struct fat_dir* dir); struct fat_dir* dir);
extern int fat_readwrite(struct fat_file *ent, long sectorcount, extern long fat_readwrite(struct fat_file *ent, long sectorcount,
void* buf, bool write ); void* buf, bool write );
extern int fat_closewrite(struct fat_file *ent, long size, int attr); extern int fat_closewrite(struct fat_file *ent, long size, int attr);
extern int fat_seek(struct fat_file *ent, unsigned long sector ); extern int fat_seek(struct fat_file *ent, unsigned long sector );
@ -105,7 +105,7 @@ extern int fat_opendir(IF_MV2(int volume,)
struct fat_dir *ent, unsigned long currdir, struct fat_dir *ent, unsigned long currdir,
const struct fat_dir *parent_dir); const struct fat_dir *parent_dir);
extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry); extern int fat_getnext(struct fat_dir *ent, struct fat_direntry *entry);
extern int fat_get_cluster_size(IF_MV_NONVOID(int volume)); extern unsigned int fat_get_cluster_size(IF_MV_NONVOID(int volume));
extern bool fat_ismounted(int volume); extern bool fat_ismounted(int volume);
#endif #endif

View file

@ -45,8 +45,8 @@
struct dirent { struct dirent {
unsigned char d_name[MAX_PATH]; unsigned char d_name[MAX_PATH];
int attribute; int attribute;
int size; long size;
int startcluster; long startcluster;
unsigned short wrtdate; /* Last write date */ unsigned short wrtdate; /* Last write date */
unsigned short wrttime; /* Last write time */ unsigned short wrttime; /* Last write time */
}; };
@ -57,7 +57,7 @@ struct dirent {
typedef struct { typedef struct {
#ifndef SIMULATOR #ifndef SIMULATOR
bool busy; bool busy;
int startcluster; long startcluster;
struct fat_dir fatdir; struct fat_dir fatdir;
struct fat_dir parent_dir; struct fat_dir parent_dir;
struct dirent theent; struct dirent theent;