From ee173f9db19b6db52cd28941902c90d9e2d0a995 Mon Sep 17 00:00:00 2001 From: cgf Date: Tue, 5 Mar 2002 18:11:18 +0000 Subject: [PATCH] * errno.cc: Change EPERM associated text to "Operation not permitted" throughout. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/errno.cc | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 525167caf0..ef02345a9b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2002-03-05 Christopher Faylor + * errno.cc: Change EPERM associated text to "Operation not permitted" + throughout. + +2002-03-05 Christopher Faylor + * fhandler_socket.cc (fhandler_socket::close): Respond to signals while looping, waiting for socket to close. Superstitiously clear last error when WSAEWOULDBLOCK. diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index 0643647b26..fc9a455f0e 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"; -- 2.11.0