From 4f3ea475b0c72cf83175cc69bdd128b7a306523b Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 27 May 2018 17:39:09 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=9F=B3=E9=A2=91=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/fs/filesystem.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/libjin/fs/filesystem.cpp') 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; } } -- cgit v1.1-26-g67d0