RetroArch
Functions | Variables
libfat.c File Reference
#include <sys/iosupport.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <limits.h>
#include "common.h"
#include "partition.h"
#include "fatfile.h"
#include "fatdir.h"
#include "lock.h"
#include "mem_allocate.h"
#include "disc.h"
Include dependency graph for libfat.c:

Functions

bool fatMount (const char *name, const DISC_INTERFACE *interface, sec_t startSector, uint32_t cacheSize, uint32_t SectorsPerPage)
 
bool fatMountSimple (const char *name, const DISC_INTERFACE *interface)
 
void fatUnmount (const char *name)
 
bool fatInit (uint32_t cacheSize, bool setAsDefaultDevice)
 
bool fatInitDefault (void)
 
void fatGetVolumeLabel (const char *name, char *label)
 

Variables

static const devoptab_t dotab_fat
 

Function Documentation

◆ fatGetVolumeLabel()

void fatGetVolumeLabel ( const char *  name,
char *  label 
)
Here is the call graph for this function:

◆ fatInit()

bool fatInit ( uint32_t  cacheSize,
bool  setAsDefaultDevice 
)
Here is the call graph for this function:

◆ fatInitDefault()

bool fatInitDefault ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fatMount()

bool fatMount ( const char *  name,
const DISC_INTERFACE interface,
sec_t  startSector,
uint32_t  cacheSize,
uint32_t  SectorsPerPage 
)
Here is the call graph for this function:

◆ fatMountSimple()

bool fatMountSimple ( const char *  name,
const DISC_INTERFACE interface 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ fatUnmount()

void fatUnmount ( const char *  name)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ dotab_fat

const devoptab_t dotab_fat
static
Initial value:
= {
"fat",
sizeof (FILE_STRUCT),
sizeof (DIR_STATE_STRUCT),
NULL,
NULL,
NULL,
}
int _FAT_rename_r(struct _reent *r, const char *oldName, const char *newName)
Definition: fatdir.c:223
ssize_t _FAT_write_r(struct _reent *r, void *fd, const char *ptr, size_t len)
Definition: fatfile.c:738
int _FAT_dirnext_r(struct _reent *r, DIR_ITER *dirState, char *filename, struct stat *filestat)
Definition: fatdir.c:621
off_t _FAT_seek_r(struct _reent *r, void *fd, off_t pos, int dir)
Definition: fatfile.c:966
ssize_t _FAT_read_r(struct _reent *r, void *fd, char *ptr, size_t len)
Definition: fatfile.c:444
int _FAT_unlink_r(struct _reent *r, const char *path)
Definition: fatdir.c:93
int _FAT_open_r(struct _reent *r, void *fileStruct, const char *path, int flags, int mode)
Definition: fatfile.c:127
int _FAT_statvfs_r(struct _reent *r, const char *path, struct statvfs *buf)
Definition: fatdir.c:492
#define NULL
Pointer to 0.
Definition: gctypes.h:65
int _FAT_fsync_r(struct _reent *r, void *fd)
Definition: fatfile.c:1215
int _FAT_dirreset_r(struct _reent *r, DIR_ITER *dirState)
Definition: fatdir.c:599
int _FAT_dirclose_r(struct _reent *r, DIR_ITER *dirState)
Definition: fatdir.c:656
int _FAT_chdir_r(struct _reent *r, const char *path)
Definition: fatdir.c:186
int _FAT_fstat_r(struct _reent *r, void *fd, struct stat *st)
Definition: fatfile.c:1068
int _FAT_ftruncate_r(struct _reent *r, void *fd, off_t len)
Definition: fatfile.c:1103
struct _FILE_STRUCT FILE_STRUCT
Definition: fatfile.h:70
int _FAT_mkdir_r(struct _reent *r, const char *path, int mode)
Definition: fatdir.c:349
int _FAT_close_r(struct _reent *r, void *fd)
Definition: fatfile.c:407
int _FAT_link_r(struct _reent *r, const char *existing, const char *newLink)
Definition: fatdir.c:87
DIR_ITER * _FAT_diropen_r(struct _reent *r, DIR_ITER *dirState, const char *path)
Definition: fatdir.c:544
int _FAT_stat_r(struct _reent *r, const char *path, struct stat *st)
Definition: fatdir.c:48
Definition: fatdir.h:42