Use core.stdc.errno instead of dfuse.fuse.errno
This commit is contained in:
parent
af7c43ccba
commit
77e64e4c37
|
@ -11,6 +11,7 @@ import std.stdio;
|
||||||
|
|
||||||
import core.sys.posix.unistd;
|
import core.sys.posix.unistd;
|
||||||
import core.stdc.string;
|
import core.stdc.string;
|
||||||
|
import core.stdc.errno;
|
||||||
|
|
||||||
import dfuse.fuse;
|
import dfuse.fuse;
|
||||||
|
|
||||||
|
@ -81,7 +82,7 @@ class FileSystem : Operations
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
throw new FuseException(errno.ENOENT);
|
throw new FuseException(ENOENT);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -149,7 +150,7 @@ class FileSystem : Operations
|
||||||
auto realPath = findFile(path.baseName);
|
auto realPath = findFile(path.baseName);
|
||||||
if(realPath is null)
|
if(realPath is null)
|
||||||
{
|
{
|
||||||
throw new FuseException(errno.ENOENT);
|
throw new FuseException(ENOENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
strncpy(cast(char*)buf, cast(char*)realPath.toStringz, realPath.length);
|
strncpy(cast(char*)buf, cast(char*)realPath.toStringz, realPath.length);
|
||||||
|
|
Loading…
Reference in New Issue