diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-05-03 16:11:11 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-05-03 16:11:11 +0000 |
commit | 07a135a6bf9bd7352aa7445c7d169a789f8ae1a9 (patch) | |
tree | 9ec37634892088e1daec22d1be56be25c713308f /winsup/cygwin/errno.cc | |
parent | b96fca8c5a678bb01340ecca488dec364fffecc6 (diff) | |
download | newlib-07a135a6bf9bd7352aa7445c7d169a789f8ae1a9.zip newlib-07a135a6bf9bd7352aa7445c7d169a789f8ae1a9.tar.gz newlib-07a135a6bf9bd7352aa7445c7d169a789f8ae1a9.tar.bz2 |
* errno.cc (errmap): Map ERROR_BAD_NETPATH to new errno ENOSHARE.
(_sys_errlist): Add entry for ENOSHARE.
(strerror): Add case for ENOSHARE.
* syscalls.cc (stat_worker): Check for errno ENOSHARE.
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r-- | winsup/cygwin/errno.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index 5921f44..2f51ac5 100644 --- a/winsup/cygwin/errno.cc +++ b/winsup/cygwin/errno.cc @@ -50,7 +50,7 @@ errmap[] = X (NOT_SUPPORTED, ENOSYS), X (REM_NOT_LIST, ENONET), X (DUP_NAME, ENOTUNIQ), - X (BAD_NETPATH, ENXIO), + X (BAD_NETPATH, ENOSHARE), X (FILE_EXISTS, EEXIST), X (CANNOT_MAKE, EPERM), X (INVALID_PARAMETER, EINVAL), @@ -279,7 +279,8 @@ extern const char __declspec(dllexport) * const _sys_errlist[]= /* EDQUOT 132 */ "Quota exceeded", /* ESTALE 133 */ "Stale NFS file handle", /* ENOTSUP 134 */ "134", -/* ENOMEDIUM 135 */ "no medium" +/* ENOMEDIUM 135 */ "no medium", +/* ENOSHARE 136 */ "No such host or network path" }; int __declspec(dllexport) _sys_nerr = @@ -652,6 +653,9 @@ strerror (int errnum) case ENOMEDIUM: error = "no medium"; break; + case ENOSHARE: + error = "No such host or network path"; + break; default: #ifdef _MT_SAFE char *buf= _reent_winsup()->_strerror_buf; |