diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2017-07-19 11:28:39 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-07-19 11:28:39 +0300 |
commit | 78ade082fef08900ad104628061f57aaa4c1eb8e (patch) | |
tree | 78e40366a4f0c43e3cd7f1beec712bfb604ca8f8 /winsup/cygwin/errno.cc | |
parent | bb12a1e587b07d3730f631a63fb2a46f811f867d (diff) |
Revert "errno: Stop using _impure_ptr->_errno completely"
This reverts commit 44b1746a41921533d27aca414a9188314cb725b6.
Bad idea. _impure_ptr->_errno is used by newlib
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r-- | winsup/cygwin/errno.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index 390723e67..9168e9b4d 100644 --- a/winsup/cygwin/errno.cc +++ b/winsup/cygwin/errno.cc @@ -339,7 +339,7 @@ void __reg3 seterrno_from_win_error (const char *file, int line, DWORD code) { syscall_printf ("%s:%d windows error %u", file, line, code); - errno = geterrno_from_win_error (code, EACCES); + errno = _impure_ptr->_errno = geterrno_from_win_error (code, EACCES); } int __reg2 @@ -357,7 +357,7 @@ seterrno_from_nt_status (const char *file, int line, NTSTATUS status) SetLastError (code); syscall_printf ("%s:%d status %y -> windows error %u", file, line, status, code); - errno = geterrno_from_win_error (code, EACCES); + errno = _impure_ptr->_errno = geterrno_from_win_error (code, EACCES); } static char * |