9#define SYS_O_RDONLY 000000
10#define SYS_O_WRONLY 000001
11#define SYS_O_RDWR 000002
12#define SYS_O_ACCMODE 000003
13#define SYS_O_CREAT 000100
14#define SYS_O_EXCL 000200
15#define SYS_O_TRUNC 001000
16#define SYS_O_APPEND 002000
17#define SYS_O_MSELF 010000
19#define SYS_FS_IO_BUFFER_PAGE_SIZE_64KB 2
20#define SYS_FS_IO_BUFFER_PAGE_SIZE_1MB 4
68s32
sysFsOpen(
const char *path,s32 oflags,s32 *fd,
const void *arg,u64 argsize);
72s32
sysFsLseek(s32 fd, s64 offset, s32 whence, u64* position);
96s32
sysFsSetIoBuffer(s32 fd,
size_t bufferSizeLimit, s32 pageType, sys_mem_container_t container);
struct _heap_cntrl_t __attribute__
char d_name[MAXPATHLEN+1]
s32 sysFsAccess(const char *path, s32 amode)
struct _sys_fs_utime sysFSUtimbuf
s32 sysFsGetFreeSize(const char *path, u32 *blockSize, u64 *freeBlocks)
s32 sysFsLseek(s32 fd, s64 offset, s32 whence, u64 *position)
s32 sysFsUtime(const char *path, sysFSUtimbuf *times)
struct _sys_fs_aio sysFSAio
struct _sys_fs_dirent sysFSDirent
s32 sysFsRmdir(const char *path)
s32 sysFsReaddir(s32 fd, sysFSDirent *entry, u64 *read)
s32 sysFsChmod(const char *path, s32 mode)
s32 sysFsSetDefaultContainer(sys_mem_container_t container, size_t totalLimit)
s32 sysFsAioWrite(sysFSAio *aio, s32 *id, sysFsAioCallback cb)
s32 sysFsClosedir(s32 fd)
s32 sysFsStat(const char *path, sysFSStat *stat)
s32 sysFsUnlink(const char *path)
s32 sysFsAioFinish(const char *path)
s32 sysFsFstat(s32 fd, sysFSStat *stat)
s32 sysFsAioRead(sysFSAio *aio, s32 *id, sysFsAioCallback cb)
s32 sysFsGetDirectoryEntries(s32 fd, sysFSDirectoryEntry *entries, u32 entrySize, u32 *dataCount)
s32 sysFsOpen(const char *path, s32 oflags, s32 *fd, const void *arg, u64 argsize)
s32 sysFsRead(s32 fd, void *ptr, u64 len, u64 *read)
s32 sysFsMkdir(const char *path, s32 mode)
s32 sysFsSetIoBuffer(s32 fd, size_t bufferSizeLimit, s32 pageType, sys_mem_container_t container)
s32 sysFsOpendir(const char *path, s32 *fd)
void(* sysFsAioCallback)(sysFSAio *aio, s32 error, s32 xid, u64 size)
s32 sysFsSetIoBufferFromDefaultContainer(s32 fd, size_t bufferSizeLimit, s32 pageType)
s32 sysFsWrite(s32 fd, const void *ptr, u64 size, u64 *written)
s32 sysFsAioCancel(s32 id)
struct _sys_fs_directory_entry sysFSDirectoryEntry
s32 sysFsAioInit(const char *path)