* errno.cc: Change EPERM associated text to "Operation not permitted"
throughout.
This commit is contained in:
parent
1d25d6f87e
commit
07a21bce5b
@ -1,3 +1,8 @@
|
|||||||
|
2002-03-05 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
|
* errno.cc: Change EPERM associated text to "Operation not permitted"
|
||||||
|
throughout.
|
||||||
|
|
||||||
2002-03-05 Christopher Faylor <cgf@redhat.com>
|
2002-03-05 Christopher Faylor <cgf@redhat.com>
|
||||||
|
|
||||||
* fhandler_socket.cc (fhandler_socket::close): Respond to signals while
|
* fhandler_socket.cc (fhandler_socket::close): Respond to signals while
|
||||||
|
@ -153,7 +153,7 @@ extern "C" {
|
|||||||
const NO_COPY char __declspec(dllexport) * const _sys_errlist[]=
|
const NO_COPY char __declspec(dllexport) * const _sys_errlist[]=
|
||||||
{
|
{
|
||||||
/* NOERROR 0 */ "No error",
|
/* NOERROR 0 */ "No error",
|
||||||
/* EPERM 1 */ "Not super-user",
|
/* EPERM 1 */ "Operation not permitted",
|
||||||
/* ENOENT 2 */ "No such file or directory",
|
/* ENOENT 2 */ "No such file or directory",
|
||||||
/* ESRCH 3 */ "No such process",
|
/* ESRCH 3 */ "No such process",
|
||||||
/* EINTR 4 */ "Interrupted system call",
|
/* EINTR 4 */ "Interrupted system call",
|
||||||
@ -308,10 +308,13 @@ extern "C" char *
|
|||||||
strerror (int errnum)
|
strerror (int errnum)
|
||||||
{
|
{
|
||||||
const char *error;
|
const char *error;
|
||||||
|
if (errnum < _sys_nerr)
|
||||||
|
error = _sys_errlist [errnum];
|
||||||
|
else
|
||||||
switch (errnum)
|
switch (errnum)
|
||||||
{
|
{
|
||||||
case EPERM:
|
case EPERM:
|
||||||
error = "Not owner";
|
error = "Operation not permitted";
|
||||||
break;
|
break;
|
||||||
case ENOENT:
|
case ENOENT:
|
||||||
error = "No such file or directory";
|
error = "No such file or directory";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user