if (path == null)
throw new ArgumentNullException ("path");
if (!IsPathRooted (path))
- path = UnixDirectory.GetCurrentDirectory() + DirectorySeparatorChar + path;
+ path = UnixDirectoryInfo.GetCurrentDirectory() + DirectorySeparatorChar + path;
return path;
}
{
StringBuilder buf = new StringBuilder (256);
do {
- int r = Syscall.readlink (path, buf);
+ int r = Native.Syscall.readlink (path, buf);
if (r < 0) {
- Error e;
- switch (e = Syscall.GetLastError()) {
- case Error.EINVAL:
+ Native.Errno e;
+ switch (e = Native.Stdlib.GetLastError()) {
+ case Native.Errno.EINVAL:
// path isn't a symbolic link
return null;
default: