RetroArch
Classes | Macros | Typedefs | Functions
fatfile.h File Reference
#include <sys/reent.h>
#include <sys/stat.h>
#include "common.h"
#include "partition.h"
#include "directory.h"
Include dependency graph for fatfile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  FILE_POSITION
 
struct  _FILE_STRUCT
 

Macros

#define FILE_MAX_SIZE   ((uint32_t)0xFFFFFFFF) /* 4GiB - 1B */
 

Typedefs

typedef struct _FILE_STRUCT FILE_STRUCT
 

Functions

int _FAT_open_r (struct _reent *r, void *fileStruct, const char *path, int flags, int mode)
 
int _FAT_close_r (struct _reent *r, void *fd)
 
ssize_t _FAT_write_r (struct _reent *r, void *fd, const char *ptr, size_t len)
 
ssize_t _FAT_read_r (struct _reent *r, void *fd, 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_stat_r (struct _reent *r, const char *path, struct stat *st)
 
int _FAT_link_r (struct _reent *r, const char *existing, const char *newLink)
 
int _FAT_unlink_r (struct _reent *r, const char *name)
 
int _FAT_chdir_r (struct _reent *r, const char *name)
 
int _FAT_rename_r (struct _reent *r, const char *oldName, const char *newName)
 
int _FAT_ftruncate_r (struct _reent *r, void *fd, off_t len)
 
int _FAT_fsync_r (struct _reent *r, void *fd)
 
int _FAT_syncToDisc (FILE_STRUCT *file)
 

Macro Definition Documentation

◆ FILE_MAX_SIZE

#define FILE_MAX_SIZE   ((uint32_t)0xFFFFFFFF) /* 4GiB - 1B */

Typedef Documentation

◆ FILE_STRUCT

typedef struct _FILE_STRUCT FILE_STRUCT

Function Documentation

◆ _FAT_chdir_r()

int _FAT_chdir_r ( struct _reent *  r,
const char *  name 
)

◆ _FAT_close_r()

int _FAT_close_r ( struct _reent *  r,
void fd 
)

◆ _FAT_fstat_r()

int _FAT_fstat_r ( struct _reent *  r,
void fd,
struct stat *  st 
)

◆ _FAT_fsync_r()

int _FAT_fsync_r ( struct _reent *  r,
void fd 
)

◆ _FAT_ftruncate_r()

int _FAT_ftruncate_r ( struct _reent *  r,
void fd,
off_t  len 
)

◆ _FAT_link_r()

int _FAT_link_r ( struct _reent *  r,
const char *  existing,
const char *  newLink 
)

◆ _FAT_open_r()

int _FAT_open_r ( struct _reent *  r,
void fileStruct,
const char *  path,
int  flags,
int  mode 
)

◆ _FAT_read_r()

ssize_t _FAT_read_r ( struct _reent *  r,
void fd,
char *  ptr,
size_t  len 
)

◆ _FAT_rename_r()

int _FAT_rename_r ( struct _reent *  r,
const char *  oldName,
const char *  newName 
)

◆ _FAT_seek_r()

off_t _FAT_seek_r ( struct _reent *  r,
void fd,
off_t  pos,
int  dir 
)

◆ _FAT_stat_r()

int _FAT_stat_r ( struct _reent *  r,
const char *  path,
struct stat *  st 
)

◆ _FAT_syncToDisc()

int _FAT_syncToDisc ( FILE_STRUCT file)

◆ _FAT_unlink_r()

int _FAT_unlink_r ( struct _reent *  r,
const char *  name 
)

◆ _FAT_write_r()

ssize_t _FAT_write_r ( struct _reent *  r,
void fd,
const char *  ptr,
size_t  len 
)