Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-03-05 21:11:20 +0300
committerChristopher Faylor <me@cgf.cx>2002-03-05 21:11:20 +0300
commit07a21bce5b9f645346aa115f97c9493ba4a5e691 (patch)
treebdc9ba6b3e591e071419f21a5616b2de235f6109 /winsup/cygwin/errno.cc
parent1d25d6f87ecba842dee764f8a3e73754c6d65807 (diff)
* errno.cc: Change EPERM associated text to "Operation not permitted"
throughout.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r--winsup/cygwin/errno.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc
index 0643647b2..fc9a455f0 100644
--- a/winsup/cygwin/errno.cc
+++ b/winsup/cygwin/errno.cc
@@ -153,7 +153,7 @@ extern "C" {
const NO_COPY char __declspec(dllexport) * const _sys_errlist[]=
{
/* NOERROR 0 */ "No error",
-/* EPERM 1 */ "Not super-user",
+/* EPERM 1 */ "Operation not permitted",
/* ENOENT 2 */ "No such file or directory",
/* ESRCH 3 */ "No such process",
/* EINTR 4 */ "Interrupted system call",
@@ -308,10 +308,13 @@ extern "C" char *
strerror (int errnum)
{
const char *error;
+ if (errnum < _sys_nerr)
+ error = _sys_errlist [errnum];
+ else
switch (errnum)
{
case EPERM:
- error = "Not owner";
+ error = "Operation not permitted";
break;
case ENOENT:
error = "No such file or directory";