diff options
Diffstat (limited to 'src/libjin/fs/filesystem.cpp')
-rw-r--r-- | src/libjin/fs/filesystem.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/libjin/fs/filesystem.cpp b/src/libjin/fs/filesystem.cpp index 72f1144..af94034 100644 --- a/src/libjin/fs/filesystem.cpp +++ b/src/libjin/fs/filesystem.cpp @@ -12,7 +12,7 @@ namespace fs Filesystem::Filesystem() { - S = sm_newshared(); + S = smtnewshared(); } Filesystem* Filesystem::get() @@ -25,10 +25,10 @@ namespace fs */ void Filesystem::mount(const char * path) { - int err = sm_mount(S, path); + int err = smtmount(S, path); if (err) { - printf("%s mounted path %s", sm_errstr(err), path); + printf("%s mounted path %s", smterrstr(err), path); exit(1); } } @@ -38,7 +38,7 @@ namespace fs */ int Filesystem::read(const char* path, Buffer* buffer) { - buffer->data = sm_read(S, path, &buffer->size); + buffer->data = smtread(S, path, &buffer->size); if (buffer->data == 0) return 0; return 1; @@ -46,22 +46,22 @@ namespace fs const char* Filesystem::getFull(const char* path) { - return sm_fullpath(S, path); + return smtfullpath(S, path); } bool Filesystem::isDir(const char* path) { - return sm_isdir(S, path); + return smtisdir(S, path); } bool Filesystem::isFile(const char* path) { - return sm_isreg(S, path); + return smtisreg(S, path); } bool Filesystem::exists(const char* path) { - return sm_exists(S, path) == 0; + return smtexists(S, path) == 0; } } |