picox  0.1
xposixfs.c ファイル
#include <picox/filesystem/xposixfs.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <dirent.h>
#include <utime.h>
#include <errno.h>
#include <unistd.h>
xposixfs.c の依存先関係図:

マクロ定義

#define X__ASSERT_TAG(p)    (X_ASSERT(((const XPosixFs*)p)->m_tag == X_POSIXFS_TAG))
 
#define X__GET_REAL_DIR(dir)   (((X__DirStorage*)dir)->realdir)
 
#define X__GET_REAL_FP(fp)    (((X__FileStorage*)(fp))->realfp)
 

関数

static bool X__DoRmTree (char *path, int size, int tail, struct stat *statbuf)
 
static XError X__GetError (void)
 
XError xposixfs_chdir (XPosixFs *fs, const char *path)
 
XError xposixfs_close (XFile *fp)
 
XError xposixfs_closedir (XDir *dir)
 
void xposixfs_deinit (XPosixFs *fs)
 ファイルシステムの終了処理を行います [詳解]
 
XError xposixfs_flush (XFile *fp)
 
XError xposixfs_getcwd (XPosixFs *fs, char *buf, size_t size)
 
void xposixfs_init (XPosixFs *fs)
 ファイルシステムを初期化します [詳解]
 
void xposixfs_init_vfs (XPosixFs *fs, XVirtualFs *vfs)
 仮想ファイルシステムを初期化します [詳解]
 
XError xposixfs_mkdir (XPosixFs *fs, const char *path)
 
XError xposixfs_open (XPosixFs *fs, const char *path, XOpenMode mode, XFile **o_fp)
 
XError xposixfs_opendir (XPosixFs *fs, const char *path, XDir **o_dir)
 
XError xposixfs_read (XFile *fp, void *dst, size_t size, size_t *nread)
 
XError xposixfs_readdir (XDir *dir, XDirEnt *dirent, XDirEnt **result)
 
XError xposixfs_remove (XPosixFs *fs, const char *path)
 
XError xposixfs_rename (XPosixFs *fs, const char *oldpath, const char *newpath)
 
XError xposixfs_rmtree (XPosixFs *fs, const char *path)
 
XError xposixfs_seek (XFile *fp, XOffset pos, XSeekMode whence)
 
XError xposixfs_stat (XPosixFs *fs, const char *path, XStat *statbuf)
 
XError xposixfs_tell (XFile *fp, XSize *pos)
 
XError xposixfs_utime (XPosixFs *fs, const char *path, XTime time)
 
XError xposixfs_write (XFile *fp, const void *src, size_t size, size_t *nwritten)
 

詳解

著者
MaskedW