summaryrefslogtreecommitdiffstats
path: root/generic/tclPosixStr.c
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2002-05-27 10:14:21 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2002-05-27 10:14:21 (GMT)
commit35a21d3c687e7f7883d393c30df87820c1879e51 (patch)
tree7d7c17d8e654bdce47d465b5cfa89196682af8c5 /generic/tclPosixStr.c
parenteff506b0846210f74d3905c974729e4e832f0fe0 (diff)
downloadtcl-35a21d3c687e7f7883d393c30df87820c1879e51.zip
tcl-35a21d3c687e7f7883d393c30df87820c1879e51.tar.gz
tcl-35a21d3c687e7f7883d393c30df87820c1879e51.tar.bz2
Better handling of EOVERFLOW on Win32 systems (as EFBIG or EINVAL.)
Diffstat (limited to 'generic/tclPosixStr.c')
-rw-r--r--generic/tclPosixStr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/tclPosixStr.c b/generic/tclPosixStr.c
index 2dbe357..cc2a546 100644
--- a/generic/tclPosixStr.c
+++ b/generic/tclPosixStr.c
@@ -11,7 +11,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclPosixStr.c,v 1.8 2002/02/15 23:42:12 kennykb Exp $
+ * RCS: @(#) $Id: tclPosixStr.c,v 1.9 2002/05/27 10:14:21 dkf Exp $
*/
#include "tclInt.h"
@@ -339,7 +339,7 @@ Tcl_ErrnoId()
#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "EOPNOTSUPP";
#endif
-#if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) )
+#if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) ) && ( !defined(EINVAL) || (EOVERFLOW != EINVAL) )
case EOVERFLOW: return "EOVERFLOW";
#endif
#ifdef EPERM
@@ -789,7 +789,7 @@ Tcl_ErrnoMsg(err)
#if defined(EOPNOTSUPP) && (!defined(ENOTSUP) || (ENOTSUP != EOPNOTSUPP))
case EOPNOTSUPP: return "operation not supported on socket";
#endif
-#if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) )
+#if defined(EOVERFLOW) && ( !defined(EFBIG) || (EOVERFLOW != EFBIG) ) && ( !defined(EINVAL) || (EOVERFLOW != EINVAL) )
case EOVERFLOW: return "file too big";
#endif
#ifdef EPERM