diff --git a/std/exception.d b/std/exception.d index 29d18d55e..3056f9d8b 100644 --- a/std/exception.d +++ b/std/exception.d @@ -883,7 +883,7 @@ class ErrnoException : Exception uint errno; // operating system error code this(string msg, string file = null, size_t line = 0) { - errno = getErrno(); + errno = .errno(); version (linux) { char[1024] buf = void; diff --git a/std/file.d b/std/file.d index 10fad16fd..bceee9a1a 100644 --- a/std/file.d +++ b/std/file.d @@ -212,7 +212,7 @@ class FileException : Exception /++ Constructor which takes the error number ($(LUCKY GetLastError) - in Windows, $(D_PARAM getErrno) in Posix). + in Windows, $(D_PARAM errno) in Posix). Params: name = Name of file for which the error occurred. @@ -229,7 +229,7 @@ class FileException : Exception this.errno = errno; } else version(Posix) this(in char[] name, - uint errno = .getErrno(), + uint errno = .errno, string file = __FILE__, size_t line = __LINE__) { @@ -249,7 +249,7 @@ private T cenforce(T)(T condition, lazy const(char)[] name, string file = __FILE } else version (Posix) { - throw new FileException(name, .getErrno(), file, line); + throw new FileException(name, .errno, file, line); } } return condition; diff --git a/std/mmfile.d b/std/mmfile.d index ff05b5f64..7b35bab3e 100644 --- a/std/mmfile.d +++ b/std/mmfile.d @@ -319,7 +319,7 @@ class MmFile struct_stat64 statbuf; if (fstat64(fd, &statbuf)) { - //printf("\tfstat error, errno = %d\n",getErrno()); + //printf("\tfstat error, errno = %d\n", errno); .close(fd); errnoEnforce(false, "Could not stat file "~filename); } @@ -586,7 +586,7 @@ private: // } // else version (linux) // { - // throw new FileException(filename, getErrno()); + // throw new FileException(filename, errno); // } // else // { diff --git a/std/stdio.d b/std/stdio.d index 641082dcc..e5b74ba01 100644 --- a/std/stdio.d +++ b/std/stdio.d @@ -2262,7 +2262,7 @@ class StdioException : Exception /** Initialize with a message and an error code. */ - this(string message, uint e = .getErrno()) + this(string message, uint e = .errno) { errno = e; version (Posix) @@ -2295,7 +2295,7 @@ Initialize with a message and an error code. */ /// ditto static void opCall() { - throw new StdioException(null, .getErrno()); + throw new StdioException(null, .errno); } }