From 9e2baf8dfad8c1d2ebb00363a83be49767eca77f Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 22 Aug 2000 03:58:47 +0000 Subject: * cygerrno.h: New file. Use this throughout whenever errno manipulation is required. * errno.cc: Use DWORD to hold Windows errors. (geterrno_from_win_error): New function. (seterrno_from_win_error): Use geterrno_from_win_error to convert supplied windows error (suggested by Corinna Vinschen). * path.cc (symlink_info): Add error element. * path.cc (path_conv::check): Remove errno setting. Use new symlink_info errno element to set path_conv error, where appropriate. (symlink_info::check): Set error element rather than attempting to manipulate errno. Add more checks for trailing / and /.. even though they are currently useless. Avoid setting EINVAL. * path.cc (normalize_posix_path): Correct check for trailing /. --- winsup/cygwin/fhandler_console.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'winsup/cygwin/fhandler_console.cc') diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 7388dda06..92e695bb6 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -23,6 +23,7 @@ details. */ #include #include #include "pinfo.h" +#include "cygerrno.h" /* * Scroll the screen context. -- cgit v1.2.3