RetroArch
Functions
fatfile.c File Reference
#include "fatfile.h"
#include <fcntl.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>
#include "cache.h"
#include "file_allocation_table.h"
#include "bit_ops.h"
#include "filetime.h"
#include "lock.h"
Include dependency graph for fatfile.c:

Functions

bool _FAT_findEntry (const char *path, DIR_ENTRY *dirEntry)
 
int FAT_getAttr (const char *file)
 
int FAT_setAttr (const char *file, uint8_t attr)
 
int _FAT_open_r (struct _reent *r, void *fileStruct, const char *path, int flags, int mode)
 
int _FAT_syncToDisc (FILE_STRUCT *file)
 
int _FAT_close_r (struct _reent *r, void *fd)
 
ssize_t _FAT_read_r (struct _reent *r, void *fd, char *ptr, size_t len)
 
static bool _FAT_check_position_for_next_cluster (struct _reent *r, FILE_POSITION *position, PARTITION *partition, size_t remain, bool *flagNoError)
 
static bool _FAT_file_extend_r (struct _reent *r, FILE_STRUCT *file)
 
ssize_t _FAT_write_r (struct _reent *r, void *fd, const char *ptr, size_t len)
 
off_t _FAT_seek_r (struct _reent *r, void *fd, off_t pos, int dir)
 
int _FAT_fstat_r (struct _reent *r, void *fd, struct stat *st)
 
int _FAT_ftruncate_r (struct _reent *r, void *fd, off_t len)
 
int _FAT_fsync_r (struct _reent *r, void *fd)
 

Function Documentation

◆ _FAT_check_position_for_next_cluster()

static bool _FAT_check_position_for_next_cluster ( struct _reent *  r,
FILE_POSITION position,
PARTITION partition,
size_t  remain,
bool flagNoError 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _FAT_close_r()

int _FAT_close_r ( struct _reent *  r,
void fd 
)
Here is the call graph for this function:

◆ _FAT_file_extend_r()

static bool _FAT_file_extend_r ( struct _reent *  r,
FILE_STRUCT file 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ _FAT_findEntry()

bool _FAT_findEntry ( const char *  path,
DIR_ENTRY dirEntry 
)
Here is the call graph for this function:

◆ _FAT_fstat_r()

int _FAT_fstat_r ( struct _reent *  r,
void fd,
struct stat *  st 
)
Here is the call graph for this function:

◆ _FAT_fsync_r()

int _FAT_fsync_r ( struct _reent *  r,
void fd 
)
Here is the call graph for this function:

◆ _FAT_ftruncate_r()

int _FAT_ftruncate_r ( struct _reent *  r,
void fd,
off_t  len 
)
Here is the call graph for this function:

◆ _FAT_open_r()

int _FAT_open_r ( struct _reent *  r,
void fileStruct,
const char *  path,
int  flags,
int  mode 
)
Here is the call graph for this function:

◆ _FAT_read_r()

ssize_t _FAT_read_r ( struct _reent *  r,
void fd,
char *  ptr,
size_t  len 
)
Here is the call graph for this function:

◆ _FAT_seek_r()

off_t _FAT_seek_r ( struct _reent *  r,
void fd,
off_t  pos,
int  dir 
)
Here is the call graph for this function:

◆ _FAT_syncToDisc()

int _FAT_syncToDisc ( FILE_STRUCT file)
Here is the call graph for this function:

◆ _FAT_write_r()

ssize_t _FAT_write_r ( struct _reent *  r,
void fd,
const char *  ptr,
size_t  len 
)
Here is the call graph for this function:

◆ FAT_getAttr()

int FAT_getAttr ( const char *  file)
Here is the call graph for this function:

◆ FAT_setAttr()

int FAT_setAttr ( const char *  file,
uint8_t  attr 
)
Here is the call graph for this function: