further abstraction of system calls

This commit is contained in:
Antonio SJ Musumeci 2016-10-20 16:51:49 -04:00
parent 1ad05d7783
commit d0b6cd1f38
8 changed files with 121 additions and 15 deletions

View file

@ -25,6 +25,7 @@
#include "errno.hpp"
#include "fs_attr.hpp"
#include "fs_base_realpath.hpp"
#include "fs_base_stat.hpp"
#include "fs_base_statvfs.hpp"
#include "fs_path.hpp"
@ -154,7 +155,7 @@ namespace fs
{
fs::path::make(&srcmounts[i],fusepath,fullpath);
rv = ::lstat(fullpath.c_str(),&st);
rv = fs::lstat(fullpath,st);
if(FSTAT_FAILED(rv))
continue;
@ -201,7 +202,7 @@ namespace fs
for(size_t i = 0; i < strs.size(); i++)
{
rv = ::realpath(strs[i].c_str(),NULL);
rv = fs::realpath(strs[i]);
if(rv == NULL)
continue;