|
StuBS
|
Classes | |
| struct | DirEntry |
| struct | FileStats |
Public Types | |
| enum | FileType { FILE , DIRECTORY , SYMLINK , OTHER } |
| typedef void | DirHandle |
Public Member Functions | |
| virtual int | chdir (const char *path)=0 |
| virtual int | readlink (const char *pathname, char *buf, unsigned bufsiz)=0 |
| virtual int | open (const char *pathname, bool write=false)=0 |
| virtual int | close (int fd)=0 |
| virtual int | read (int fd, void *buf, unsigned count)=0 |
| virtual int | write (int fd, const void *buf, unsigned count)=0 |
| virtual int | link (const char *oldpath, const char *newpath) |
| virtual int | symlink (const char *target, const char *linkpath)=0 |
| virtual int | unlink (const char *pathname) |
| virtual int | rename (const char *oldpath, const char *newpath) |
| virtual int | mkdir (const char *pathname)=0 |
| virtual int | rmdir (const char *pathname) |
| virtual int | truncate (const char *path) |
| virtual DirHandle * | opendir (const char *name)=0 |
| virtual DirEntry | readdir (DirHandle *dirp)=0 |
| virtual void | rewinddir (DirHandle *dirp)=0 |
| virtual int | closedir (DirHandle *dirp)=0 |
| virtual struct FileStats | stat (const char *path, bool followSymlink=true)=0 |
| virtual int | getcwd (char *buf, unsigned bufsiz)=0 |
| virtual void | sync ()=0 |