Use core.stdc.errno instead of dfuse.fuse.errno

This commit is contained in:
Les De Ridder 2016-11-08 03:12:12 +01:00
parent af7c43ccba
commit 77e64e4c37
No known key found for this signature in database
GPG Key ID: 5EC132DFA85DB372
1 changed files with 3 additions and 2 deletions

View File

@ -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);