16 #ifndef __FILEXIO_RPC_H__
17 #define __FILEXIO_RPC_H__
22 #ifndef NEWLIB_PORT_AWARE
23 #error "Using fio/fileXio functions directly in the newlib port will lead to problems."
24 #error "Use posix function calls instead."
30 #define FXIO_COMPLETE 1
31 #define FXIO_INCOMPLETE 0
45 int fileXioMount(
const char* mountpoint,
const char* blockdev,
int flag);
55 int fileXioOpen(
const char* source,
int flags, ...);
63 int fileXioFormat(
const char *dev,
const char *blockdev,
const void *args,
int arglen);
68 int fileXioDevctl(
const char *name,
int cmd,
void *arg,
unsigned int arglen,
void *buf,
unsigned int buflen);
70 int fileXioIoctl2(
int fd,
int command,
void *arg,
unsigned int arglen,
void *buf,
unsigned int buflen);
int fileXioMkdir(const char *pathname, int mode)
int fileXioDread(int fd, iox_dirent_t *dirent)
int fileXioRename(const char *source, const char *dest)
int fileXioChdir(const char *pathname)
int fileXioSymlink(const char *source, const char *dest)
int fileXioCopyfile(const char *source, const char *dest, int mode)
int fileXioDevctl(const char *name, int cmd, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int fileXioRead(int fd, void *buf, int size)
int fileXioIoctl(int fd, int cmd, void *arg)
int fileXioRmdir(const char *pathname)
int fileXioMount(const char *mountpoint, const char *blockdev, int flag)
void fileXioSetBlockMode(int blocking)
int fileXioRemove(const char *pathname)
int fileXioDclose(int fd)
int fileXioSetRWBufferSize(int size)
int fileXioDopen(const char *name)
int fileXioSync(const char *devname, int flag)
s64 fileXioLseek64(int fd, s64 offset, int whence)
int fileXioUmount(const char *mountpoint)
int fileXioGetdir(const char *pathname, struct fileXioDirEntry DirEntry[], unsigned int req_entries)
int fileXioReadlink(const char *source, char *buf, int buflen)
int fileXioIoctl2(int fd, int command, void *arg, unsigned int arglen, void *buf, unsigned int buflen)
int fileXioOpen(const char *source, int flags,...)
int fileXioWrite(int fd, const void *buf, int size)
int fileXioGetStat(const char *name, iox_stat_t *stat)
int fileXioLseek(int fd, int offset, int whence)
int fileXioFormat(const char *dev, const char *blockdev, const void *args, int arglen)
int fileXioWaitAsync(int mode, int *retVal)
int fileXioGetDeviceList(struct fileXioDevice deviceEntry[], unsigned int req_entries)
int fileXioChStat(const char *name, iox_stat_t *stat, int mask)