36 int (*open_r)(
struct _reent *r,
void *fileStruct,
const char *path,
int flags,
int mode);
37 int (*close_r)(
struct _reent *r,
int fd);
38 ssize_t (*write_r)(
struct _reent *r,
int fd,
const char *
ptr,
size_t len);
39 ssize_t (*read_r)(
struct _reent *r,
int fd,
char *
ptr,
size_t len);
40 off_t (*seek_r)(
struct _reent *r,
int fd, off_t pos,
int dir);
41 int (*fstat_r)(
struct _reent *r,
int fd,
struct stat *st);
42 int (*stat_r)(
struct _reent *r,
const char *file,
struct stat *st);
43 int (*link_r)(
struct _reent *r,
const char *existing,
const char *newLink);
44 int (*unlink_r)(
struct _reent *r,
const char *name);
45 int (*chdir_r)(
struct _reent *r,
const char *name);
46 int (*rename_r) (
struct _reent *r,
const char *oldName,
const char *newName);
47 int (*mkdir_r) (
struct _reent *r,
const char *path,
int mode);
52 int (*dirreset_r)(
struct _reent *r,
DIR_ITER *dirState);
53 int (*dirnext_r)(
struct _reent *r,
DIR_ITER *dirState,
char *filename,
struct stat *filestat);
54 int (*dirclose_r)(
struct _reent *r,
DIR_ITER *dirState);
55 int (*statvfs_r)(
struct _reent *r,
const char *path,
struct statvfs *buf);
56 int (*ftruncate_r)(
struct _reent *r,
int fd, off_t len);
57 int (*fsync_r)(
struct _reent *r,
int fd);
61 int (*chmod_r)(
struct _reent *r,
const char *path, mode_t mode);
62 int (*fchmod_r)(
struct _reent *r,
int fd, mode_t mode);
69 void *(*sbrk_r) (
struct _reent *
ptr, ptrdiff_t incr);
70 int (*lock_init) (
int *
lock,
int recursive);
71 int (*lock_close) (
int *
lock);
72 int (*lock_release) (
int *
lock);
73 int (*lock_acquire) (
int *
lock);
74 void (*malloc_lock) (
struct _reent *
ptr);
75 void (*malloc_unlock) (
struct _reent *
ptr);
76 void (*exit) (
int rc );
77 int (*gettod_r) (
struct _reent *
ptr,
struct timeval *tp,
struct timezone *tz);
void lock(unsigned int *lock)
void setDefaultDevice(int device)
int RemoveDevice(const char *name)
int AddDevice(const devoptab_t *device)
const devoptab_t * devoptab_list[]
int FindDevice(const char *name)
const devoptab_t * GetDeviceOpTab(const char *name)
int stat(const char *file, struct stat *st)