aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_tape.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-08-22 03:58:47 +0000
committerChristopher Faylor <me@cgf.cx>2000-08-22 03:58:47 +0000
commit9e2baf8dfad8c1d2ebb00363a83be49767eca77f (patch)
treea66c765b39b52aec0e0cc28b40522a7964b06b0c /winsup/cygwin/fhandler_tape.cc
parent6b85369f8267a463c02571f2bd4b2406d185ee9a (diff)
downloadnewlib-9e2baf8dfad8c1d2ebb00363a83be49767eca77f.zip
newlib-9e2baf8dfad8c1d2ebb00363a83be49767eca77f.tar.gz
newlib-9e2baf8dfad8c1d2ebb00363a83be49767eca77f.tar.bz2
* 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 /.
Diffstat (limited to 'winsup/cygwin/fhandler_tape.cc')
-rw-r--r--winsup/cygwin/fhandler_tape.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_tape.cc b/winsup/cygwin/fhandler_tape.cc
index 4860fae..03dd485 100644
--- a/winsup/cygwin/fhandler_tape.cc
+++ b/winsup/cygwin/fhandler_tape.cc
@@ -16,6 +16,7 @@ details. */
#include <unistd.h>
#include <sys/mtio.h>
+#include "cygerrno.h"
/**********************************************************************/
/* fhandler_dev_tape */